phBot Plugins
Search…
Introduction
Example Plugins
phBot API
Client
Guild
Events
Players
Party
NPC
Character
Academy
Inventory
Pets
Monsters
Encoding
Locale
Config
Botting
Taxi
Packet Injection
Log
Game Data
Teleport
Training Area
Command Line Arguments
Movement
Quests
Drops
Paths
Script
Notifications
Misc
Chat API
Handling Script Commands
GUI API
Powered By
GitBook
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.
1
{
2
'sp': 0,
3
'server': '',
4
'hp_max': 0,
5
'current_exp': 0,
6
'level': 0,
7
'x': 0.0,
8
'dead': False,
9
'account_id': 0,
10
'locale': 22,
11
'job_max_exp': 0,
12
'job_current_exp': 0,
13
'job_name': '',
14
'player_id': 0,
15
'model': 0,
16
'mp': 0,
17
'gold': 0,
18
'guild': '',
19
'name': '',
20
'y': 0.0,
21
'hp': 0,
22
'mp_max': 0,
23
'max_exp': 0,
24
'region': 23431
25
}
Copied!
get_position()
This function returns the character's current position.
Usage
get_position()
Returns
None
or an object containing position data.
1
{
2
'region': 24744,
3
'z': -52.93023681640625,
4
'y': 828.7999877929688,
5
'x': 6435.89990234375
6
}
Copied!
Previous
NPC
Next
Academy
Last modified
3yr ago
Copy link
Contents
get_character_data()
Usage
Returns
get_position()
Usage
Returns