Jump to content

Recommended Posts

Posted
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
			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	
		

 

#Arreglada.

Posted
hace 7 horas, Edward dijo:

		when kill with not npc.is_pc() and game.get_event_flag("mondlicht_event") == 1 begin
			if pc.count_item(50011) >= 0 then -- Esto como si no estuviera, hace lo mismo con y sin
				...
			end
		end

 

Por lo demás la veo bien.

  • Dilong locked this topic
Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

This site uses cookies to enhance your browsing experience and provide relevant content. By continuing to browse, you agree to our We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. and Terms of Use. For more information on how we protect your data, please check our Privacy Policy.