Jump to content

Item para invocar boss


boker9999

Mensajes recomendados

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 

 

 

Enlace para comentar
Compartir en otros sitios

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.

Enlace para comentar
Compartir en otros sitios

  • Dilong locked this tema
Guest
Este tema está cerrado a otras respuestas.
  • Recientemente navegando por este tema   0 miembros

    • No hay usuarios registrados visitando esta página.
×
×
  • Crear nuevo...