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
If lvl "X" or time "X" goto label "Y" and logout (No Xlog)
#1
Anyone can help me with this? I want a script which i'll logout (NO XLOG) when i get X lvl or after 3h hunt, for example...

goto label "Y" and logout (No Xlog)

Thx
Reply

#2
Hello.

You should use level() and runningtime() functions. So you could save the runningtime() when you started hunting in a variable and keep checking it or just check for how long bot is running directly.

runningtime() [number]: Returns the time in SECONDS SINCE the bot has started.

10800 = 3 hours.
It will check if you have level 10+ or bot running for 3h or more then go to label "go_logout".
local waypoint_name = 'go_logout'
if (level() >= 10 or runningtime() >= 10800) and waypoint().id ~= waypoint_name then
     gotolabel(waypoint_name)
end

So make an action waypoint with name "go_logout". This script will wait until you have battle signed and then logout.
while battlesigned() do
     wait(1000)
end
logout()
Reply

#3
Thanks...

and a script when bot running for 3h, i kill all monsters and logout?
Reply

#4
Hello.

That depends on your settings. If you run that code on a Cavebot->Action, it will not walk around anymore, it will only wait for battle then logout when battle disappears. As i suppose that you would be with Targeting enabled, it will keep killing monsters while it appears.
Reply



Forum Jump:



Forum software by © MyBB Theme © iAndrew 2016