• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

RevScripts MultiTarget Attack Rune

edinson230

New Member
Joined
Apr 7, 2021
Messages
2
Reaction score
0
GitHub
Charquito
Hello someone who would help me with this !!! You could do something like this but with runes you must spells?
I don't know anything about script but I got this one and I'm interested in a similar one but with runes

Code:
 local distance = 4
local amountOfMonsters = 2
macro (1000, "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 (storage.Spell2, 250)
     else
         say (storage.Spell1, 250)
     end
end)
addTextEdit ("Spell1", storage.Spell1 or "Single target", function 
(widget, text)
storage.Spell1 = text
end)
addTextEdit ("Spell2", storage.Spell2 or "Multi target", function 
(widget, text)
storage.Spell2 = text
end)
 
Last edited by a moderator:

Similar threads

Back
Top