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
  • inject_joymax(opcode, data, encrypted)
  • inject_silkroad(opcode, data, encrypted)
  1. phBot API

Packet Injection

PreviousTaxiNextLog

Last updated 2 years ago

inject_joymax(opcode, data, encrypted)

Sends a packet to Joymax (the server).

inject_silkroad(opcode, data, encrypted)

Sends a packet to Silkroad (the game).

Example

inject_joymax(0x704F, b'\x04', False)

  • opcode

    • unsigned short

  • data

    • bytes

  • encrypted

    • boolean

For complex packets you should use a packet building class. I have written one which can be found here:

https://github.com/ProjectHax/pySilkroadSecurity/blob/master/python/stream.py