216 lines
No EOL
13 KiB
JSON
216 lines
No EOL
13 KiB
JSON
{
|
|
"category": "Vendor",
|
|
"packets": [
|
|
{
|
|
"id": "0x3B",
|
|
"name": "End Vendor Transaction",
|
|
"description": "Ends a vendor buy or sell transaction.",
|
|
"direction": "outgoing",
|
|
"isDynamic": false,
|
|
"size": 8,
|
|
"fields": [
|
|
{
|
|
"name": "Packet ID",
|
|
"type": "byte",
|
|
"size": 1,
|
|
"value": "0x3B",
|
|
"description": "Packet identifier"
|
|
},
|
|
{
|
|
"name": "Length",
|
|
"type": "ushort",
|
|
"size": 2,
|
|
"value": "8",
|
|
"description": "Packet length"
|
|
},
|
|
{
|
|
"name": "Vendor Serial",
|
|
"type": "uint",
|
|
"size": 4,
|
|
"description": "Serial of the vendor"
|
|
},
|
|
{
|
|
"name": "Item Count",
|
|
"type": "byte",
|
|
"size": 1,
|
|
"value": "0",
|
|
"description": "Item count (0 = end transaction)"
|
|
}
|
|
],
|
|
"source": {
|
|
"file": "Projects/Server/Network/Packets/OutgoingVendorBuyPackets.cs",
|
|
"line": 111
|
|
}
|
|
},
|
|
{
|
|
"id": "0x74",
|
|
"name": "Vendor Buy List",
|
|
"description": "Sends the list of items available for purchase from a vendor with prices.",
|
|
"direction": "outgoing",
|
|
"isDynamic": true,
|
|
"size": "8+",
|
|
"fields": [
|
|
{
|
|
"name": "Packet ID",
|
|
"type": "byte",
|
|
"size": 1,
|
|
"value": "0x74",
|
|
"description": "Packet identifier"
|
|
},
|
|
{
|
|
"name": "Length",
|
|
"type": "ushort",
|
|
"size": 2,
|
|
"description": "Packet length"
|
|
},
|
|
{
|
|
"name": "Container Serial",
|
|
"type": "uint",
|
|
"size": 4,
|
|
"description": "Serial of vendor\u0027s buy container"
|
|
},
|
|
{
|
|
"name": "Item Count",
|
|
"type": "byte",
|
|
"size": 1,
|
|
"description": "Number of items"
|
|
},
|
|
{
|
|
"name": "Items",
|
|
"type": "loop",
|
|
"description": "Buy items with prices",
|
|
"loop": {
|
|
"countField": "itemCount",
|
|
"fields": [
|
|
{
|
|
"name": "Price",
|
|
"type": "int",
|
|
"size": 4,
|
|
"description": "Item price"
|
|
},
|
|
{
|
|
"name": "Desc Length",
|
|
"type": "byte",
|
|
"size": 1,
|
|
"description": "Description length + 1"
|
|
},
|
|
{
|
|
"name": "Description",
|
|
"type": "ascii-t",
|
|
"description": "Item description"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"related": [
|
|
{
|
|
"id": "0x3C",
|
|
"relationship": "request",
|
|
"note": "Container Content with items"
|
|
}
|
|
],
|
|
"source": {
|
|
"file": "Projects/Server/Network/Packets/OutgoingVendorBuyPackets.cs",
|
|
"line": 77
|
|
}
|
|
},
|
|
{
|
|
"id": "0x9E",
|
|
"name": "Vendor Sell List",
|
|
"description": "Sends the list of items the vendor will buy from the player.",
|
|
"direction": "outgoing",
|
|
"isDynamic": true,
|
|
"size": "9+",
|
|
"fields": [
|
|
{
|
|
"name": "Packet ID",
|
|
"type": "byte",
|
|
"size": 1,
|
|
"value": "0x9E",
|
|
"description": "Packet identifier"
|
|
},
|
|
{
|
|
"name": "Length",
|
|
"type": "ushort",
|
|
"size": 2,
|
|
"description": "Packet length"
|
|
},
|
|
{
|
|
"name": "Vendor Serial",
|
|
"type": "uint",
|
|
"size": 4,
|
|
"description": "Serial of the vendor"
|
|
},
|
|
{
|
|
"name": "Item Count",
|
|
"type": "ushort",
|
|
"size": 2,
|
|
"description": "Number of items"
|
|
},
|
|
{
|
|
"name": "Items",
|
|
"type": "loop",
|
|
"description": "Sell items with prices",
|
|
"loop": {
|
|
"countField": "itemCount",
|
|
"fields": [
|
|
{
|
|
"name": "Item Serial",
|
|
"type": "uint",
|
|
"size": 4,
|
|
"description": "Item serial"
|
|
},
|
|
{
|
|
"name": "Item ID",
|
|
"type": "ushort",
|
|
"size": 2,
|
|
"description": "Item graphic ID"
|
|
},
|
|
{
|
|
"name": "Hue",
|
|
"type": "ushort",
|
|
"size": 2,
|
|
"description": "Item hue"
|
|
},
|
|
{
|
|
"name": "Amount",
|
|
"type": "ushort",
|
|
"size": 2,
|
|
"description": "Item amount"
|
|
},
|
|
{
|
|
"name": "Price",
|
|
"type": "ushort",
|
|
"size": 2,
|
|
"description": "Price per unit"
|
|
},
|
|
{
|
|
"name": "Name Length",
|
|
"type": "ushort",
|
|
"size": 2,
|
|
"description": "Name length"
|
|
},
|
|
{
|
|
"name": "Name",
|
|
"type": "ascii",
|
|
"description": "Item name"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
],
|
|
"related": [
|
|
{
|
|
"id": "0x9F",
|
|
"relationship": "response",
|
|
"note": "Vendor Sell Reply from client"
|
|
}
|
|
],
|
|
"source": {
|
|
"file": "Projects/Server/Network/Packets/OutgoingVendorSellPackets.cs",
|
|
"line": 25
|
|
}
|
|
}
|
|
]
|
|
} |