Welcome to PenUltima Online. Click to login or register.
Downloadable Version (2021-10-20)

Description

Packet Name: Open Buy Window
Last Modified: 2020-04-08 15:16:26
Modified By: Nando


Packet: 0x74
Sent By: Server
Size: Variable


Packet Build
BYTE[1] cmd
BYTE[2] blockSize
BYTE[4] containerSerial
BYTE[1] # of items
# of items worth of item segments

  • BYTE[4] price
  • BYTE length of text description
  • BYTE[text length] item description


Subcommand Build
N/A


Notes
To open a buy window, the protocol is as follows:

1) Wear the "for-sale" container in layer 1A on the vendor
2) Wear the "bought" container in layer 1B on the vendor
3) For each container:
3a) Send "Add multiple items in container" (packet 0x3C)
3b) This packet (0x74) with items in a special order (see below)
4) Draw container (0x24) with model number of 0x0030

Items in this packet must be presented in the reversed order of 0x3C for most container objtypes, regardless of coordinates or slots. For the objtype 0x2AF8, items must be sorted in this packet by increasing X coordinates (see packet 0x3C for more details).

The containerSerial is claimed to be (vendorID | 0x40000000), but that does not seem to be required.

Other orderings may be required for the enhanced (SA) client.

Packets