Untitled
unknown
plain_text
2 years ago
814 B
13
Indexable
local Spells = {
{name = "utito tempo", cast = true, range = 1, buffSpell = true, manaCost = 290, level = 60},
{name = "exori gran", cast = true, range = 1, manaCost = 300, level = 110},
{name = "exori", cast = true, range = 1, manaCost = 30, level = 16},
}
-- script
macro(1100, "Exori/gran/Utito", function()
if not g_game.isAttacking() then
return
end
local target = g_game.getAttackingCreature()
local distance = getDistanceBetween(player:getPosition(), target:getPosition())
for _, spell in ipairs(Spells) do
if getPlayers(0) > 0 then
return
end
if mana() >= spell.manaCost and lvl() >= spell.level and distance <= spell.range and spell.cast then
if not hasPartyBuff() or not spell.buffSpell then
say(spell.name)
end
end
end
end)
Editor is loading...