Script Lua Tibia
Script Lua Tibia
Script Lua Tibia
setDefaultTab("Tools")
UI.Separator()
local Spells = {
{name = "utevo gran res sac", cast = true, range = 10, buffSpell = false, manaCost
= 1000, level = 0},}
-- script
macro(100, "Familiar", 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 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)
local Spells = {
{name = "utito tempo san", cast = true, range = 10, buffSpell = false, manaCost =
1000, level = 0},}
-- script
macro(5000, "Utito San", 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 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)