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
isviponline
#1
hello,

faced some troubles, im using script is vip online, if not logout then pausebot

PHP Code:
if isviponline('Raijiin') == false and connected() == true and next(getviplist()) ~= nil then
    logout
()
    print("Raijiin off")
    pausebot(true)
end 
i added some check for connection and some ghetto way to check if viplist table is not empty

the problem is, if my char running this script relogs or loses connection, it still pauses the bot sometimes

any hint?

edit :added isreconnecting() check, gonna test if that works edit 2: --adding reconnecting check didn't fix that problem--

also, safe lists are kinda bugged
|Only Registered members can see download links. | Click here to buy subscription or here to register.
|Only Registered members can see download links. | Click here to buy subscription or here to register.loading="lazy" alt="[Image: wapmD6N.png]" class="mycode_img" />

after re-entering turns into that

|Only Registered members can see download links. | Click here to buy subscription or here to register.
|Only Registered members can see download links. | Click here to buy subscription or here to register.loading="lazy" alt="[Image: lfwyglU.png]" class="mycode_img" />



Another thing is reconnecting function, sometimes it locks somehow locks on the menu where you can select char, it tries to connect yet instantly backs up to the menu, idk why, maybe ots related
Reply

#2
getviplist() returns all players in your vip list, not only those online.

If you just wanna check for a specific player then you could use Alerts, but this script will work as well.
if isviponline('Raijiin') == false then
    logout() -- Raijiin is offline then logout.
    pausebot(true)
end

if isviponline('Raijiin') then
    logout() -- Raijiin is ONLINE then logout.
    pausebot(true)
end

I will check safe list.
Reply

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

yea I perfectly understand, just I added getviplist() check to be sure that  won't return null table because sometimes my character is pausing the bot even though my main character is still online, i'm trying to figure out why that happens
Reply



Forum Jump:



Forum software by © MyBB Theme © iAndrew 2016