Create MediaWiki page '317 Update item container'

This commit is contained in:
Pure_ 2014-06-24 12:40:02 +00:00 committed by moparisthebest
parent 78ce9affdd
commit 94f6ae7302
4 changed files with 40 additions and 4 deletions

View File

@ -0,0 +1,34 @@
[[Category Packet]]
[[Category Packet 317]]
{{packet|name=Camera oscillate|description=Updates items in an interface component.|opcode=53|type=VARIABLE_SHORT|length=N/A|revision=317}}
== Camera oscillate ==
=== Description ===
Updates the items in a given interface component.
=== Packet Structure ===
{| border=2
! Data type
! Description
|-
| U [[Data Types#Standard data types|Short]]
| Interface ID.
|-
| U [[Data Types#Standard data types|Short]]
| Amount of items.
|-
|}
The rest in pseudo-code:
for (i = 0; i < amt_of_items; i++) {
item_amount = read_u_byte(); // Item Amount: U Byte
if (item_amount == 255)
item_amount = read_int_me_b(); // Item Amount (if entered as 255 previously - to allow bigger amounts than 254): Integer Middle-Endian Big (Inverse middle)
item_id = read_u_short_le_a(); // Item ID: U Short Little Endian Special A
}

View File

@ -2,9 +2,9 @@
The following categories contain pages or media.
* [[Category Cache]] (3 members)
* [[Category Data Type]] (3 members)
* [[Category Packet]] (131 members)
* [[Category Packet]] (132 members)
* [[Category Packet 194]] (4 members)
* [[Category Packet 317]] (92 members)
* [[Category Packet 317]] (93 members)
* [[Category Packet 377]] (24 members)
* [[Category Packet 474]] (3 members)
* [[Category Packet 718]] (7 members)

View File

@ -1,7 +1,7 @@
317 Packets
<!-- DO NOT EDIT BELOW THIS LINE, OR CHANGE THIS COMMENT, CODE AUTOMATICALLY GENERATED BY category.sh -->
== '''Pages in category "Packet 317"''' ==
The following 92 pages are in this category.
The following 93 pages are in this category.
* [[317 Add friend]]
* [[317 Add ignore]]
* [[317 Alternate item option 2]]
@ -92,5 +92,6 @@ The following 92 pages are in this category.
* [[317 Trade answer]]
* [[317 Trade request]]
* [[317 Unequip item]]
* [[317 Update item container]]
* [[317 Walkable interface]]
* [[317 Weight]]

View File

@ -1,6 +1,6 @@
<!-- DO NOT EDIT BELOW THIS LINE, OR CHANGE THIS COMMENT, CODE AUTOMATICALLY GENERATED BY category.sh -->
== '''Pages in category "Packet"''' ==
The following 131 pages are in this category.
The following 132 pages are in this category.
* [[194 Clear screen]]
* [[194 Logout]]
* [[194 Protocol]]
@ -95,6 +95,7 @@ The following 131 pages are in this category.
* [[317 Trade answer]]
* [[317 Trade request]]
* [[317 Unequip item]]
* [[317 Update item container]]
* [[317 Walkable interface]]
* [[317 Weight]]
* [[377 Animation Reset]]