avatar
Untitled

Guest 151 10th May, 2024

MARKUP 0.64 KB
                                           
                         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
Recent Pastes
Ta strona używa plików cookie w celu usprawnienia i ułatwienia dostępu do serwisu oraz prowadzenia danych statystycznych. Dalsze korzystanie z tej witryny oznacza akceptację tego stanu rzeczy.
Wykorzystywanie plików Cookie
Jak wyłączyć cookies?
ROZUMIEM