Advertisement
Guest User

Untitled

a guest
Jan 25th, 2020
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. macro(250, "single and multi", function()
  2. local specAmount = 0
  3. if not g_game.isAttacking() then
  4. return
  5. end
  6. for i,mob in ipairs(getSpectators()) do
  7. if (getDistanceBetween(player:getPosition(), mob:getPosition()) <= distance and mob:isMonster()) then
  8. specAmount = specAmount + 1
  9. end
  10. end
  11. if (specAmount >= amountOfMonsters) then
  12. say(multiTargetSpella)
  13. else
  14. say(singleTargetSpell)
  15. end
  16. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement