@diablo2/packets
TypeScript icon, indicating that this package has built-in type declarations

0.9.0 • Public • Published

@diablo2/packets

Diablo2 packet parser

// Path of diablo packets
import {PacketsPod} from '@diablo2/packets'

const playerInGamePacket = Buffer.from('24000100000003646364616400000000000000000000001800ffff0000000000000000', 'hex')
const player = PacketsPod.server.PlayerInGame.create(playerInGamePacket);

console.log(player);
/**
 * name: 'dcdacd'
 * level: 24
 * partyId: 65535
 * class: { id: 3, name: 'Paladin' }
 */

Readme

Keywords

none

Package Sidebar

Install

npm i @diablo2/packets

Weekly Downloads

1

Version

0.9.0

License

MIT

Unpacked Size

468 kB

Total Files

54

Last publish

Collaborators

  • blacha