Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- macro(250, "single and multi", 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(multiTargetSpella)
- else
- say(singleTargetSpell)
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement