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
VIP Online Pause Cavebot and Logout
#1
Hi All,

I am looking to have a script that if a certain player in vip logs in, the cavebot will pause (keep healer/ targeting etc on) and logout once pz gone.

Thank you
Reply

#2
Hello.

Scripts requests should be posted on Scripts -> Requests section. So i've moved it, but please, pay attention in future.

It will disable Cavebot and wait until pz goes away then logout.
if connected() and isviponline('player') then
     setsettings('Cavebot/Enabled', false)
     while battlesigned() do
          wait(1000, 2000)
     end
     logout()
end
Reply

#3
Thank you very much for this, it works great, however I can't work out how to add more than one person. Example below.


if connected() and isviponline('player1', 'player2') then
    setsettings('Cavebot/Enabled', false)
    while battlesigned() do
          wait(1000, 2000)
    end
    logout()
end


I then get this error message
14:22:39 - Core:Lua:ExecuteScript
|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.alt="Big Grin" title="Big Grin" class="smilie smilie_4" />oString
|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.alt="Tongue" title="Tongue" class="smilie smilie_5" />ersistent01: 1: invalid arguments to method call

Thank you
Reply

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

That's because isviponline works only for a single character. You should use a loop to call isviponline for each character or getviplist() to retrieve the entire vip and check using loop as well. I already posted a script that check using getviplist, just search for "getviplist".
Reply



Forum Jump:



Forum software by © MyBB Theme © iAndrew 2016