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
No Uh/Mf Stop Cave Bot
#1
if connected() and itemcount('ultimate healing rune') <= 440 then
    setsettings('Cavebot/Enabled', false)
    setsettings('Targeting/Enabled', true)
    while battlesigned() do
          wait(1000)
    end
    logout()
    wait(500)
end



this script work, but not for kasteria, its possible to make that smart script? with close bp? of mf or uh?
Reply

#2
Hello.

Your code works, however, itemcount() returns the count from open containers only.

There are many ways:
1. Using itemcount() to check current count from open containers. If you are using runes by hotkey then you just need to leave the LAST BP open. But if you are using runes directly from backpack then you can use this script:
|Only Registered members can see download links. | Click here to buy subscription or here to register.


2. Using getnewmessages() from server log, but you must leave that channel selected which is not good due to alerts.

3. Using getmessages() from server log, so you could just select the channel on the action that you check supplies and then select "Default" channel back.

4. Using itemcountmsg(string item_name, string message) that returns the item count from that using message "Using one of X..." and screenmessage(boolean visibleOnly) to get last green message, the parameter means if would get message only if it's visible or not.

And soon, i will add a function to return item count from ACTION BARS.


If are going to use this code on Cavebot->Action then I recommend method 1 or 3.
Method 1 and 4 are good for persistents.

Tell me which method above you prefer and i will try to help you.
Reply

#3
for now I will use option 1, which I know how to do to work, but I would like to check the number 4 seems to be better, more reliable
Reply

#4
Hello.

Not exactly. While developing a function to get the count from action bars, i noticed that action bar sometimes may fail to show the correct amount.
Although I agree that it would be easier to use action bar, I believe that the most effective (accurate) way is through methods 1 and 3.
Reply



Forum Jump:



Forum software by © MyBB Theme © iAndrew 2016