phBot Plugins
Search…
Party
This function returns all party members.

Usage

get_party()

Returns

None or an object containing party members.
  • The object can be empty.
  • The key in the object is the player's party ID.
  • player_id will be 0 until they spawn near you.
  • hp_percent and mp_percent are values ranging from 0 to 10. This is how Joymax sends the percentage data.
1
{
2
9958419: {
3
'name': 'xxxxxxxxxx',
4
'mp_percent': 10,
5
'player_id': 0,
6
'hp_percent': 10,
7
'y': 0.0,
8
'guild': '',
9
'level': 9,
10
'x': 0.0
11
},
12
18466554: {
13
'name': 'KyrieIrVinG_',
14
'mp_percent': 10,
15
'player_id': 0,
16
'hp_percent': 10,
17
'y': 0.0,
18
'guild': 'Succubus',
19
'level': 103,
20
'x': 0.0
21
},
22
18478427: {
23
'name': '__LeGo0LaS__',
24
'mp_percent': 10,
25
'player_id': 0,
26
'hp_percent': 10,
27
'y': 0.0,
28
'guild': 'FGFDGDFGDF',
29
'level': 84,
30
'x': 0.0
31
},
32
18459759: {
33
'name': '_SrK_KhaN_',
34
'mp_percent': 10,
35
'player_id': 0,
36
'hp_percent': 10,
37
'y': 0.0,
38
'guild': 'Succubus',
39
'level': 103,
40
'x': 0.0
41
}
42
}
Copied!
Last modified 3yr ago
Copy link
Contents
Usage
Returns