Difference between revisions of "317:Initialize Ignore List"

From RuneWiki
Jump to navigationJump to search
(Created page with 'Sent when the player first connects to the Server. Contains the hashed version of each name on the Player's ignore list. Each name is sent as a QWord.')
 
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
Sent when the player first connects to the Server.
+
{{packet|name=Initialize Ignore List|description=Sends the hashed version of each of name of the Player's ignore list.|opcode=214|type=VARIABLE_SHORT(?)|length=N/A|revision=317}}
  
Contains the hashed version of each name on the Player's ignore list. Each name is sent as a [[QWord]].
+
== Initialize Ignore List ==
 +
 
 +
This packet sends the hashed version of all ignored player's names.
 +
 
 +
== Handling ==
 +
 
 +
=== Step One: Set ignore count ===
 +
 
 +
The client divides the size of the packet by 8 (since each name is sent in 8-byte hashes ([[QWord]]), then applies it to the ignore list size variable.
 +
ignoreListSize = packetSize / 8;
 +
 
 +
=== Step Two: Add names ===
 +
 
 +
The client loops runs a loop 'ignoreCount' times. Each iteration of the loop will read a [[QWord]] from the buffer and add it to an array.
 +
for(int i = 0; i < ignoreListSize; i++)
 +
    ignoredPlayerHashes[i] = stream.getLong(); //Note - getLong is more commonly 'readQWord()'.

Latest revision as of 20:55, 27 February 2010

Initialize Ignore List
Sends the hashed version of each of name of the Player's ignore list.
Opcode 214
Type VARIABLE_SHORT(?)
Length N/A


Initialize Ignore List

This packet sends the hashed version of all ignored player's names.

Handling

Step One: Set ignore count

The client divides the size of the packet by 8 (since each name is sent in 8-byte hashes (QWord), then applies it to the ignore list size variable.

ignoreListSize = packetSize / 8;

Step Two: Add names

The client loops runs a loop 'ignoreCount' times. Each iteration of the loop will read a QWord from the buffer and add it to an array.

for(int i = 0; i < ignoreListSize; i++)
    ignoredPlayerHashes[i] = stream.getLong(); //Note - getLong is more commonly 'readQWord()'.