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
Put stealth ring on at certain point in cavebot script
#1
I am writing a script that requires me to run though 2 floors of creatures that cannot detect invisibility. 

I usually have my Tools>Life ring>on and this prevents my attempts from working.

So please I would like to request help with a cavebot action or a persistent that will

arrive at a certain node/action. Turn off the life ring setting. place stealth ring on. check if stealth ring off. Walk (I can add these nodes myself). take off stealth ring. turn on life ring setting.

Any help would be extremely helpful! Thank you
Reply

#2
This script will disable Tools->Ring Equipper and unequip any ring except stealth ring.
local RINGS_BP = 'red backpack'
local STEALTH_RING = { InUse = 3086, NotInUse = 3049 }


setsettings('Tools/Ring Equipper/Enabled', false)

local ring_item = finger()
if ring_item.id > 0 and ring_item.id ~= STEALTH_RING.InUse then
    moveitems(ring_item.id, RINGS_BP, 'finger')
    wait(300, 500)
end

moveitems(STEALTH_RING.NotInUse, 'finger', RINGS_BP)
wait(300, 500)

ring_item = finger()
if ring_item.id ~= STEALTH_RING.InUse then
    playsound('default')
    flashclient()
end

This script will unequip stealth ring and enable Tools->Ring Equipper.
local RINGS_BP = 'red backpack'
local STEALTH_RING = { InUse = 3086, NotInUse = 3049 }


local ring_item = finger()
if ring_item.id > 0 and ring_item.id == STEALTH_RING.InUse then
    moveitems(ring_item.id, RINGS_BP, 'finger')
    wait(300, 500)
end

setsettings('Tools/Ring Equipper/Enabled', true)
Reply



Forum Jump:



Forum software by © MyBB Theme © iAndrew 2016