phBot Plugins
  • 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
    • Alchemy
    • Misc
  • Chat API
  • Handling Script Commands
  • GUI API
Powered by GitBook
On this page
  • get_item(id)
  • get_item_string(str)
  • get_monster(id)
  • get_monster_string(str)
  • get_skill(id)
  • get_zone_name(region)
  1. phBot API

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.

{
    'servername': 'ITEM_ETC_GOLD_01',
    'name': 'Gold',
    'tid1': 3,
    'tid2': 5,
    'tid3': 0,
    'cash_item': False,
    'max_stack': 0,
    'level': 0
}

get_item_string(str)

Usage

get_item_string('ITEM_ETC_GOLD_01')

Returns

None or an object with the game data.

{
    'servername': 'ITEM_ETC_GOLD_01',
    'name': 'Gold',
    'tid1': 3,
    'tid2': 5,
    'tid3': 0,
    'cash_item': False,
    'max_stack': 0,
    'level': 0
}

get_monster(id)

Usage

get_monster(1907)

Returns

None or an object with the game data.

{
    'servername': 'CHAR_CH_MAN_ADVENTURER',
    'name': 'CHAR_CH_MAN_ADVENTURER',
    'level': 1,
    'hp': 0
}

get_monster_string(str)

Usage

get_monster_string('CHAR_CH_MAN_ADVENTURER')

Returns

None or an object with the game data.

{
    'servername': 'CHAR_CH_MAN_ADVENTURER',
    'name': 'CHAR_CH_MAN_ADVENTURER',
    'level': 1,
    'hp': 0
}

get_skill(id)

Usage

get_skill(3)

Returns

None or an object with the game data.

{
    'servername': 'SKILL_CH_SWORD_SMASH_A_01',
    'duration': 0,
    'sp': 2,
    'cool_down': 3000,
    'mp': 19,
    'mastery': 257,
    'name': 'Strike Smash',
    'cast_time': 1022,
    'level': 5
}

get_zone_name(region)

Usage

get_zone_name(25000)

Returns

Name of the in game region. In the example above it returns Jangan.

PreviousLogNextTeleport

Last updated 2 years ago