Everyone who has never used our Bots before, can test each one for 2 days without any limitation.
The trial is given automatically when you login on the Bot, but in some cases it wouldn't work (security reasons).
If this happens, send me a private message and i will be checking the failed trials manually and adding it for those who didn't get it.
We are looking for resellers who may accept payment methods different from ours, including classictibia's cash, realesta's cash, mastercores' cash, etc. Interested? Click here at anytime.



Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
If mana less than xx then stop cavebot
#1
Hello,
I was searching but can not find.

I need script which can stop cavebot if mana is less than XXX and start cave bot if mana is above XXX

#2
Hello.

local mana = mp()
local cavebot_state = getsettings('Cavebot/Enabled')

if mana <= 300 and cavebot_state then
    setsettings('Cavebot/Enabled', false)
elseif mana >= 600 and cavebot_state == false then
    setsettings('Cavebot/Enabled', true)
end

#3
Works with HP?
I just need to change "mana" for "life" and "mp" to "hp"?

Or maybe "mana" to "health"?

#4
local health = hp()
local cavebot_state = getsettings('Cavebot/Enabled')

if health <= 300 and cavebot_state then
    setsettings('Cavebot/Enabled', false)
elseif health >= 600 and cavebot_state == false then
    setsettings('Cavebot/Enabled', true)
end



Forum Jump:



Forum software by © MyBB Theme © iAndrew 2016