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
#1
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
Reply

#2
Hello.

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)
    xlog()  
end

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

#3
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.
Reply



Forum Jump:



Forum software by © MyBB Theme © iAndrew 2016