Hello fellas!
Joined the community today, and after making my first script (dara rots) I realised that at this hour it's just to many other botters online, and that I'd be much better of getting a few hours of magic training.
However, the issue was I found no hotkey that would log me in after ss, all I found were hotkeys who instantly reconnected you, not what I wanted.
-- Author: Hultin
-- Created: 2014-02-18
-- Verison: 1.0.0
init start
local account = "acc"
local password = "pass"
local character = "char"
init end
auto(5000,6000)
if(tonumber(os.date("%H")) >= 10 and tonumber(os.date("%M")) >= 20) then
if not $connected then
print("Trying to relog "..character)
connect(account, password, character)
if $connected then
setsetting('Cavebot/Enabled', 'yes')
print("Successfully logged in!")
end
end
else
print("Will relog "..character.." at 10:20 CET, 20min after SS")
end
Note that this is based on CET (GMT +1) so you will need to adjust the hour according to your timezone.
Tested and seems to work perfectly.
Requirements:
Running bot / Tibia client
Script must be set to a starting point which can be reached
I hope somebody finds this useful =)