Jump to content

[Quest Para Activar el Drop de Cajas Luz de Luna]


Manu97

Mensajes recomendados

Alguien me puede decir si esta Quest esta bien? quiero que al darle activar, Caigan Cajas Luna mientras leveas..

 

Quest luz_luna begin
State start begin
When npc_id.chat."Evento" begin
Local event = select ("activar","cancelar","cerrar")
If event == 3 then
Return
Elseif event == 2 then
Game.set_event_flag("drop_moon,1")
Notice_all("evento activo")
Elseif event == 2 then
Game.set_event_flag("drop_moon,0")
Notice_al("evento cancelado")
End
End
End
End 

Enlace para comentar
Compartir en otros sitios


quest luzluna begin

state start begin

when login begin

if game.get_event_flag("mondlicht_event") == 1 then

notice("El Evento Cajas Tesoro Luz de Luna está activado.")

end

end

when 20095.chat."Evento Caja Luz Luna" with pc.is_gm() begin

say_title("Evento de Caja Luz Luna")

say("")

say_reward("¿Que quieres hacer?")

local s = select("Activar evento", "Desactivar evento", "Cancelar")

if s == 1 then

game.set_event_flag("mondlicht_event", 1)

notice_all("Se ha activado el Evento Cajas Tesoro Luz de Luna.")

elseif s == 2 then

game.set_event_flag("mondlicht_event", 0)

notice_all("El evento Cajas Tesoro Luz de Luna ha terminado.")

end

end

 

when kill with not npc.is_pc() and game.get_event_flag("mondlicht_event") == 1 begin

if pc.count_item(50011) >= 0 then

local porc = math.random(1,250)

if porc <= 2 then

game.drop_item_with_ownership("50011", 1)

syschat("Has recibido una Caja Tesoro Luz Luna.")

end

end

end

end

end

 

Enlace para comentar
Compartir en otros sitios

quest luzluna begin
	state start begin
		when login begin
                if game.get_event_flag("mondlicht_event") == 1 then
                    notice("El Evento Cajas Tesoro Luz de Luna está activado.")
                end
            end
		when 20095.chat."Evento  Caja Luz Luna" with pc.is_gm() begin
			say_title("Evento de Caja Luz Luna")
			say("")
			say_reward("¿Que quieres hacer?")
		local s = select("Activar evento", "Desactivar evento", "Cancelar")
			if s == 1 then
				game.set_event_flag("mondlicht_event", 1)
				notice_all("Se ha activado el Evento Cajas Tesoro Luz de Luna.")
			elseif s == 2 then
				game.set_event_flag("mondlicht_event", 0)
				notice_all("El evento Cajas Tesoro Luz de Luna ha terminado.")
			end
		end

		when kill with not npc.is_pc() and game.get_event_flag("mondlicht_event") == 1 begin
			if pc.count_item(50011) >= 0 then
			local porc = math.random(1,250)
				if porc <= 2 then
					game.drop_item_with_ownership("50011", 1)
					syschat("Has recibido una Caja Tesoro Luz Luna.")
				end
			end
		end
	end
end	

muchas gracias :D

Enlace para comentar
Compartir en otros sitios

  • 2 months later...
  • 2 weeks later...
  • 11 months later...

perdon se que es viejo el post pero implemente la quest y va bien se activa pero no puedo abrir las cajas alguien tiene idea del motivo lo active con mi gm y mate unos perros para ver si dropeavan y cayo una caja pero no me dejo abrirla si alguien save el motivo se lo agradeseria mucho me informe desde ya gracias

Enlace para comentar
Compartir en otros sitios

hace 38 minutos, emiliano cando dijo:

perdon se que es viejo el post pero implemente la quest y va bien se activa pero no puedo abrir las cajas alguien tiene idea del motivo lo active con mi gm y mate unos perros para ver si dropeavan y cayo una caja pero no me dejo abrirla si alguien save el motivo se lo agradeseria mucho me informe desde ya gracias

no tienen drop las cajas sera?

Enlace para comentar
Compartir en otros sitios

hace 4 horas, emiliano cando dijo:

perdon se que es viejo el post pero implemente la quest y va bien se activa pero no puedo abrir las cajas alguien tiene idea del motivo lo active con mi gm y mate unos perros para ver si dropeavan y cayo una caja pero no me dejo abrirla si alguien save el motivo se lo agradeseria mucho me informe desde ya gracias

creo q le falta agregar recompensa a la caja

quest luzluna begin
	state start begin
		when login begin
                if game.get_event_flag("mondlicht_event") == 1 then
                    notice("El Evento Cajas Tesoro Luz de Luna está activado.")
                end
            end
		when 20095.chat."Evento  Caja Luz Luna" with pc.is_gm() begin
			say_title("Evento de Caja Luz Luna")
			say("")
			say_reward("¿Que quieres hacer?")
		local s = select("Activar evento", "Desactivar evento", "Cancelar")
			if s == 1 then
				game.set_event_flag("mondlicht_event", 1)
				notice_all("Se ha activado el Evento Cajas Tesoro Luz de Luna.")
			elseif s == 2 then
				game.set_event_flag("mondlicht_event", 0)
				notice_all("El evento Cajas Tesoro Luz de Luna ha terminado.")
			end
		end

		when kill with not npc.is_pc() and game.get_event_flag("mondlicht_event") == 1 begin
			if pc.count_item(50011) >= 0 then
			local porc = math.random(1,250)
				if porc <= 2 then
					game.drop_item_with_ownership("50011", 1)
					syschat("Has recibido una Caja Tesoro Luz Luna.")
				end
			end
		end
		
		when 50011.use begin
			say_title("Caja Tesoro Luz Luna")
			say("haz abierto una Caja Tesoro Luz Luna")
			pc.remove_item(50011, 1)
			pc.give_item2(71144, 1)
			say_reward("Has recibido un item cualquiera")
			
		end
	end
end

 

Enlace para comentar
Compartir en otros sitios

  • 3 weeks later...
  • Dilong locked this tema
Guest
Este tema está cerrado a otras respuestas.
  • Recientemente navegando por este tema   0 miembros

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