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
Check Supplies and Logout.
#1
Hello

I need action scripts for my cavebot.

Action1 - Check Supplies

Check amount of assassin stars/mana fluids/Ultimate healing runes

If amount supplies is ok then go to label "start" if amount of supplies is:

Assassin stars <10
or mana fluids <50
or ultimate healing runes < 10

Then stop targetting, and go to label "exit".

Action2 - Logout
Stop cavebot
wait until pz will disapear and logout.
Reply

#2
Hello.

1st script
local CONFIG = {
    { Supply = 'assassin star', MinCount = 10 },
    { Supply = 'mana fluid', MinCount = 50 },
    { Supply = 'ultimate healing rune', MinCount = 10 }
}

for _, config in ipairs(CONFIG) do
    if itemcount(config.Supply, '', true) < config.MinCount then
        setsettings('Targeting/Enabled', false)
        gotolabel('exit')
        return
    end
end

2nd script
setsettings('Cavebot/Enabled', false)
while battlesigned() do
    wait(500)
end
logout()
Reply

#3
@Arkilys

can I ask you to make small change, if supplies low go to label exit, if supplies ok -> go to label start.

btw. if i want it for spears, is it enough that i change assassin stars to spear?

THX in advance.
Reply

#4
|Only Registered members can see download links. | Click here to buy subscription or here to register.

You just need to add gotolabel('start') at the end.

local CONFIG = {
    { Supply = 'assassin star', MinCount = 10 },
    { Supply = 'mana fluid', MinCount = 50 },
    { Supply = 'ultimate healing rune', MinCount = 10 }
}

for _, config in ipairs(CONFIG) do
    if itemcount(config.Supply, '', true) < config.MinCount then
        setsettings('Targeting/Enabled', false)
        gotolabel('exit')
        return
    end
end

gotolabel('start')
Reply

#5
@Arkilys


Why if i got supplies bot still goes everytime to label "exit" ?
Reply

#6
Hello.

Probably bad Supply name or itemcount not count properly? I recommend you to use ids instead names and try on code below. Because it will print on Bot's Console telling you why it's leaving.
local CONFIG = {
    { Supply = 'assassin star', MinCount = 10 },
    { Supply = 'mana fluid', MinCount = 50 },
    { Supply = 'ultimate healing rune', MinCount = 10 }
}

for _, config in ipairs(CONFIG) do
    local count = itemcount(config.Supply, '', true)
    print(config.Supply .. ': ' .. count)
    if count < config.MinCount then
        print('Leaving! ' .. config.Supply .. ' is lower than ' .. tostring(config.MinCount))
        setsettings('Targeting/Enabled', false)
        gotolabel('exit')
        return
    end
end

gotolabel('start')
Reply

#7
@Arkilkys

15:41:59 - mana fluid: 16
15:41:59 - Leaving! mana fluid is lower than 50



when i got more then 800.

15:42 Using one of 822 vials..


so bot can see only mf visible on screen, can you solve it other way?
Reply

#8
Yeah.. You could easily find on Scripts section. So please, search before asking.
|Only Registered members can see download links. | Click here to buy subscription or here to register.
Reply

#9
@Arkilys

If I knew how to edit scripts, I wouldn't be asking in this topic.

That one is for mana fluids only.
Reply



Forum Jump:



Forum software by © MyBB Theme © iAndrew 2016