PDA

View Full Version : New values in Self class.



hakujewas
11-11-2013, 02:54 PM
Some features that should be implemented :):

Self.Connected - returns True if a character is loged in, False when is disconnected.
Self.Balance - returns last balance read from npc chat, default value 0.
Self.StandTime - how many miliseconds a character is in the same place.
Self.Logout() - Function is logging out a character, if it's not possible it's returning False and doing nothing.
Self.ExpH - returns exph from tibia client.

Chuitox
11-12-2013, 09:22 AM
Some features that should be implemented :):

Self.Connected - returns True if a character is loged in, False when is disconnected.
Self.Balance - returns last balance read from npc chat, default value 0.
Self.StandTime - how many miliseconds a character is in the same place.
Self.Logout() - Function is logging out a character, if it's not possible it's returning False and doing nothing.
Self.ExpH - returns exph from tibia client.


Signed

DarkstaR
11-12-2013, 02:37 PM
Self.Connected would be useless because scripts stop executing when logged out.
Self.StandTime is easy to do on your own.
Self.Logout() can be done using os.exit()

Chuitox
11-12-2013, 03:14 PM
Self.Connected would be useless because scripts stop executing when logged out.
Self.StandTime is easy to do on your own.
Self.Logout() can be done using os.exit()


I would still love to have the other 2

So what do you suggest? Making our own library with those functions implemented?