Combo Área

Descrição

Parar o combo e usar magia de area quando estiver 4 monstros próximo de voce.

Autor: Luiz

                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
local magia1 = 'magia 1' local magia2 = 'magia 2' local magia3 = 'magia 3' local magia4 = 'magia 4' local magia5 = 'magia 5' local magiaDeArea = 'Magia de area' local distance = 3 -- distancia local amountOfMonsters = 4 -- quantidade de monstro macro(250, "Combo UP", 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(magiaDeArea) else say(magia1) say(magia2) say(magia3) say(magia4) say(magia5) end end)