Jump to content

Baul del Aprendiz


Akroma

Mensajes recomendados

debe de ser todo

quest baul begin
state start begin		
	when login or levelup begin
		local a={1,10,20,30,40,50,60,70,80,90,100}
		local lvl=10
		for i=1,table.getn(a) do
			if a[i]==lvl then
				if pc.getqf("last_flag")<lvl then
					local i=i-1
					if lvl==100 then
						pc.give_item2(10..i)
						pc.setqf("last_flag",lvl)
						chat("Has recibido el baul del aprendiz")
						return
					end
					pc.give_item2(100..i)
					pc.setqf("last_flag",lvl)
				end
			end
		end
		chat("Has recibido el baul del aprendiz")
	end
	when 1000.use or 1001.use or 1002.use or 1003.use or 1004.use or 1005.use or 1006.use or 1007.use or 1008.use or 1009.use or 1010.use begin
		local drop = {[1000] = {9999, 8888, 7777},
			[1001] = {9999, 8888, 7777},
			[1002] = {9999, 8888, 7777},
			[1003] = {9999, 8888, 7777},
			[1004] = {9999, 8888, 7777},
			[1005] = {9999, 8888, 7777},
			[1006] = {9999, 8888, 7777},
			[1007] = {9999, 8888, 7777},         
			[1008] = {9999, 8888, 7777},
			[1009] = {9999, 8888, 7777}
			}
		chat(item_name(item.get_vnum()).." usado")
		for _,i in next,drop[item.get_vnum()] do
			chat("Has recibido "..item_name(i))
			pc.give_item2(i,1)
		end
	end
end
end

Enlace para comentar
Compartir en otros sitios

  • 2 years later...

Unirse a la conversación

Puedes publicar ahora y registrarte más tarde. Si tienes una cuenta, regístrate para publicar con su cuenta.

Guest
Responder a este tema...

×   Has pegado contenido con formato .   Eliminar formato

  Only 75 emoji are allowed.

×   Tu enlace se ha incorporado automáticamente.   Mostrar un enlace en su lugar

×   Se ha restaurado el contenido anterior. .   Borrar editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recientemente navegando por este tema   0 miembros

    • No hay usuarios registrados visitando esta página.
×
×
  • Crear nuevo...