boker9999 Posted February 3, 2018 Report Share Posted February 3, 2018 Hola necesito na quest para invocar a un mob o boss con un item, sin que el item desaparezca. gracias Link to comment Share on other sites More sharing options...
Zart Posted February 3, 2018 Report Share Posted February 3, 2018 quest SpawnItem begin state start begin when item.use begin mob.spawn(id_mob, pc.get_x(), pc.get_y(), cantidad) end end end Link to comment Share on other sites More sharing options...
boker9999 Posted February 4, 2018 Author Report Share Posted February 4, 2018 hace 3 horas, Jayden dijo: quest SpawnItem begin state start begin when item.use begin mob.spawn(id_mob, pc.get_x(), pc.get_y(), cantidad) end end end la intento usar pero no sale el mob. Link to comment Share on other sites More sharing options...
Zart Posted February 4, 2018 Report Share Posted February 4, 2018 Como la estás usando? Link to comment Share on other sites More sharing options...
boker9999 Posted February 4, 2018 Author Report Share Posted February 4, 2018 Quote quest invoca begin state start begin when 77014.use begin mob.spawn(11004, pc.get_x(), pc.get_y(), 1) end end end Asi la tengo puesta, que puse mal? Link to comment Share on other sites More sharing options...
Dilong Posted February 4, 2018 Report Share Posted February 4, 2018 Prueba Spoiler quest invoca begin state start begin when 77014.use begin local cantidad = {1,2,3} local cantidad2 = tonumber(input(cantidad)) if cantidad2 > 3 then say("hay un limite en el numero de mobs a invocar") else if cantidad2 == nil then return end mob.spawn(11004, pc.get_x(), pc.get_y(), cantidad2) end end end Magnus 1 Link to comment Share on other sites More sharing options...
boker9999 Posted February 4, 2018 Author Report Share Posted February 4, 2018 QUEST : invoca STATE : start WHEN : 40003.use mascota_agresiva.quest:13:assertion failure : nested==0 Abort (core dumped) Link to comment Share on other sites More sharing options...
Zart Posted February 4, 2018 Report Share Posted February 4, 2018 hace 14 horas, boker9999 dijo: QUEST : invoca STATE : start WHEN : 40003.use mascota_agresiva.quest:13:assertion failure : nested==0 Abort (core dumped) quest invoca begin state start begin when item_id.use begin mob.spawn(mob_id, pc.get_local_x(), pc.get_local_y(), 5, 0, cantidad) end end end Me había equivocado, disculpa. Recuerda modificar item_id, mob_id y cantidad a tu gusto. Break 1 Link to comment Share on other sites More sharing options...
Recommended Posts