Alika Posted July 1, 2013 Report Share Posted July 1, 2013 Buenas , que hay de malo en esta quest Debes iniciar sesión para ver el contenido del enlace en esta publicación. Muchas gracias por su ayuda. Jonan Iguaran 1 Link to comment Share on other sites More sharing options...
PACI Posted July 1, 2013 Report Share Posted July 1, 2013 En el local close_nation, falta un " local close_nation = select("Si",No") Debería ser así local close_nation = select("Si","No") Link to comment Share on other sites More sharing options...
ร¡๓vąℓ Posted July 1, 2013 Report Share Posted July 1, 2013 quest nation_war begin state start begin ---***NPC***--- when 11001.chat."Guerra de reinos" or 11003.chat."Guerra de reinos" or 11005.chat."Guerra de reinos" begin local akroma_war = { {19900, 30000}, {20000, 30000}, {30000, 30000} } if game.get_event_flag("nation_war")== 0 then say("La Nation War esta cerrada, en este momento") elseif game.get_event_flag("nation_war")== 1 then say("La Nation War esta abierta, quieres acceder viajero?") local nation_war = select("Si","No") if nation_war == 1 then if pc.level < 65 then say("Eres nivel "..pc.level()..", necesitas ser 65.") return end pc.warp(akroma_war[pc.get_empire()][1],akroma_war[pc.get_empire()][2]) end end end ---***GM***--- when 70021.use with pc.is_gm() begin if game.get_event_flag("nation_war")== 0 then say("La nation war esta cerrada, deseas abrirla "..pc.get_name().." ") local open_nation = select("Si","No") if open_nation == 1 then game.set_event_flag("nation_war", 1) game.set_event_flag("jinno", 0) game.set_event_flag("shinso", 0) game.set_event_flag("chunjo", 0) timer("nation_war1", 600) elseif open_nation == 2 then return end elseif game.get_event_flag("nation_war")== 1 then say("La nation war esta abierta, deseas cerrarla "..pc.get_name().." ") local close_nation = select("Si","No") if close_nation == 1 then game.set_event_flag("nation_war", 0) game.set_event_flag("jinno", 0) game.set_event_flag("shinso", 0) game.set_event_flag("chunjo", 0) elseif close_nation == 2 then return end end end ---***TIMERS***--- when nation_war1.timer begin notice_all("Marcador: Jinno:"..game.get_event_flag("jinno").." Shinso:"..game.get_event_flag("shinso").." Chunjo:"..game.get_event_flag("chunjo").." ") timer("nation_war2", 600) end when nation_war2.timer begin notice_all("Marcador: Jinno:"..game.get_event_flag("jinno").." Shinso:"..game.get_event_flag("shinso").." Chunjo:"..game.get_event_flag("chunjo").." ") timer("nation_war3", 600) end when nation_war3.timer begin notice_all("Marcador: Jinno:"..game.get_event_flag("jinno").." Shinso:"..game.get_event_flag("shinso").." Chunjo:"..game.get_event_flag("chunjo").." ") timer("nation_war4", 600) end when nation_war4.timer begin notice_all("Marcador: Jinno:"..game.get_event_flag("jinno").." Shinso:"..game.get_event_flag("shinso").." Chunjo:"..game.get_event_flag("chunjo").." ") timer("nation_war5", 600) end when nation_war5.timer begin notice_all("Marcador: Jinno:"..game.get_event_flag("jinno").." Shinso:"..game.get_event_flag("shinso").." Chunjo:"..game.get_event_flag("chunjo").." ") timer("nation_war6", 600) end when nation_war6.timer begin local imperios = { {game.get_event_flag("jinno")}, {game.get_event_flag("shinso")}, {game.get_event_flag("chunjo")} } if imperios[1] > imperios[2] and imperios[3] then notice_all("Jinno ha ganado la nation war") warp_to_village() elseif imperios[2] > imperios[1] and imperios[3] then notice_all("Shinso ha ganado la nation war") warp_to_village() elseif imperios[3] > imperios[1] and imperios[2] then notice_all("Chunjo ha ganado la nation war") warp_to_village() end end ---***MUERTES PERSONAS***--- when kill with npc.is_pc() and pc.get_empire() != npc.get_empire() begin if game.get_event_flag("nation_war") == 1 and pc.get_map_index()== 112 then if pc.get_empire() == 1 then game.set_event_flag("jinno", game.get_event_flag("jinno")+1) elseif pc.get_empire()== 2 then game.set_event_flag("shinso", game.get_event_flag("shinso")+1) elseif pc.get_empire()== 3 then game.set_event_flag("chunjo", game.get_event_flag("chunjo")+1) end elseif game.get_event_flag("nation_war") == 2 then syschat("Guerra no activada") warp_to_village() end end end end Link to comment Share on other sites More sharing options...
Alika Posted July 1, 2013 Author Report Share Posted July 1, 2013 Gracias a los 2 por haber mirado , pero sigue tirando un error adjunto imagen. Gracias de antemano si me ayudais. Link to comment Share on other sites More sharing options...
ร¡๓vąℓ Posted July 1, 2013 Report Share Posted July 1, 2013 quest_functions > pc.level Link to comment Share on other sites More sharing options...
fuuton97 Posted July 1, 2013 Report Share Posted July 1, 2013 NO ES TANTO, creo que akroma se le escapó, debes poner es: pc.level() con los paréntesis, no coloques el pc.level en quest_fuctions, que igual no te irá Link to comment Share on other sites More sharing options...
PACI Posted July 2, 2013 Report Share Posted July 2, 2013 NO ES TANTO, creo que akroma se le escapó, debes poner es: pc.level() con los paréntesis, no coloques el pc.level en quest_fuctions, que igual no te irá pc.level no lleva (), solo pc.get_level() los lleva. Link to comment Share on other sites More sharing options...
Alika Posted July 2, 2013 Author Report Share Posted July 2, 2013 Entonces agrego el pc.level y ya esta ? Link to comment Share on other sites More sharing options...
ร¡๓vąℓ Posted July 2, 2013 Report Share Posted July 2, 2013 quest_functions > pc.level adiciona no quest_functions > pc.level Link to comment Share on other sites More sharing options...
Guest feby0589 Posted July 27, 2013 Report Share Posted July 27, 2013 Donde se le cambia el index a esta quest Link to comment Share on other sites More sharing options...
Guest feby0589 Posted July 27, 2013 Report Share Posted July 27, 2013 Donde se le cambia el Index a esta quest, es que quiero ponerle otro mapa y otras cordenadas, alguien que me ayude por favor Link to comment Share on other sites More sharing options...
fuuton97 Posted July 27, 2013 Report Share Posted July 27, 2013 Donde se le cambia el Index a esta quest, es que quiero ponerle otro mapa y otras cordenadas, alguien que me ayude por favor when kill with npc.is_pc() and pc.get_empire() != npc.get_empire() begin if game.get_event_flag("nation_war") == 1 and pc.get_map_index()== 112 then Link to comment Share on other sites More sharing options...
Guest feby0589 Posted July 27, 2013 Report Share Posted July 27, 2013 Gracias por la ayuda se te agradese demasiado y sabes como poner unas cordenadas donde apareccan los reinos Link to comment Share on other sites More sharing options...
Recommended Posts