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
Logout when x items
I wanted to create a script and make the bot to force logout when he reach x gold coins..I donno really how to code lua so ill be glad if you help me


That depends on how you are using Looter with one bp inside another, you can use:
if gethudloot('gold coin') >= 3000 then
    sethudloot('gold coin', 0)

If you have multiple bps open then
if itemcount('gold coin') >= 3000 then

Oh, thank you very much, the example is not so important my intention is to learn the syntax to be able to code lua myself.
Thanks for the fast response.

Forum Jump:

Forum software by © MyBB Theme © iAndrew 2016