Untitled
Guest 249 12th May, 2024
local singleTargetSpell = ' Katon Hosenka no Jutsu'
local multiTargetSpell = 'Sasuke Attack'
local distance = 2
local amountOfMonsters = 2
macro(250, "multi target spell", function()
local specAmount = 0
if not g_game.isAttacking() then
return
end
for i,mob in ipairs(getSpectators()) do
if (getDistanceBetween(player:getPosition(), mob:getPosition()) <= distance and mob:isMonster()) then
specAmount = specAmount + 1
end
end
if (specAmount >= amountOfMonsters) then
say(multiTargetSpell)
else
say(singleTargetSpell)
end
end)
To share this paste please copy this url and send to your friends
RAW Paste Data