• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

OTClient if more than 50% mana use exevo gran mas frigo if less than 50% mana use exevo gran mas tera. any solutions?

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)
 
Back
Top