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 no monster on screen for 15 min xlog
#1
Looking for a script that xlogs the character if there is NO specific monster on screen for 15 min.
Reply

#2
Hello.

Does the script should check for monsters only once after 15 minutes or keep checking then logout after 15 minutes if monster don't show up?

Example 1:
Check now -> wait 15 minutes -> Check again then logout if no monster.

Example 2:
Keep checking for monsters for 15 minutes -> If no monsters after those 15 minutes then logout
Reply

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


Hello Arkilys,
thanks for replaying
The script should be like Example 2: keep checking for 15 minutes if no monster has entered the screen log out otherwise restart the 15 minutes timer when monster is killed or there is no monster in screen.
Reply

#4
local TIME_CHECK = { Min = 900, Max = 900 } -- For how long should it check? IN SECONDS. Random time that will be chosen between that ranges.


if MONSTERS_APPEARS == nil then
    MONSTERS_APPEARS = false
end

if END_CHECK == nil then
    END_CHECK = runningtime() + random(TIME_CHECK.Min, TIME_CHECK.Max)
end


if maround() > 0 then
    MONSTERS_APPEARS = true
end

if runningtime() >= END_CHECK then
    if MONSTERS_APPEARS then
        END_CHECK = runningtime() + random(TIME_CHECK.Min, TIME_CHECK.Max)
        MONSTERS_APPEARS = false
    else
        logout()
    end
end
Reply



Forum Jump:



Forum software by © MyBB Theme © iAndrew 2016