Log in

View Full Version : Sample Script of Self.Logout()



ramakil
12-03-2015, 11:01 PM
Can someone show me some sample code that works using Self.Logout()? I seem to get errors whenever I use it.

krille09
12-04-2015, 02:24 AM
Self.Logout()

That's the code, there is nothing more too it...


--- Logout of the client
-- Returns nothing important
-- @class Self
-- @return nothing important
Self.Logout = doSelfLogout

Question is do you want it for when you have low stamina or reached certain level?

ramakil
12-04-2015, 02:37 AM
Okay that's what I'm doing and its saying Logout is a nil value and then the script exits. Am I doing something wrong or maybe something with the ot im on is interfering with it?

ramakil
12-05-2015, 01:32 AM
Maybe posting the exact error will help since no one has yet to answer what is going wrong.
Error: attempt to call field 'Logout' (a nil value)