Log in

View Full Version : [suggestion] Lua LOGOUT (not os.exit() )



drakylucas
01-18-2015, 03:00 PM
Just a suggestion.. function for try logout (if no battle, return true and logout)

os.exit() is sux because need wait 1 minute for char logout.
thanks

maroxy
01-18-2015, 04:06 PM
Just a suggestion.. function for try logout (if no battle, return true and logout)

os.exit() is sux because need wait 1 minute for char logout.
thanks

local minutes = 3

wait(minutes*60*10000)

drakylucas
01-18-2015, 04:45 PM
bro, u didn't understand nothing...

I need the function for character logout.. if I disable anti-idle and wait 15 minutes, the char logout, but if I use os.exit(), the client closes but the char stay online for 1 minute (I tested with MC).. I need function for logout, for safety casino (shadowcores.. when GM enter on screen or ban 1 char, all others casino logout), but with os.exit() is a lot time to wait before char down..

this wait(180000) just stop the script running for 3 minutes ... not logout the char.

HjugO
01-18-2015, 08:56 PM
bro, u didn't understand nothing...

I need the function for character logout.. if I disable anti-idle and wait 15 minutes, the char logout, but if I use os.exit(), the client closes but the char stay online for 1 minute (I tested with MC).. I need function for logout, for safety casino (shadowcores.. when GM enter on screen or ban 1 char, all others casino logout), but with os.exit() is a lot time to wait before char down..

this wait(180000) just stop the script running for 3 minutes ... not logout the char.

XenoBot is mainly coded for Global Tibia not for OT, and Casino is not good point for improve CTRL+L as new Apophis LUA function.

Bushu
01-19-2015, 11:02 PM
but you know that gm can be invisible on ots, and he can just save nicks, check ip, ban all chars and ban this ip from making accounts and logging on there

drakylucas
01-21-2015, 01:04 PM
Yes, but in shadowcores not, gm only ban online casinos.. my idea was when first char logout (for ban), lua write in other lua and dofile every 5 seconds in all scripts, when is writed like Self.Logout() all others casino will logout, lose 1 for save 10 :p

and about its for global.. ok, but in global is nice too, like for quests scripts, after finish, logout char.. without exit client and without wait for 15 min..

shadowart
01-21-2015, 08:42 PM
and about its for global.. ok, but in global is nice too, like for quests scripts, after finish, logout char.. without exit client and without wait for 15 min..
os.exit() logs you out instantly on real Tibia.

DanJ93
01-22-2015, 10:21 AM
i too need this.
I need script: when player XX on screen logout, after 3 minutes login again

maroxy
01-22-2015, 03:37 PM
i too need this.
I need script: when player XX on screen logout, after 3 minutes login again

Not possible at XenoBot yet