Manu97 Posted September 17, 2016 Report Share Posted September 17, 2016 Alguien me puede decir si esta Quest esta bien? quiero que al darle activar, Caigan Cajas Luna mientras leveas.. Quest luz_luna beginState start beginWhen npc_id.chat."Evento" beginLocal event = select ("activar","cancelar","cerrar")If event == 3 thenReturnElseif event == 2 thenGame.set_event_flag("drop_moon,1")Notice_all("evento activo")Elseif event == 2 thenGame.set_event_flag("drop_moon,0")Notice_al("evento cancelado")EndEndEndEnd Link to comment Share on other sites More sharing options...
Edward™ Posted September 18, 2016 Report Share Posted September 18, 2016 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 Link to comment Share on other sites More sharing options...
Manu97 Posted September 18, 2016 Author Report Share Posted September 18, 2016 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 Kakuzu 1 Link to comment Share on other sites More sharing options...
luisrojas Posted December 3, 2016 Report Share Posted December 3, 2016 y la pregunta del millon como lo activo? Link to comment Share on other sites More sharing options...
♥ TesT ♥ Posted December 3, 2016 Report Share Posted December 3, 2016 y la pregunta del millon como lo activo? sacas el npc 20095 y le das click y lo activas david091 1 Link to comment Share on other sites More sharing options...
MrFunckencio Posted December 12, 2016 Report Share Posted December 12, 2016 Si, tambien puedes hacarlo desde comando Sintaxis: /e [flag] [value] Los valores que se suelen usar es 0 y 1 /e mondlicht_event 0 - Desactivas el Evento /e mondlicht_event 1 - Activas el Evento Link to comment Share on other sites More sharing options...
Dilong Posted December 12, 2016 Report Share Posted December 12, 2016 No hace falta agregar math randoms a algo que ya viene en el game por defecto,por eso esa quest del creador del post solo tiene dos opciones de event flag Link to comment Share on other sites More sharing options...
emiliano cando Posted December 11, 2017 Report Share Posted December 11, 2017 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 Link to comment Share on other sites More sharing options...
jesuskztr Posted December 11, 2017 Report Share Posted December 11, 2017 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? Link to comment Share on other sites More sharing options...
colcrt Posted December 11, 2017 Report Share Posted December 11, 2017 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 Link to comment Share on other sites More sharing options...
emiliano cando Posted December 11, 2017 Report Share Posted December 11, 2017 como le agrego drop a la caja luz de luna sigue disiendome que no puedo abrirla desde ya gracias Link to comment Share on other sites More sharing options...
Xhebas Posted December 11, 2017 Report Share Posted December 11, 2017 Si mal no recuerdo esta se maneja desde el special_item_group.txt Link to comment Share on other sites More sharing options...
Dilong Posted December 11, 2017 Report Share Posted December 11, 2017 Debes iniciar sesión para ver el contenido del enlace en esta publicación. Scale, carmelo diaz, ChuchoGamer and 10 others 13 Link to comment Share on other sites More sharing options...
emiliano cando Posted December 11, 2017 Report Share Posted December 11, 2017 gracias chicos +1 por su apoyo a los principiantes Link to comment Share on other sites More sharing options...
Julian David Moreno Posted December 29, 2017 Report Share Posted December 29, 2017 Como le cambio el drop a las cajas osea quiero que dropee chekes esas cajas Link to comment Share on other sites More sharing options...
Dilong Posted December 29, 2017 Report Share Posted December 29, 2017 Utilizar el buscador google o el foro, no siempre estaran respondiendoles dudas basicas carmelo diaz 1 Link to comment Share on other sites More sharing options...
Recommended Posts