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 and cancel auto reconnect
#1
hi, i need a script to Logout and cancel auto reconnect if have monsters at the screen.
Reply

#2
for _, creature in ipairs(getcreatures('m')) do
    if creature.visible then
        setsettings('Tools/Reconnect/Enabled', 'no') -- Turn off Auto-Reconnect
        while battlesigned() do
            wait(3000)
        end
        logout()
        break
    end
end

This will only logout without battlesign, if it's battlesigned, it'll wait until it goes.
Remember that if the monster gives you a battlesign, it will do nothing.

If you want the script to work only with monsters that are visible(sometimes the bot can see monsters that are near, but not necessary in your visible screen) and in the same floor as you, change this line
for _, creature in ipairs(getcreatures('m')) do
for this one:
for _, creature in ipairs(getcreatures('mfs')) do
Reply

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

Thank you so much, i will test and back to report! 
|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="Heart" title="Heart" class="smilie smilie_16" />

Edit: Worksssssss !
Reply



Forum Jump:



Forum software by © MyBB Theme © iAndrew 2016