Macros
Macros
if g_game.isAttacking() then
say("name spells")
end
end)
bpItem = getBack()
bp = getContainer(0)
g_game.open(bpItem)
end
end)
if item:isContainer() then
g_game.open(item, container)
end
end
end
end
end)
if saySpell(storage.autoHasteText) then
delay(5000)
end
end
end)
storage.autoHasteText = text
end)
local monstrosIgnorados = {
['pet'] = true,
g_game.attack(v)
end
end
end)
local manaPercent = 99
usewith(manaId, player)
end
end)
g_game.use(item)
return
end
end
end
end)
g_game.use(item)
return
end
end
end
end)
local hpPercent = 99
say(storage.HealText)
end
end)
storage.HealText = text
end)
function distanceFromPlayer(coords)
end
local mobs = 0;
end
return mobs;
end
CaveBot.setOff()
else
CaveBot.setOn()
end
end
end)
if tile then
if item:isPickupable() then
delay(100)
end
end
end
end
end)
local castBelowHp = 99
local deactiveBelowMana = 9
if (hppercent() <= castBelowHp and manapercent() >= deactiveBelowMana and not hasManaShield())
then
say('utamo vita')
end
if (manapercent() <= deactiveBelowMana and hppercent() >= castBelowHp and hasManaShield()) then
say('utamo vita')
end
end)
if target then
toFollowPos[tpos.z] = tpos
end
local p = toFollowPos[posz()]
delay(100)
end
end)
toFollowPos[newPos.z] = newPos
end
end)