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
Use Mana fluid when NO monsters on screen
#1
Is there a possibility,
if no monsters on screen,  to stop walking node(stop cavebot auto walking), 
use manafluids if mana above x%,
and back to auto walking( cave bot on)?

Cause When I use ultimate healing, with auto mana fluid, there is a chance to die, and sometimes crash the client bot.
Thanks!
|Only Registered members can see download links. | Click here to buy subscription or here to register.
|Only Registered members can see download links. | Click here to buy subscription or here to register.alt="Big Grin" title="Big Grin" class="smilie smilie_4" />
Reply

#2
local MANA_START_HEAL = 500 -- Min. mana to start healing.
local MANA_HEAL_UPTO = 800 -- Heal mana until this value.

if maround() == 0 and mp() <= MANA_START_HEAL and islooting() == false and lootbodies() == 0 then
    setsettings('Cavebot/Enabled', false)
    setsettings('Targeting/Enabled', false)
    setsettings('Looter/Enabled', false)
    if iswalking() then
        stop()
    end
    while itemcount('mana fluid') > 0 and mp() < MANA_HEAL_UPTO do
        useitemoncreature('mana fluid', id())
        wait(1000, 1200)
    end
    setsettings('Cavebot/Enabled', true)
    setsettings('Targeting/Enabled', true)
    setsettings('Looter/Enabled', true)
end
Reply

#3
oh, the code however perfect it looks, I tried this code a lot of times, but not worked.
There is no monster on screen, and, I dont know, I think its not entering in some condition.
Please check it. Thanks!
|Only Registered members can see download links. | Click here to buy subscription or here to register.
|Only Registered members can see download links. | Click here to buy subscription or here to register.alt="Smile" title="Smile" class="smilie smilie_1" />

and if it's possible, increment a code that open next bp of mana fluid
Reply

#4
this is working great for me. i removed the targetting and looting settings as they are changed in different scripts. i also dont want targeting to be off just in case somebody lures on me.

local MANA_START_HEAL = 1500 -- Min. mana to start healing.
local MANA_HEAL_UPTO = 2500 -- Heal mana until this value.

if maround() == 0 and mp() <= MANA_START_HEAL and islooting() == false and lootbodies() == 0 then
setsettings('Cavebot/Enabled', false)
if iswalking() then
stop()
end
while itemcount('mana fluid') > 0 and mp() < MANA_HEAL_UPTO do
useitemoncreature('mana fluid', id())
wait(480, 520)
end
setsettings('Cavebot/Enabled', true)
end
Reply



Forum Jump:



Forum software by © MyBB Theme © iAndrew 2016