palomo Posted June 29, 2017 Report Share Posted June 29, 2017 Buenas alguno seria tan amable de hacerme una quest sobre evento de cajas hexagonales asi como cajas lunas gracias. Link to comment Share on other sites More sharing options...
Edward Posted June 29, 2017 Report Share Posted June 29, 2017 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. Link to comment Share on other sites More sharing options...
Shang Posted June 29, 2017 Report Share Posted June 29, 2017 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. Edward 1 Link to comment Share on other sites More sharing options...
Recommended Posts