<div class="alert alert-warning"><b>This script has been discontinued!</b>
It may be malfunctioning and will not be updated. Please try @Leonardo's solution: http://goo.gl/nbs4TA</div>
Relogger & Backpack Reopener
Description
If you character disconnects, will log back on, pause cavebot/looting/targeting, reopen your backpacks and enable cavebot/looting/targeting again.
Configuration
Edit the backpacks variable on the init block to specify the backpacks you want to be opened and in what order.
Code
-- This script has been discontinued, may be malfunctioning and will not be
-- updated. Please try [MENTION=31]Leonardo[/MENTION]'s solution: [url]http://goo.gl/nbs4TA[/url]
init start
-- local SCRIPT_VERSION = '1.1.0'
-- The bot will open these backpacks, in this order. The first item is the
-- name of the backpack, the second the location and the third is whether
-- it should be open as new, which defaults to true.
local backpacks = {
{'Backpack of Holding', 'back'},
{'Dragon Backpack' , '0' },
{'Expedition Backpack', '1' , false},
{'Brocade Backpack' , '1' },
{'Brown Bag' , '0' },
}
local serverSaveWait = {15, 20} -- Wait time on server save, in minutes
local nextTry = $timems
init end
auto(100)
if not $connected and $timems >= nextTry then
set('Cavebot/Enabled', 'no')
set('Targeting/Enabled', 'no')
set('Looting/Enabled', 'no')
reconnect()
while not $connected do
wait(90, 110)
end
waitping()
local bp, loc, new, count, parentCont
for _, v in ipairs(backpacks) do
bp, loc, new = table.unpack(v)
new = tern(new ~= nil, new, true)
count = #getopencontainers()
openitem(bp, loc, new)
if new then
while #getopencontainers() ~= count + 1 do
wait(90, 110)
end
else
waitping()
end
resizewindows(0)
end
set('Cavebot/Enabled', 'yes')
set('Targeting/Enabled', 'yes')
set('Looting/Enabled', 'yes')
end
foreach newmessage m do
if m.type == MSG_RED then
local min = m.content:match(REGEX_SERVER_SAVE)
if min then
nextTry = $timems + (tonumber(min) + math.random(table.unpack(serverSaveWait))) * 60000
break
end
end
end
This thread is not for requests, please use the appropriate thread for it.
12-14-2013, 11:05 PM
K4r4biN
You can add action to close client if character find temple's NPC after logging to make it safier ;p
12-15-2013, 03:54 AM
Raphael
Quote:
Originally Posted by K4r4biN
You can add action to close client if character find temple's NPC after logging to make it safier ;p
The bot automatically pauses on death.
12-15-2013, 08:07 AM
K4r4biN
Quote:
Originally Posted by Raphael
The bot automatically pauses on death.
I know, but I meant situation when you die on kick, so then bot will not pause cause it doesn't know the char dies.
12-15-2013, 12:42 PM
Raphael
Quote:
Originally Posted by K4r4biN
I know, but I meant situation when you die on kick, so then bot will not pause cause it doesn't know the char dies.
Oh, ye, that's true.
Will check it out later.
12-21-2013, 02:33 PM
joraanpe
About the relogger raph, have u used it by server save? I leave my chars and go sleep but when back i find all accounts on the main tibia window, or in the best of the cases stuck with the "connecting to the game server, please wait" window. Any ideas?
12-22-2013, 03:20 PM
jakub
ye would be good to add pause between (9:45CET - 10:20CET)
12-22-2013, 05:35 PM
Raphael
Quote:
Originally Posted by joraanpe
About the relogger raph, have u used it by server save? I leave my chars and go sleep but when back i find all accounts on the main tibia window, or in the best of the cases stuck with the "connecting to the game server, please wait" window. Any ideas?
Yes, will work on it.
12-24-2013, 06:25 PM
joraanpe
Quote:
Originally Posted by Raphael
Yes, will work on it.
Great, looking forward for it. Also if you can, consider also netdrops/kicks that might be quick and last on intervals of 10segs to 40segs
12-24-2013, 06:29 PM
User Not Found
Not be better to the bot, when reconnects open ALL Bps??...
12-26-2013, 07:17 PM
Winiek
also waiting to have 100% working reconnect for SS
12-26-2013, 09:00 PM
jakub
this might help you:) just change hour to your timezone :)
(not (((tonumber(os.date("%H"))==9) and (tonumber(os.date("%M"))>43)) or ((tonumber(os.date("%H"))==10) and (tonumber(os.date("%M"))<22))))
and control how long you are waiting to connect, for example
local maxtime = 200 --1/10seconds
local waittime = 0
while not $connected do
wait(100)
if maxtime < waittime then return end
waittime=waittime+1
end
12-26-2013, 09:27 PM
Donatello
Quote:
Originally Posted by jakub
this might help you:) just change hour to your timezone :)
(not (((tonumber(os.date("%H"))==9) and (tonumber(os.date("%M"))>43)) or ((tonumber(os.date("%H"))==10) and (tonumber(os.date("%M"))<22))))
and control how long you are waiting to connect, for example
local maxtime = 200 --1/10seconds
local waittime = 0
while not $connected do
wait(100)
if maxtime < waittime then return end
waittime=waittime+1
end
There's a function on Raphael's Library called: sstime(), Just use it.
12-26-2013, 09:49 PM
jakub
Where can I find Raphael's library documentation? :D I see he uses Javadoc to generate documentation:-)
edit:
I found it's only in source code. No extern doc for now.
12-26-2013, 10:26 PM
Raphael
Quote:
Originally Posted by jakub
Where can I find Raphael's library documentation? :D I see he uses Javadoc to generate documentation:-)
edit:
I found it's only in source code. No extern doc for now.
Better docs shall come soon enough.
12-28-2013, 10:13 AM
Shade
Reconnect is awesome but it needs a little fix - when you logging inside resp with few monsters, bot set targetting on, and then you trying attack monsters when you need wait (i dont remember how many time after logging is needed to wait) so you trying attack something and luring another. Would be nice to do waits for cavebot and targetting till char can attack creatures (and in this time bot will open bp ofc).
01-06-2014, 04:51 PM
grzesq
Good job + rep
01-08-2014, 01:38 PM
Tizet
on my scripts... this bot open only 2 bps...
main and second
open backpack of holding -> right click mouse on beach bp
open bp of holding > right click mouse on brocade bp
open bp of holding > right click orange bp
open backpack of holding ?
is possible on windbot ?
01-08-2014, 11:39 PM
Raphael
What?
01-09-2014, 11:05 PM
Tizet
u dont know what i need ? :D
on all scripts open bps is system with ctrl
u know u can open bp another options ... what i said . so can be open by this system on windbot ?
01-09-2014, 11:22 PM
BUgWT
Do you have classic control enabled?
01-15-2014, 01:39 AM
Grim
so does this script try repeatedly? cause once i'm kicked from the game because of ddos atks or w/e it says "game server" not responding.
Are you going to improve it? :p since it's not working...
02-04-2014, 04:58 PM
BUgWT
Quote:
Originally Posted by Tizet
I'm sorry, my mistake ;)
i wanna test it now.
excellent ! :D
----
btw can you make other open bps ?
open backpack of holding -> right click mouse on beach bp
open bp of holding > right click mouse on brocade bp
open bp of holding > right click orange bp
open backpack of holding ?
is possible on windbot ?
Ah, Now I understand what you mean.
open main bp, open the bps with right click (doesn't open bp in a new window)
02-04-2014, 11:36 PM
Tizet
yeah Bug!
can u make this fuctions? :D if yes... we can botting with minimalize tibia :p
02-05-2014, 08:06 PM
Raphael
Quote:
Originally Posted by Tizet
yeah Bug!
can u make this fuctions? :D if yes... we can botting with minimalize tibia :p
Right clicking does work with the bot minimized, but, yes, you can do that with the current script.
Simply do something like this for the config:
local backpacks = {
{'Backpack of Holding', 'back', false},
{'Dragon Backpack' , '0' , false},
can you provide script/action who will automatly relog from char to char when no stamina? this is huge help for people who botting alot of accounts and dont have time to relog manually.
02-06-2014, 01:05 AM
Raphael
Quote:
Originally Posted by grafix
can you provide script/action who will automatly relog from char to char when no stamina? this is huge help for people who botting alot of accounts and dont have time to relog manually.
Sure, as long as you make the request on the right thread.
02-07-2014, 09:42 AM
ehsan
After server saving, it logs back quickly and is just waiting, I need to click Enter key for it to go to character selection when server saving is over, and after that it logs in automatically., Can u fix this problem, my server saving time is from 10.55 to 11.30 GMT +2, Thanx
02-07-2014, 10:12 AM
K4r4biN
@Raphael, could you edit your hotkey like I asked?
Can you add something to click abort in one situation? It sometimes stucks in logging in and the client is just showing "Connecting to the game world. Please wait.", but it won't connect. Would be nice to see something to click abort on it and then it will try to login again (it will need to put pass again).