phBot Plugins
Search…
⌃K

Character

get_character_data()

This function returns stats of the current character.

Usage

get_character_data()

Returns

None or an object containing character data.
  • The object can be empty.
{
'sp': 0,
'server': '',
'hp_max': 0,
'current_exp': 0,
'level': 0,
'x': 0.0,
'dead': False,
'account_id': 0,
'locale': 22,
'job_max_exp': 0,
'job_current_exp': 0,
'job_name': '',
'player_id': 0,
'model': 0,
'mp': 0,
'gold': 0,
'guild': '',
'name': '',
'y': 0.0,
'hp': 0,
'mp_max': 0,
'max_exp': 0,
'region': 23431
}

get_position()

This function returns the character's current position.

Usage

get_position()

Returns

None or an object containing position data.
{
'region': 24744,
'z': -52.93023681640625,
'y': 828.7999877929688,
'x': 6435.89990234375
}
Last modified 3yr ago