phBot Plugins
Search…
Game Data
These functions return an object based on the game item ID or monster ID.

get_item(id)

Usage

get_item(1)

Returns

None or an object with the game data.
1
{
2
'servername': 'ITEM_ETC_GOLD_01',
3
'name': 'Gold',
4
'tid1': 3,
5
'tid2': 5,
6
'tid3': 0,
7
'cash_item': False,
8
'max_stack': 0,
9
'level': 0
10
}
Copied!

get_item_string(str)

Usage

get_item_string('ITEM_ETC_GOLD_01')

Returns

None or an object with the game data.
1
{
2
'servername': 'ITEM_ETC_GOLD_01',
3
'name': 'Gold',
4
'tid1': 3,
5
'tid2': 5,
6
'tid3': 0,
7
'cash_item': False,
8
'max_stack': 0,
9
'level': 0
10
}
Copied!

get_monster(id)

Usage

get_monster(1907)

Returns

None or an object with the game data.
1
{
2
'servername': 'CHAR_CH_MAN_ADVENTURER',
3
'name': 'CHAR_CH_MAN_ADVENTURER',
4
'level': 1,
5
'hp': 0
6
}
Copied!

get_monster_string(str)

Usage

get_monster_string('CHAR_CH_MAN_ADVENTURER')

Returns

None or an object with the game data.
1
{
2
'servername': 'CHAR_CH_MAN_ADVENTURER',
3
'name': 'CHAR_CH_MAN_ADVENTURER',
4
'level': 1,
5
'hp': 0
6
}
Copied!

get_skill(id)

Usage

get_skill(3)

Returns

None or an object with the game data.
1
{
2
'servername': 'SKILL_CH_SWORD_SMASH_A_01',
3
'duration': 0,
4
'sp': 2,
5
'cool_down': 3000,
6
'mp': 19,
7
'mastery': 257,
8
'name': 'Strike Smash',
9
'cast_time': 1022,
10
'level': 5
11
}
Copied!
Last modified 3yr ago