yes, its OTCv8 bot. I have below script and i would like to make a little bit change. if more than 50% mana use mas frigo if less than 50% mana use mas tera. I dont know how to solve it. Would you check and help?
local multiTargetSpell = 'exevo gran mas frigo'
local singleTargetSpell = 'exevo gran mas frigo
local distance = 4
local amountOfMonsters = 2
local fragLimit = 10
macro(250, "Anty RS ExoriFrigo", function()
local isSafe = true;
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 + 5
end
if (mob:isPlayer() and player:getName() ~= mob:getName()) then
isSafe = false;
end
end
if (specAmount >= amountOfMonsters and ((frags <= fragLimit) or isSafe)) then
say(multiTargetSpell)
else
say(singleTargetSpell)
end
end)