Jump to content

Item para invocar boss


boker9999

Recommended Posts

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 

 

 

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

  • Dilong locked this topic
Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...