Skip to content
This repository has been archived by the owner on Jan 2, 2023. It is now read-only.

Event_AttachItemContainer

MuhQ edited this page Jul 3, 2019 · 2 revisions

Event Type: EventCodes.AttachItemContainer (87)

Description: Basically everything which holds items (bank, chests, inventory, ...) are considered "containers". Each container has a unique UUID. This event is trigged, when the container "spawns" in the player´s cluster , i.e. by joining bank zone.

Example Output of packet (json)

{
"0":281,  
"1":"09bEtQC160yTCfuH0B2FHQ==",  
"2":"U9L8C20AHEy3hUcp1+cDIg==",  
"3":  
[0,0,0,0,0,337,336,335,338,334,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],  
"4":64,  
"252":"87"
}

Fields

Idx Name Comments
0 SpawnID
1 ContainerGUID identifier of the container
2 parentContainerGUID? GUID of the container "housing" this container (best guess atm.)
3 ContainerItems this array contains the information about which items are stored within the container. starting from top left (0) to bottom right (in this case 63). NOTE: the ids stored here are spawnids of items and not the item ids themself. Events with corresponsing information can be found at least in "NewEquipmentItem" (crafted items for instance) and "NewSimpleItem" (seed,ore,herbs,basic stuff)
4 ContainerSize Contains the amount of space within the container

complete example

given are the following packets in order they arrive at the client:

{"0":337,"1":87,"2":236,"252":"NewSimpleItem"}
{"0":336,"2":206,"252":"NewSimpleItem"}
{"0":335,"1":1847,"2":1,"3":"LadyCarolyne","4":1,"5":180000000,"6":"","7":"","252":"NewEquipmentItem"}
{"0":338,"1":582,"2":61,"252":"NewSimpleItem"}
{"0":334,"1":2,"2":9,"252":"NewSimpleItem"}
{"0":281,"1":"09bEtQC160yTCfuH0B2FHQ==","2":"U9L8C20AHEy3hUcp1+cDIg==","3":[0,0,0,0,0, 337,336,335,338,334,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],"4":64,"252":"AttachItemContainer"}

with this packets we have the following information:

  • there is an item with Spawnid 337 (for internal reference), the ID of the item is 87 (T1_CARROT), the stacked amount of this item is 236
  • there is an item with Spawnid 336 (for internal reference), the ID of the item is 0 (T1_FARM_CARROT_SEED), the stacked amount of this item is 206
  • there is an item with Spawnid 335 (for internal reference), the ID of the item is 1847 (T4_MOUNT_OX), the stacked amount of this item is 1
  • there is an item with Spawnid 338 (for internal reference), the ID of the item is 582 (T3_WOOD), the stacked amount of this item is 61
  • there is an item with Spawnid 334 (for internal reference), the ID of the item is 2 (T3_FARM_WHEAT_SEED), the stacked amount of this item is 9
  • there is a container with Spawnid 281, Guid XXX-XXX-XXX-XXX, having no items in the first row (0-4), and 236 carrots,206 carrot seeds,one t4 ox,61 T3 wood and 0 wheat seed in the second row; rest of the container is "empty"