xLordneji Publicado 5 de Abril del 2018 Reportar Compartir Publicado 5 de Abril del 2018 La instalé y todo pero al ir al chico del establo (20349) no aparece la opción, no se si le falte algo la verdad no conozco mucho de quests, gracias Función: Para conseguir el caballo militar deberás tener 20 medallas de caballo, ir al chico del establo y entregarselas, si las tienes te da el caballo militar. La quest está hecha por Dilong (Gracias a el por hacermela) quest horse_levelup begin state start begin when 20349.chat."subir nivel caballo" with pc.getqf("levelup")== 1 begin say("texto") local mision = select("Si","En otra ocasion") if mision == 1 then if horse.get_level() == 21 then say("el caballo ya esta en el nivel 21") return end say("texto") pc.setqf("levelup",1) pc.setqf("medalla",1) pc.setqf("drop",1) return end end when 101.kill with pc.getqf("drop")== 1 begin local item = number(1, 100) if item <= 5 then game.drop_item_with_ownership(50050,1) end end when 20349.chat."medallas conseguidas" with pc.getqf("medalla")== 1 begin local medallas = select("subir caballo","despues") if medallas == 1 then if pc.count_item(50050) < 20 then say("no tienes las medallas") return end pc.remove_item(50050,20) horse.set_level(21) pc.give_item2(50053,1) pc.setqf("drop",0) pc.setqf("medalla",0) return end end end end Enlace para comentar Compartir en otros sitios Mas opciones de compartir...
Dilong Publicado 5 de Abril del 2018 Reportar Compartir Publicado 5 de Abril del 2018 Por lo que veo has editado mal el codigo de la quest, para empezar tocaste los set y getqf Mira Spoiler quest horse_levelup begin state start begin when npcid.chat."subir nivel caballo" with pc.getqf("levelup")== 0 begin -- El getqf no se toca say("texto") local mision = select("Si","En otra ocasion") if mision == 1 then if horse.get_level() == 21 then say("el caballo ya esta en el nivel 21") return end say("texto") pc.setqf("levelup",1) -- No tocar pc.setqf("medalla",1) -- No tocar pc.setqf("drop",1) -- No tocar return end end when idmob.kill with pc.getqf("drop")== 1 begin -- el getqf no se toca local item = number(1, 100) if item <= 5 then game.drop_item_with_ownership(vnumitem,1) end end when npcid.chat."medallas conseguidas" with pc.getqf("medalla")== 1 begin -- el getqf no se toca local medallas = select("subir caballo","despues") if medallas == 1 then if pc.count_item(vnumitem) < 20 then say("no tienes las medallas") return end pc.remove_item(vnumitem,20) horse.set_level(21) pc.give_item2(vnumlibro,1) pc.setqf("drop",0) -- No tocar pc.setqf("medalla",0) -- No tocar return end end xLordneji y KnightFall reacciono a esto 2 Enlace para comentar Compartir en otros sitios Mas opciones de compartir...
xLordneji Publicado 5 de Abril del 2018 Author Reportar Compartir Publicado 5 de Abril del 2018 hace 1 hora, Dilong dijo: Por lo que veo has editado mal el codigo de la quest, para empezar tocaste los set y getqf Mira Debes iniciar sesión para ver el contenido del enlace en esta publicación. Ocultar contenido quest horse_levelup begin state start begin when npcid.chat."subir nivel caballo" with pc.getqf("levelup")== 0 begin -- El getqf no se toca say("texto") local mision = select("Si","En otra ocasion") if mision == 1 then if horse.get_level() == 21 then say("el caballo ya esta en el nivel 21") return end say("texto") pc.setqf("levelup",1) -- No tocar pc.setqf("medalla",1) -- No tocar pc.setqf("drop",1) -- No tocar return end end when idmob.kill with pc.getqf("drop")== 1 begin -- el getqf no se toca local item = number(1, 100) if item <= 5 then game.drop_item_with_ownership(vnumitem,1) end end when npcid.chat."medallas conseguidas" with pc.getqf("medalla")== 1 begin -- el getqf no se toca local medallas = select("subir caballo","despues") if medallas == 1 then if pc.count_item(vnumitem) < 20 then say("no tienes las medallas") return end pc.remove_item(vnumitem,20) horse.set_level(21) pc.give_item2(vnumlibro,1) pc.setqf("drop",0) -- No tocar pc.setqf("medalla",0) -- No tocar return end end Gracias!! Enlace para comentar Compartir en otros sitios Mas opciones de compartir...
Mensajes recomendados