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
  1. phBot API

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.

{
    9958419: {
        'name': 'xxxxxxxxxx',
        'mp_percent': 10,
        'player_id': 0,
        'hp_percent': 10,
        'y': 0.0,
        'guild': '',
        'level': 9,
        'x': 0.0
    },
    18466554: {
        'name': 'KyrieIrVinG_',
        'mp_percent': 10,
        'player_id': 0,
        'hp_percent': 10,
        'y': 0.0,
        'guild': 'Succubus',
        'level': 103,
        'x': 0.0
    },
    18478427: {
        'name': '__LeGo0LaS__',
        'mp_percent': 10,
        'player_id': 0,
        'hp_percent': 10,
        'y': 0.0,
        'guild': 'FGFDGDFGDF',
        'level': 84,
        'x': 0.0
    },
    18459759: {
        'name': '_SrK_KhaN_',
        'mp_percent': 10,
        'player_id': 0,
        'hp_percent': 10,
        'y': 0.0,
        'guild': 'Succubus',
        'level': 103,
        'x': 0.0
    }
}
PreviousPlayersNextNPC

Last updated 2 years ago