<?xml version="1.0"?>
<rss version="2.0"><channel><title>Docs: Docs</title><link>https://metin2.dev/docs/pages/network/?d=16</link><description>Docs: Docs</description><language>en</language><item><title>Network Encryption</title><link>https://metin2.dev/docs/pages/network/network-encryption-r16/</link><description><![CDATA[<p>
	This page aims to explain the current two cryptation algorithms known to be used by M2 for encrypting and decrypting network data.<br>
	Keys are reported as two 64-bit integers (first number, second number) in hexadecimal.<br>
	NOTE: The encryption will start after a Phase packet once the Handshake is finished, therefore both the first Phase packet and the Handshake packets are not encrypted.
</p>

<p>
	 
</p>

<p>
	<strong>XTEA Encryption</strong>
</p>

<p>
	This encryption is divided in two phases, Auth Phase and Game Phase.
</p>

<p>
	Every packet that uses this encryption gets encrypted and decrypted with the TEA algorithm and a TEA key.
</p>

<p>
	This encryption was used starting from 2004 to 2011/2013. (Before revision 34k was introduced)
</p>

<p>
	The encryption works by having two XTEA keys, the first one (Referred as Auth phase key) is a static 16 bytes key used in the first stage of the communication, this key will be used until a Client has attempted to log in into a Channel (any core that is not an Auth one) with the login key method. Once the client sends a Login packet to a channel, it will also send it's encryptation keys where the server's encryptation keys will be computed. The keys will be changed IMMEDIATLY, no extra packet or data is needed to change the keys. This generated second keys are referred as Game phase keys.
</p>

<p>
	The client computes it's decryptation key (likewise, the server computes it's encryptation key) by performing an XTEA of the encryptation key (decryptation key for the server) with a Special key.
</p>

<p>
	 
</p>

<p>
	<strong>Key list</strong>
</p>

<table style="width: 100%;">
	<caption>
		Auth phase keys (Both for encrypting and decrypting)
	</caption>
	<tbody>
		<tr>
			<th style="text-align:left;">
				Usage
			</th>
			<th>
				First number
			</th>
			<th>
				Second number
			</th>
			<th>
				Notes
			</th>
		</tr>
		<tr>
			<td>
				Worldwide
			</td>
			<td>
				0x7473657474736574
			</td>
			<td>
				0x7473657474736574
			</td>
			<td>
				ASCII: testtesttesttest
			</td>
		</tr>
		<tr>
			<td>
				European servers
			</td>
			<td>
				0x6867666538373635
			</td>
			<td>
				0x6463626134333231
			</td>
			<td>
				ASCII: 1234abcd5678efgh
			</td>
		</tr>
	</tbody>
</table>

<p>
	 
</p>

<p>
	<strong>Special keys</strong>
</p>

<p>
	The Special key was generated by the Client and the Server during the login into the Game core, it is known that in very old version of M2 (such as the Korean 2003 beta) the following hardcoded key might be used rather than a random generated one.
</p>

<table style="width: 100%;">
	<caption>
		Special keys
	</caption>
	<tbody>
		<tr>
			<th style="text-align:left;">
				Usage
			</th>
			<th>
				First number
			</th>
			<th>
				Second number
			</th>
			<th>
				Notes
			</th>
		</tr>
		<tr>
			<td>
				Korean server
			</td>
			<td>
				0x6a6c48747854794a
			</td>
			<td>
				0x726f484a566c4a48
			</td>
			<td>
				ASCII: JyTxtHljHJlVJHor
			</td>
		</tr>
	</tbody>
</table>

<p>
	 
</p>

<p>
	<strong>Diffie-Hellman key exchange</strong>
</p>

<p>
	The improved packet cryptation is performed by choosing a suitable cipher based from the shared secret that is exchanged with Diffie-Hellman.<br>
	This encryption is used from 2011/2013 to today.<br>
	NOTE: The handshake phase is not encrypted.
</p>

<p>
	 
</p>

<p>
	<strong>Unified Diffie-Hellman key exchange</strong>
</p>

<ol>
	<li>
		Initialize RFC 5114's 1024-bit MODP standarized parameters (p, g, q)
	</li>
	<li>
		Randomly generate a Static and Ephemeral public and private keys with Unified Diffie-Hellman.
	</li>
	<li>
		Pass the shared secret length and public keys to the network and perform an agreement with the received public keys and shared secret length.
	</li>
</ol>

<p>
	 
</p>

<p>
	<strong>Cipher choose</strong>
</p>

<ol>
	<li>
		Takes the remained of the first byte in the shared secret block with the shared secret size. This number will determine where the first cipher number that is stored in the shared secret block.
	</li>
	<li>
		Takes the remained of the second byte in the shared secret block with the shared secret size. This number will determine where the second cipher number that is stored in the shared secret block.
	</li>
	<li>
		Takes the remained of this two bytes generated from the secret block with the max algorithms supported and pick an algorithm.
	</li>
	<li>
		The shared secret block contain the algorithm's keys and a block data (a random block is being used because some algorithms do not support IV), that will be used to crypt the packets.
	</li>
	<li>
		The selected cipher will be processed with CTR Mode and the generated IV
	</li>
	<li>
		If the keys are generated by the server, the first cipher will be the encryptation cipher. the second will be the decryptation cipher. The keys are inverted in client side.
	</li>
</ol>

<p>
	(The lengths are the default lengths assigned to the algorithm)
</p>

<p>
	 
</p>

<p>
	<strong>Appendix</strong>
</p>

<p>
	Secret block content:
</p>

<pre class="ipsCode" id="ips_uid_6431_4">Start of shared data
first key
second key
non important data
second IV
first IV
End of shared data</pre>

<p>
	 
</p>

<p>
	<strong>List of known algorithms:</strong>
</p>

<ul>
	<li>
		RC6
	</li>
	<li>
		MARS
	</li>
	<li>
		Twofish
	</li>
	<li>
		Serpent
	</li>
	<li>
		CAST256
	</li>
	<li>
		IDEA
	</li>
	<li>
		DES-EDE2 (Triple DES)
	</li>
	<li>
		Camellia
	</li>
	<li>
		SEED
	</li>
	<li>
		RC5
	</li>
	<li>
		Blowfish
	</li>
	<li>
		TEA
	</li>
	<li>
		SHACAL2
	</li>
</ul>
]]></description><guid isPermaLink="false">16</guid><pubDate>Tue, 07 Nov 2023 18:20:10 +0000</pubDate></item><item><title>Packefvfdts</title><link>https://metin2.dev/docs/pages/network/packets-r21/</link><description><![CDATA[<div class="mw-content-ltr" dir="ltr" id="mw-content-text" lang="en">
	<div class="mw-parser-output">
		<p>
			This page aims to explain how packets are handled in terms of structure and functionality
		</p>

		<div class="toc" id="toc">
			<input class="toctogglecheckbox" id="toctogglecheckbox" role="button" style="display:none" type="checkbox">
			<div class="toctitle" dir="ltr" lang="en">
				 
			</div>
		</div>

		<h2>
			<span class="mw-headline" id="Properties">Properties</span>
		</h2>

		<p>
			A packet has several data properties, them being game and networking information as:
		</p>

		<ul>
			<li>
				Header - A byte that identifies the packet
			</li>
			<li>
				Data - The data that is being sent/received
			</li>
			<li>
				Sequence - A byte that signs if the packet is sequenced
			</li>
		</ul>

		<p>
			On sending/receiving packets may be encrypted, check <a href="https://metin2.dev/docs/pages/network-encryption-r16/" rel="">Network Encryption</a> for more information
		</p>

		<p>
			 
		</p>

		<h2>
			<span class="mw-headline" id="Structure">Structure</span>
		</h2>

		<p>
			The packets have two different structures, constant and dynamic The goals of each type is predefined by the type of data handled
		</p>

		<ul>
			<li>
				Note: The sequence byte is always the last byte in a packet, no matter the structure and its optional
			</li>
		</ul>

		<p>
			 
		</p>

		<h3>
			<span class="mw-headline" id="Constant">Constant</span>
		</h3>

		<p>
			The constant packet structure follows the expected order of data:
		</p>

		<table style="width: 100%;">
			<caption>
				Structure
			</caption>
			<tbody>
				<tr>
					<th>
						Type
					</th>
					<th>
						Size (bytes)
					</th>
					<th>
						Description
					</th>
				</tr>
				<tr>
					<td>
						Header
					</td>
					<td>
						1 Byte
					</td>
					<td>
						The number identifier of the packet
					</td>
				</tr>
				<tr>
					<td>
						Data
					</td>
					<td>
						X Bytes
					</td>
					<td>
						The expected constant data values
					</td>
				</tr>
				<tr>
					<td>
						Sequence
					</td>
					<td>
						1 Byte
					</td>
					<td>
						The sequence value which defines if this packet is sequenced (optional)
					</td>
				</tr>
			</tbody>
		</table>

		<p>
			 
		</p>

		<h3>
			<span class="mw-headline" id="Dynamic">Dynamic</span>
		</h3>

		<p>
			The dynamic packet structure follows the expected order of data:
		</p>

		<table style="width: 100%;">
			<caption>
				Structure
			</caption>
			<tbody>
				<tr>
					<th>
						Type
					</th>
					<th>
						Size (bytes)
					</th>
					<th>
						Description
					</th>
				</tr>
				<tr>
					<td>
						Header
					</td>
					<td>
						1 Byte
					</td>
					<td>
						The number identifier of the packet
					</td>
				</tr>
				<tr>
					<td>
						Size
					</td>
					<td>
						2 Bytes
					</td>
					<td>
						The size of the entire packet, Header + Size + Data (excluding sequence)
					</td>
				</tr>
				<tr>
					<td>
						Data
					</td>
					<td>
						? Bytes
					</td>
					<td>
						The expected dynamic data values
					</td>
				</tr>
				<tr>
					<td>
						Sequence
					</td>
					<td>
						1 Byte
					</td>
					<td>
						The sequence value which defines if this packet is sequenced (optional)
					</td>
				</tr>
			</tbody>
		</table>

		<h2>
			 
		</h2>

		<h2>
			<span class="mw-headline" id="Flow.2FDirection">Flow/Direction</span>
		</h2>

		<p>
			The packets have different type denominations of directions regarding from who to who they are sent:
		</p>

		<ul>
			<li>
				CG(Client Game) - Client to Server
			</li>
			<li>
				GC(Game Client) - Server to Client
			</li>
			<li>
				GG(Game Game) - Server to Server
			</li>
			<li>
				GD(Game Database - Server to Database
			</li>
			<li>
				DG(Database Game) - Database to Server
			</li>
		</ul>

		<p>
			<b><i>Note</i></b>: The meaning of 'Server' in this case is a server core such authentication/game core and the meaning of 'Database' is the database core
		</p>

		<p>
			 
		</p>

		<h2>
			<span class="mw-headline" id="Known_Packets">Known Packets</span>
		</h2>

		<p>
			Here is a list table of the known packets and its directions:
		</p>

		<h3>
			<span class="mw-headline" id="Client_to_Server">Client to Server</span>
		</h3>

		<table style="width: 100%;">
			<caption>
				Client to Game - CG
			</caption>
			<tbody>
				<tr>
					<th>
						Header Identification - Byte (Hex)
					</th>
					<th>
						Description
					</th>
					<th>
						Sequenced
					</th>
					<th>
						Structure
					</th>
				</tr>
				<tr>
					<td>
						1 (0x01)
					</td>
					<td>
						Holds account credentials to perform a login
					</td>
					<td>
						True
					</td>
					<td>
						<a href="#CG_Packet_Login" rel="">#CG Packet Login</a>
					</td>
				</tr>
				<tr>
					<td>
						2 (0x02)
					</td>
					<td>
						Holds target, attack and cube information to perform several actions
					</td>
					<td>
						True
					</td>
					<td>
						<a href="#CG_Packet_Attack" rel="">#CG Packet Attack</a>
					</td>
				</tr>
				<tr>
					<td>
						3 (0x03)
					</td>
					<td>
						Holds length and type of a chat string to perform a chat command
					</td>
					<td>
						True
					</td>
					<td>
						<a href="#CG_Packet_Chat" rel="">#CG Packet Chat</a>
					</td>
				</tr>
				<tr>
					<td>
						4 (0x04)
					</td>
					<td>
						Holds information to create a new character
					</td>
					<td>
						True
					</td>
					<td>
						<a href="#CG_Packet_Player_Create" rel="">#CG Packet Player Create</a>
					</td>
				</tr>
				<tr>
					<td>
						5 (0x05)
					</td>
					<td>
						Holds an index and a key to delete an existing character
					</td>
					<td>
						True
					</td>
					<td>
						<a href="#CG_Packet_Player_Destroy" rel="">#CG Packet Player Destroy</a>
					</td>
				</tr>
				<tr>
					<td>
						6 (0x06)
					</td>
					<td>
						Holds an index to select an existing character
					</td>
					<td>
						True
					</td>
					<td>
						<a href="#CG_Packet_Player_Select" rel="">#CG Packet Player Select</a>
					</td>
				</tr>
				<tr>
					<td>
						7 (0x07)
					</td>
					<td>
						Holds movement, positional and duration information to move the main character
					</td>
					<td>
						True
					</td>
					<td>
						<a href="#CG_Packet_Player_Move" rel="">#CG Packet Player Move</a>
					</td>
				</tr>
				<tr>
					<td>
						8 (0x08)
					</td>
					<td>
						Holds identification and positional information of entities to perform synchronization
					</td>
					<td>
						True
					</td>
					<td>
						<a href="#CG_Packet_Sync_Position" rel="">#CG Packet Sync Position</a>
					</td>
				</tr>
				<tr>
					<td>
						9 (0x09)
					</td>
					<td>
						Holds account credentials and character index to perform a direct entrance in the game
					</td>
					<td>
						True
					</td>
					<td>
						<a href="#CG_Packet_Direct_Enter" rel="">#CG Packet Direct Enter</a>
					</td>
				</tr>
				<tr>
					<td>
						10 (0xA)
					</td>
					<td>
						Signals the server to enter the game world
					</td>
					<td>
						True
					</td>
					<td>
						<a href="#CG_Packet_Enter_Game" rel="">#CG Packet Enter Game</a>
					</td>
				</tr>
				<tr>
					<td>
						11 (0xB)
					</td>
					<td>
						Holds inventory position to perform an item use
					</td>
					<td>
						True
					</td>
					<td>
						<a href="#CG_Packet_Item_Use" rel="">#CG Packet Item Use</a>
					</td>
				</tr>
				<tr>
					<td>
						12 (0xC)
					</td>
					<td>
						Holds inventory position and Elk(game currency) to perform an item/elk drop in the game world
					</td>
					<td>
						True
					</td>
					<td>
						<a href="#CG_Packet_Item_Drop" rel="">#CG Packet Item Drop</a>
					</td>
				</tr>
				<tr>
					<td>
						13 (0xD)
					</td>
					<td>
						Holds source, target position and count to perform a item move inside the inventory
					</td>
					<td>
						True
					</td>
					<td>
						<a href="#CG_Packet_Item_Move" rel="">#CG Packet Item Move</a>
					</td>
				</tr>
				<tr>
					<td>
						15 (0xF)
					</td>
					<td>
						Holds position of game world item to perform a pickup
					</td>
					<td>
						True
					</td>
					<td>
						<a href="#CG_Packet_Pickup" rel="">#CG Packet Pickup</a>
					</td>
				</tr>
				<tr>
					<td>
						16 (0x10)
					</td>
					<td>
						Holds position and quickslot information to perform a quickslot addition
					</td>
					<td>
						True
					</td>
					<td>
						<a href="#CG_Packet_Quickslot_Add" rel="">#CG Packet Quickslot Add</a>
					</td>
				</tr>
				<tr>
					<td>
						17 (0x11)
					</td>
					<td>
						Holds position to perform a quickslot removal
					</td>
					<td>
						True
					</td>
					<td>
						<a href="#CG_Packet_Quickslot_Delete" rel="">#CG Packet Quickslot Delete</a>
					</td>
				</tr>
				<tr>
					<td>
						18 (0x12)
					</td>
					<td>
						Holds source and target position to perform a quickslot swap
					</td>
					<td>
						True
					</td>
					<td>
						<a href="#CG_Packet_Quickslot_Swap" rel="">#CG Packet Quickslot Swap</a>
					</td>
				</tr>
				<tr>
					<td>
						19 (0x13)
					</td>
					<td>
						Holds a chat string to perform a whisper action
					</td>
					<td>
						True
					</td>
					<td>
						<a href="#CG_Packet_Whisper" rel="">#CG Packet Whisper</a>
					</td>
				</tr>
				<tr>
					<td>
						20 (0x14)
					</td>
					<td>
						Holds inventory position and Gold(game currency) to perform an item/gold drop in the game world
					</td>
					<td>
						True
					</td>
					<td>
						<a href="#CG_Packet_Item_Drop_2" rel="">#CG Packet Item Drop 2</a>
					</td>
				</tr>
				<tr>
					<td>
						26 (0x1A)
					</td>
					<td>
						Holds entity information to perform a click action
					</td>
					<td>
						True
					</td>
					<td>
						<a href="#CG_Packet_On_Click" rel="">#CG Packet On Click</a>
					</td>
				</tr>
				<tr>
					<td>
						28 (0x1C)
					</td>
					<td>
						Holds character position information (undefined reason)
					</td>
					<td>
						True
					</td>
					<td>
						<a href="#CG_Packet_Character_Position" rel="">#CG Packet Character Position</a>
					</td>
				</tr>
				<tr>
					<td>
						29 (0x1D)
					</td>
					<td>
						Holds answer information for a script/quest
					</td>
					<td>
						True
					</td>
					<td>
						<a href="#CG_Packet_Script_Answer" rel="">#CG Packet Script Answer</a>
					</td>
				</tr>
				<tr>
					<td>
						30 (0x1E)
					</td>
					<td>
						Holds an input string for a quest response
					</td>
					<td>
						True
					</td>
					<td>
						<a href="#CG_Packet_Quest_Input_String" rel="">#CG Packet Quest Input String</a>
					</td>
				</tr>
				<tr>
					<td>
						31 (0x1F)
					</td>
					<td>
						Holds answer information for a quest confirmation
					</td>
					<td>
						True
					</td>
					<td>
						<a href="#CG_Packet_Quest_Confirm" rel="">#CG Packet Quest Confirm</a>
					</td>
				</tr>
			</tbody>
		</table>
	</div>
</div>
]]></description><guid isPermaLink="false">21</guid><pubDate>Tue, 07 Nov 2023 18:32:34 +0000</pubDate></item><item><title>Packets ServerClient</title><link>https://metin2.dev/docs/pages/network/packets-serverclient-r22/</link><description><![CDATA[<div class="mw-parser-output">
	<p>
		A list of the known Server to Client packets aka Game Client(GC
	</p>

	<p>
		 
	</p>

	<h2>
		<span class="mw-headline" id="Structures">Structures</span>
	</h2>

	<p>
		Here are the following packet content regarding the list:
	</p>

	<p>
		 
	</p>

	<h3>
		<span class="mw-headline" id="GC_Packet_Character_Add"><b>GC Packet Character Add</b></span>
	</h3>

	<ul>
		<li>
			<b>Header:</b> 1 (0x01) <b>Type:</b> <i><a href="https://metin2.dev/docs/pages/packets-r21/" rel="">Constant</a></i>
		</li>
		<li>
			<b>Sequenced:</b> <i>True</i>
		</li>
		<li>
			<b>Description:</b> A packet used to add a character instance
		</li>
	</ul>

	<table style="width: 100%;">
		<caption>
			Structure
		</caption>
		<tbody>
			<tr>
				<th>
					Name
				</th>
				<th>
					Type
				</th>
				<th>
					Size (bytes)
				</th>
				<th>
					Description
				</th>
			</tr>
			<tr>
				<td>
					vid
				</td>
				<td>
					unsigned long
				</td>
				<td>
					8
				</td>
				<td>
					The virtual id of the character
				</td>
			</tr>
			<tr>
				<td>
					angle
				</td>
				<td>
					float
				</td>
				<td>
					8
				</td>
				<td>
					The angle of the character
				</td>
			</tr>
			<tr>
				<td>
					x
				</td>
				<td>
					long
				</td>
				<td>
					8
				</td>
				<td>
					The X position of the character
				</td>
			</tr>
			<tr>
				<td>
					y
				</td>
				<td>
					long
				</td>
				<td>
					8
				</td>
				<td>
					The Y position of the character
				</td>
			</tr>
			<tr>
				<td>
					z
				</td>
				<td>
					long
				</td>
				<td>
					8
				</td>
				<td>
					The Z position of the character
				</td>
			</tr>
			<tr>
				<td>
					type
				</td>
				<td>
					unsigned char
				</td>
				<td>
					8
				</td>
				<td>
					The type of the character
				</td>
			</tr>
			<tr>
				<td>
					race
				</td>
				<td>
					unsigned short
				</td>
				<td>
					8
				</td>
				<td>
					The race/sex of the character
				</td>
			</tr>
			<tr>
				<td>
					movementSpeed
				</td>
				<td>
					unsigned char
				</td>
				<td>
					8
				</td>
				<td>
					The movement speed of the character
				</td>
			</tr>
			<tr>
				<td>
					attackSpeed
				</td>
				<td>
					unsigned short
				</td>
				<td>
					8
				</td>
				<td>
					The attack speed of the character
				</td>
			</tr>
			<tr>
				<td>
					stateFlag
				</td>
				<td>
					unsigned short
				</td>
				<td>
					1
				</td>
				<td>
					The state flag of the character
				</td>
			</tr>
			<tr>
				<td>
					affectFlags
				</td>
				<td>
					unsigned long[2]
				</td>
				<td>
					16
				</td>
				<td>
					The affect flags of the character
				</td>
			</tr>
		</tbody>
	</table>

	<p>
		 
	</p>

	<h3>
		<span class="mw-headline" id="GC_Packet_Character_Delete"><b>GC Packet Character Delete </b></span>
	</h3>

	<ul>
		<li>
			<b>Header:</b> 2 (0x02) <b>Type:</b> <i><a href="https://metin2.dev/docs/pages/packets-r21/" rel="">Constant</a></i>
		</li>
		<li>
			<b>Sequenced:</b> <i>True</i>
		</li>
		<li>
			<b>Description:</b> A packet used to delete a character instance by virtual id
		</li>
	</ul>

	<table style="width: 100%;">
		<caption>
			Structure
		</caption>
		<tbody>
			<tr>
				<th>
					Name
				</th>
				<th>
					Type
				</th>
				<th>
					Size (bytes)
				</th>
				<th>
					Description
				</th>
			</tr>
			<tr>
				<td>
					vid
				</td>
				<td>
					unsigned long
				</td>
				<td>
					8
				</td>
				<td>
					The virtual id of the character
				</td>
			</tr>
		</tbody>
	</table>

	<p>
		 
	</p>

	<h3>
		<span class="mw-headline" id="GC_Packet_Character_Move"><b>GC Packet Character Move </b></span>
	</h3>

	<ul>
		<li>
			<b>Header:</b> 3 (0x03) <b>Type:</b> <i><a href="https://metin2.dev/docs/pages/packets-r21/" rel="">Constant</a></i>
		</li>
		<li>
			<b>Sequenced:</b> <i>True</i>
		</li>
		<li>
			<b>Description:</b> A packet used to move a character instance
		</li>
	</ul>

	<table style="width: 100%;">
		<caption>
			Structure
		</caption>
		<tbody>
			<tr>
				<th>
					Name
				</th>
				<th>
					Type
				</th>
				<th>
					Size (bytes)
				</th>
				<th>
					Description
				</th>
			</tr>
			<tr>
				<td>
					function
				</td>
				<td>
					unsigned char
				</td>
				<td>
					1
				</td>
				<td>
					The function of the movement
				</td>
			</tr>
			<tr>
				<td>
					argument
				</td>
				<td>
					unsigned char
				</td>
				<td>
					1
				</td>
				<td>
					The argument to the function
				</td>
			</tr>
			<tr>
				<td>
					rotation
				</td>
				<td>
					unsigned char
				</td>
				<td>
					1
				</td>
				<td>
					The rotation of the character
				</td>
			</tr>
			<tr>
				<td>
					vid
				</td>
				<td>
					unsigned long
				</td>
				<td>
					8
				</td>
				<td>
					The virtual id of the character
				</td>
			</tr>
			<tr>
				<td>
					x
				</td>
				<td>
					long
				</td>
				<td>
					8
				</td>
				<td>
					The X position of the movement
				</td>
			</tr>
			<tr>
				<td>
					y
				</td>
				<td>
					long
				</td>
				<td>
					8
				</td>
				<td>
					The Y position of the movement
				</td>
			</tr>
			<tr>
				<td>
					time
				</td>
				<td>
					unsigned long
				</td>
				<td>
					8
				</td>
				<td>
					The time of the movement
				</td>
			</tr>
			<tr>
				<td>
					duration
				</td>
				<td>
					unsigned long
				</td>
				<td>
					8
				</td>
				<td>
					The duration of the movement
				</td>
			</tr>
		</tbody>
	</table>

	<p>
		 
	</p>

	<h3>
		<span class="mw-headline" id="GC_Packet_Chat"><b>GC Packet Chat </b></span>
	</h3>

	<ul>
		<li>
			<b>Header:</b> 4 (0x04) <b>Type:</b> <i><a href="https://metin2.dev/docs/pages/packets-r21/" rel="">Constant</a></i>
		</li>
		<li>
			<b>Sequenced:</b> <i>True</i>
		</li>
		<li>
			<b>Description:</b> A packet used to handle a new chat message
		</li>
	</ul>

	<table style="width: 100%;">
		<caption>
			Structure
		</caption>
		<tbody>
			<tr>
				<th>
					Name
				</th>
				<th>
					Type
				</th>
				<th>
					Size (bytes)
				</th>
				<th>
					Description
				</th>
			</tr>
			<tr>
				<td>
					size
				</td>
				<td>
					unsigned short
				</td>
				<td>
					2
				</td>
				<td>
					The size of the message
				</td>
			</tr>
			<tr>
				<td>
					type
				</td>
				<td>
					unsigned char
				</td>
				<td>
					1
				</td>
				<td>
					The type of the message
				</td>
			</tr>
			<tr>
				<td>
					vid
				</td>
				<td>
					unsigned long
				</td>
				<td>
					8
				</td>
				<td>
					The virtual id of the sender(?)
				</td>
			</tr>
			<tr>
				<td>
					empire
				</td>
				<td>
					unsigned char
				</td>
				<td>
					1
				</td>
				<td>
					The empire from where the message was sent
				</td>
			</tr>
			<tr>
				<td>
					message
				</td>
				<td>
					char
				</td>
				<td>
					1012 (up to)
				</td>
				<td>
					The chat message
				</td>
			</tr>
		</tbody>
	</table>

	<p>
		 
	</p>

	<h3>
		<span class="mw-headline" id="GC_Packet_Sync_Position"><b>GC Packet Sync Position</b></span>
	</h3>

	<ul>
		<li>
			<b>Header:</b> 5 (0x05) <b>Type:</b> <i><a href="https://metin2.dev/docs/pages/packets-r21/" rel="">Constant</a></i>
		</li>
		<li>
			<b>Sequenced:</b> <i>True</i>
		</li>
		<li>
			<b>Description:</b> A packet used to sync position
		</li>
	</ul>

	<table style="width: 100%;">
		<caption>
			Structure
		</caption>
		<tbody>
			<tr>
				<th>
					Name
				</th>
				<th>
					Type
				</th>
				<th>
					Size (bytes)
				</th>
				<th>
					Description
				</th>
			</tr>
			<tr>
				<td>
					vid (ordered, repeatable)
				</td>
				<td>
					unsigned long
				</td>
				<td>
					8
				</td>
				<td>
					The virtual id of the entity
				</td>
			</tr>
			<tr>
				<td>
					x (ordered, repeatable)
				</td>
				<td>
					long
				</td>
				<td>
					8
				</td>
				<td>
					The X position of the entity
				</td>
			</tr>
			<tr>
				<td>
					y (ordered, repeatable)
				</td>
				<td>
					long
				</td>
				<td>
					8
				</td>
				<td>
					The Y position of the entity
				</td>
			</tr>
		</tbody>
	</table>
</div>
]]></description><guid isPermaLink="false">22</guid><pubDate>Tue, 07 Nov 2023 18:40:48 +0000</pubDate></item><item><title>Packets ClientServer</title><link>https://metin2.dev/docs/pages/network/packets-clientserver-r23/</link><description><![CDATA[<div class="mw-parser-output">
	<p>
		This page aims to list the Client to Server packet information.<br>
		<span style="color: rgb( var(--theme-text_color) );">A list of the known Client to Server packets aka Client Game(CG)</span>
	</p>

	<p>
		 
	</p>

	<h2>
		<span class="mw-headline" id="Structures">Structures</span>
	</h2>

	<p>
		Here are the following packet content regarding the Packets list:
	</p>

	<p>
		 
	</p>

	<h4>
		<span class="mw-headline" id="CG_Packet_Login"><b>CG Packet Login</b></span>
	</h4>

	<ul>
		<li>
			<b>Header:</b> 1 (0x01) <b>Type:</b> <i>Constant</i>
		</li>
		<li>
			<b>Sequenced:</b> <i>True</i>
		</li>
		<li>
			<b>Description:</b> A packet used to send basic account credentials to the server in order to make login
		</li>
	</ul>

	<table style="width: 100%;">
		<caption>
			Structure
		</caption>
		<tbody>
			<tr>
				<th>
					Name
				</th>
				<th>
					Type
				</th>
				<th>
					Size (bytes)
				</th>
				<th>
					Description
				</th>
			</tr>
			<tr>
				<td>
					name
				</td>
				<td>
					char
				</td>
				<td>
					31
				</td>
				<td>
					The account username characters
				</td>
			</tr>
			<tr>
				<td>
					password
				</td>
				<td>
					char
				</td>
				<td>
					17
				</td>
				<td>
					The account password characters
				</td>
			</tr>
		</tbody>
	</table>

	<p>
		 
	</p>

	<h4>
		<span class="mw-headline" id="CG_Packet_Attack"><b>CG Packet Attack</b></span>
	</h4>

	<ul>
		<li>
			<b>Header:</b> 2 (0x02) <b>Type:</b> <i>Constant</i>
		</li>
		<li>
			<b>Sequenced:</b> <i>True</i>
		</li>
		<li>
			<b>Description:</b> A packet used to send attack and magic cube information to the server
		</li>
	</ul>

	<table style="width: 100%;">
		<caption>
			Structure
		</caption>
		<tbody>
			<tr>
				<th>
					Name
				</th>
				<th>
					Type
				</th>
				<th>
					Size (bytes)
				</th>
				<th>
					Description
				</th>
			</tr>
			<tr>
				<td>
					type
				</td>
				<td>
					unsigned char
				</td>
				<td>
					1
				</td>
				<td>
					The type of attack to perform
				</td>
			</tr>
			<tr>
				<td>
					victim
				</td>
				<td>
					unsigned long
				</td>
				<td>
					4
				</td>
				<td>
					The account password characters
				</td>
			</tr>
			<tr>
				<td>
					magicCubeProcessPieceCRC
				</td>
				<td>
					unsigned char
				</td>
				<td>
					1
				</td>
				<td>
					The CRC of the magic cube process procedure
				</td>
			</tr>
			<tr>
				<td>
					magicCubeProcessFileCRC
				</td>
				<td>
					unsigned char
				</td>
				<td>
					1
				</td>
				<td>
					The CRC of the magic cube process file
				</td>
			</tr>
		</tbody>
	</table>

	<p>
		 
	</p>

	<h4>
		<span class="mw-headline" id="CG_Packet_Chat"><b>CG Packet Chat</b></span>
	</h4>

	<ul>
		<li>
			<b>Header:</b> 3 (0x03) <b>Type:</b> <i>Constant</i>
		</li>
		<li>
			<b>Sequenced:</b> <i>True</i>
		</li>
		<li>
			<b>Description:</b> A packet used to send a chat message to the server
		</li>
	</ul>

	<table style="width: 100%;">
		<caption>
			Structure
		</caption>
		<tbody>
			<tr>
				<th>
					Name
				</th>
				<th>
					Type
				</th>
				<th>
					Size (bytes)
				</th>
				<th>
					Description
				</th>
			</tr>
			<tr>
				<td>
					length
				</td>
				<td>
					unsigned short
				</td>
				<td>
					2
				</td>
				<td>
					The length of the message
				</td>
			</tr>
			<tr>
				<td>
					type
				</td>
				<td>
					char
				</td>
				<td>
					1
				</td>
				<td>
					The type of the message
				</td>
			</tr>
			<tr>
				<td>
					message
				</td>
				<td>
					char
				</td>
				<td>
					<b>length</b>
				</td>
				<td>
					The message to send
				</td>
			</tr>
		</tbody>
	</table>

	<p>
		 
	</p>

	<h4>
		<span class="mw-headline" id="CG_Packet_Player_Create"><b>CG Packet Player Create</b></span>
	</h4>

	<ul>
		<li>
			<b>Header:</b> 4 (0x04) <b>Type:</b> <i>Constant</i>
		</li>
		<li>
			<b>Sequenced:</b> <i>True</i>
		</li>
		<li>
			<b>Description:</b> A packet used to create a new character
		</li>
	</ul>

	<table style="width: 100%;">
		<caption>
			Structure
		</caption>
		<tbody>
			<tr>
				<th>
					Name
				</th>
				<th>
					Type
				</th>
				<th>
					Size (bytes)
				</th>
				<th>
					Description
				</th>
			</tr>
			<tr>
				<td>
					index
				</td>
				<td>
					unsigned char
				</td>
				<td>
					1
				</td>
				<td>
					The slot index in the account
				</td>
			</tr>
			<tr>
				<td>
					name
				</td>
				<td>
					char
				</td>
				<td>
					24
				</td>
				<td>
					The name of the character
				</td>
			</tr>
			<tr>
				<td>
					job
				</td>
				<td>
					unsigned short
				</td>
				<td>
					2
				</td>
				<td>
					The race and sex of the character
				</td>
			</tr>
			<tr>
				<td>
					shape
				</td>
				<td>
					unsigned char
				</td>
				<td>
					1
				</td>
				<td>
					The model index of the character
				</td>
			</tr>
			<tr>
				<td>
					con
				</td>
				<td>
					unsigned char
				</td>
				<td>
					1
				</td>
				<td>
					The CON stat attribute of the character
				</td>
			</tr>
			<tr>
				<td>
					int
				</td>
				<td>
					unsigned char
				</td>
				<td>
					1
				</td>
				<td>
					The INT stat attribute of the character
				</td>
			</tr>
			<tr>
				<td>
					str
				</td>
				<td>
					unsigned char
				</td>
				<td>
					1
				</td>
				<td>
					The STR stat attribute of the character
				</td>
			</tr>
			<tr>
				<td>
					dex
				</td>
				<td>
					unsigned char
				</td>
				<td>
					1
				</td>
				<td>
					The DEX stat attribute of the character
				</td>
			</tr>
		</tbody>
	</table>

	<p>
		 
	</p>

	<h4>
		<span class="mw-headline" id="CG_Packet_Player_Destroy"><b>CG Packet Player Destroy</b></span>
	</h4>

	<ul>
		<li>
			<b>Header:</b> 5 (0x05) <b>Type:</b> <i>Constant</i>
		</li>
		<li>
			<b>Sequenced:</b> <i>True</i>
		</li>
		<li>
			<b>Description:</b> A packet used to delete an existing character
		</li>
	</ul>

	<table style="width: 100%;">
		<caption>
			Structure
		</caption>
		<tbody>
			<tr>
				<th>
					Name
				</th>
				<th>
					Type
				</th>
				<th>
					Size (bytes)
				</th>
				<th>
					Description
				</th>
			</tr>
			<tr>
				<td>
					index
				</td>
				<td>
					unsigned char
				</td>
				<td>
					1
				</td>
				<td>
					The slot index in the account
				</td>
			</tr>
			<tr>
				<td>
					name
				</td>
				<td>
					char
				</td>
				<td>
					8
				</td>
				<td>
					The character deletion code
				</td>
			</tr>
		</tbody>
	</table>

	<p>
		 
	</p>

	<h4>
		<span class="mw-headline" id="CG_Packet_Player_Select"><b>CG Packet Player Select</b></span>
	</h4>

	<ul>
		<li>
			<b>Header:</b> 6 (0x06) <b>Type:</b> <i>Constant</i>
		</li>
		<li>
			<b>Sequenced:</b> <i>True</i>
		</li>
		<li>
			<b>Description:</b> A packet used to select a character
		</li>
	</ul>

	<table style="width: 100%;">
		<caption>
			Structure
		</caption>
		<tbody>
			<tr>
				<th>
					Name
				</th>
				<th>
					Type
				</th>
				<th>
					Size (bytes)
				</th>
				<th>
					Description
				</th>
			</tr>
			<tr>
				<td>
					index
				</td>
				<td>
					unsigned char
				</td>
				<td>
					1
				</td>
				<td>
					The slot index in the account
				</td>
			</tr>
		</tbody>
	</table>

	<p>
		 
	</p>

	<h4>
		<span class="mw-headline" id="CG_Packet_Character_Move"><b>CG Packet Character Move</b></span>
	</h4>

	<ul>
		<li>
			<b>Header:</b> 7 (0x07) <b>Type:</b> <i>Constant</i>
		</li>
		<li>
			<b>Sequenced:</b> <i>True</i>
		</li>
		<li>
			<b>Description:</b> A packet used to delete an existing character
		</li>
	</ul>

	<table style="width: 100%;">
		<caption>
			Structure
		</caption>
		<tbody>
			<tr>
				<th>
					Name
				</th>
				<th>
					Type
				</th>
				<th>
					Size (bytes)
				</th>
				<th>
					Description
				</th>
			</tr>
			<tr>
				<td>
					function
				</td>
				<td>
					unsigned char
				</td>
				<td>
					1
				</td>
				<td>
					The action/function to perform
				</td>
			</tr>
			<tr>
				<td>
					argument
				</td>
				<td>
					unsigned char
				</td>
				<td>
					1
				</td>
				<td>
					The argument for the action/function
				</td>
			</tr>
			<tr>
				<td>
					x
				</td>
				<td>
					long
				</td>
				<td>
					8
				</td>
				<td>
					The X target position to move into
				</td>
			</tr>
			<tr>
				<td>
					y
				</td>
				<td>
					long
				</td>
				<td>
					8
				</td>
				<td>
					The Y target position to move into
				</td>
			</tr>
			<tr>
				<td>
					time
				</td>
				<td>
					unsigned long
				</td>
				<td>
					8
				</td>
				<td>
					The current time of the server
				</td>
			</tr>
		</tbody>
	</table>

	<p>
		 
	</p>

	<h4>
		<span class="mw-headline" id="CG_Packet_Sync_Position"><b>CG Packet Sync Position</b></span>
	</h4>

	<ul>
		<li>
			<b>Header:</b> 8 (0x08) <b>Type:</b> <i>Dynamic</i>
		</li>
		<li>
			<b>Sequenced:</b> <i>True</i>
		</li>
		<li>
			<b>Description:</b> A packet used to synchronize the position of entities
		</li>
	</ul>

	<table style="width: 100%;">
		<caption>
			Structure
		</caption>
		<tbody>
			<tr>
				<th>
					Name
				</th>
				<th>
					Type
				</th>
				<th>
					Size (bytes)
				</th>
				<th>
					Description
				</th>
			</tr>
			<tr>
				<td>
					vid (ordered, repeatable)
				</td>
				<td>
					unsigned long
				</td>
				<td>
					8
				</td>
				<td>
					The virtual id of the entity
				</td>
			</tr>
			<tr>
				<td>
					x (ordered, repeatable)
				</td>
				<td>
					long
				</td>
				<td>
					8
				</td>
				<td>
					The X position of the entity
				</td>
			</tr>
			<tr>
				<td>
					y (ordered, repeatable)
				</td>
				<td>
					long
				</td>
				<td>
					8
				</td>
				<td>
					The Y position of the entity
				</td>
			</tr>
		</tbody>
	</table>

	<p>
		 
	</p>

	<h4>
		<span class="mw-headline" id="CG_Packet_Direct_Enter"><b>CG Packet Direct Enter</b></span>
	</h4>

	<ul>
		<li>
			<b>Header:</b> 9 (0x09) <b>Type:</b> <i>Constant</i>
		</li>
		<li>
			<b>Sequenced:</b> <i>True</i>
		</li>
		<li>
			<b>Description:</b> A packet used to synchronize the position of entities
		</li>
	</ul>

	<table style="width: 100%;">
		<caption>
			Structure
		</caption>
		<tbody>
			<tr>
				<th>
					Name
				</th>
				<th>
					Type
				</th>
				<th>
					Size (bytes)
				</th>
				<th>
					Description
				</th>
			</tr>
			<tr>
				<td>
					index
				</td>
				<td>
					unsigned char
				</td>
				<td>
					1
				</td>
			</tr>
			<tr>
				<td>
					username
				</td>
				<td>
					char
				</td>
				<td>
					31
				</td>
			</tr>
			<tr>
				<td>
					password
				</td>
				<td>
					char
				</td>
				<td>
					17
				</td>
			</tr>
		</tbody>
	</table>

	<p>
		 
	</p>

	<h4>
		<span class="mw-headline" id="CG_Packet_Enter_Game"><b>CG Packet Enter Game</b></span>
	</h4>

	<ul>
		<li>
			<b>Header:</b> 10 (0xA) <b>Type:</b> <i>Constant</i>
		</li>
		<li>
			<b>Sequenced:</b> <i>True</i>
		</li>
		<li>
			<b>Description:</b> A packet used to synchronize the position of entities
		</li>
	</ul>

	<table style="width: 100%;">
		<caption>
			Structure
		</caption>
		<tbody>
			<tr>
				<th>
					Name
				</th>
				<th>
					Type
				</th>
				<th>
					Size (bytes)
				</th>
				<th>
					Description
				</th>
			</tr>
			<tr>
				<td>
					index
				</td>
				<td>
					unsigned char
				</td>
				<td>
					1
				</td>
			</tr>
			<tr>
				<td>
					username
				</td>
				<td>
					char
				</td>
				<td>
					31
				</td>
			</tr>
			<tr>
				<td>
					password
				</td>
				<td>
					char
				</td>
				<td>
					17
				</td>
			</tr>
		</tbody>
	</table>

	<p>
		 
	</p>

	<h4>
		<span class="mw-headline" id="CG_Packet_Item_Use"><b>CG Packet Item Use</b></span>
	</h4>

	<ul>
		<li>
			<b>Header:</b> 11 (0xB) <b>Type:</b> <i>Constant</i>
		</li>
		<li>
			<b>Sequenced:</b> <i>True</i>
		</li>
		<li>
			<b>Description:</b> A packet used to use an item from an inventory
		</li>
	</ul>

	<table style="width: 100%;">
		<caption>
			Structure
		</caption>
		<tbody>
			<tr>
				<th>
					Name
				</th>
				<th>
					Type
				</th>
				<th>
					Size (bytes)
				</th>
				<th>
					Description
				</th>
			</tr>
			<tr>
				<td>
					windowType
				</td>
				<td>
					unsigned char
				</td>
				<td>
					1
				</td>
				<td>
					The type of window
				</td>
			</tr>
			<tr>
				<td>
					cell
				</td>
				<td>
					unsigned short
				</td>
				<td>
					2
				</td>
				<td>
					The cell of the window
				</td>
			</tr>
		</tbody>
	</table>

	<p>
		 
	</p>

	<h4>
		<span class="mw-headline" id="CG_Packet_Item_Drop"><b>CG Packet Item Drop</b></span>
	</h4>

	<ul>
		<li>
			<b>Header:</b> 12 (0xC) <b>Type:</b> <i>Constant</i>
		</li>
		<li>
			<b>Sequenced:</b> <i>True</i>
		</li>
		<li>
			<b>Description:</b> A packet used to drop an item from an inventory
		</li>
	</ul>

	<table style="width: 100%;">
		<caption>
			Structure
		</caption>
		<tbody>
			<tr>
				<th>
					Name
				</th>
				<th>
					Type
				</th>
				<th>
					Size (bytes)
				</th>
				<th>
					Description
				</th>
			</tr>
			<tr>
				<td>
					windowType
				</td>
				<td>
					unsigned char
				</td>
				<td>
					1
				</td>
				<td>
					The type of window
				</td>
			</tr>
			<tr>
				<td>
					cell
				</td>
				<td>
					unsigned short
				</td>
				<td>
					2
				</td>
				<td>
					The cell of the window
				</td>
			</tr>
			<tr>
				<td>
					money
				</td>
				<td>
					unsigned long
				</td>
				<td>
					8
				</td>
				<td>
					The money/gold currency to drop (if any)
				</td>
			</tr>
		</tbody>
	</table>

	<p>
		 
	</p>

	<h4>
		<span class="mw-headline" id="CG_Packet_Item_Move"><b>CG Packet Item Move</b></span>
	</h4>

	<ul>
		<li>
			<b>Header:</b> 13 (0xD) <b>Type:</b> <i>Constant</i>
		</li>
		<li>
			<b>Sequenced:</b> <i>True</i>
		</li>
		<li>
			<b>Description:</b> A packet used to move an item within inventories
		</li>
	</ul>

	<table style="width: 100%;">
		<caption>
			Structure
		</caption>
		<tbody>
			<tr>
				<th>
					Name
				</th>
				<th>
					Type
				</th>
				<th>
					Size (bytes)
				</th>
				<th>
					Description
				</th>
			</tr>
			<tr>
				<td>
					sourceWindowType
				</td>
				<td>
					unsigned char
				</td>
				<td>
					1
				</td>
				<td>
					The type of window
				</td>
			</tr>
			<tr>
				<td>
					sourceCell
				</td>
				<td>
					unsigned short
				</td>
				<td>
					2
				</td>
				<td>
					The cell of the window
				</td>
			</tr>
			<tr>
				<td>
					targetWindowType
				</td>
				<td>
					unsigned char
				</td>
				<td>
					1
				</td>
				<td>
					The type of window
				</td>
			</tr>
			<tr>
				<td>
					targetCell
				</td>
				<td>
					unsigned short
				</td>
				<td>
					2
				</td>
				<td>
					The cell of the window
				</td>
			</tr>
			<tr>
				<td>
					amount
				</td>
				<td>
					unsigned char
				</td>
				<td>
					1
				</td>
				<td>
					The amount of the stacked item to move
				</td>
			</tr>
		</tbody>
	</table>

	<p>
		 
	</p>

	<h4>
		<span class="mw-headline" id="CG_Packet_Item_Pickup"><b>CG Packet Item Pickup</b></span>
	</h4>

	<ul>
		<li>
			<b>Header:</b> 15 (0xF) <b>Type:</b> <i>Constant</i>
		</li>
		<li>
			<b>Sequenced:</b> <i>True</i>
		</li>
		<li>
			<b>Description:</b> A packet used to move an item within inventories
		</li>
	</ul>

	<table style="width: 100%;">
		<caption>
			Structure
		</caption>
		<tbody>
			<tr>
				<th>
					Name
				</th>
				<th>
					Type
				</th>
				<th>
					Size (bytes)
				</th>
				<th>
					Description
				</th>
			</tr>
			<tr>
				<td>
					vid
				</td>
				<td>
					unsigned long
				</td>
				<td>
					8
				</td>
				<td>
					The virtual id of the item in the game world
				</td>
			</tr>
		</tbody>
	</table>

	<p>
		 
	</p>

	<h4>
		<span class="mw-headline" id="CG_Packet_Quickslot_Add"><b>CG Packet Quickslot Add</b></span>
	</h4>

	<ul>
		<li>
			<b>Header:</b> 16 (0x10) <b>Type:</b> <i>Constant</i>
		</li>
		<li>
			<b>Sequenced:</b> <i>True</i>
		</li>
		<li>
			<b>Description:</b> A packet used to add an item into a quickslot
		</li>
	</ul>

	<table style="width: 100%;">
		<caption>
			Structure
		</caption>
		<tbody>
			<tr>
				<th>
					Name
				</th>
				<th>
					Type
				</th>
				<th>
					Size (bytes)
				</th>
				<th>
					Description
				</th>
			</tr>
			<tr>
				<td>
					position
				</td>
				<td>
					unsigned char
				</td>
				<td>
					1
				</td>
				<td>
					The global position of the item
				</td>
			</tr>
			<tr>
				<td>
					position
				</td>
				<td>
					unsigned char
				</td>
				<td>
					1
				</td>
				<td>
					The global position of the item
				</td>
			</tr>
			<tr>
				<td>
					quickslotType
				</td>
				<td>
					unsigned char
				</td>
				<td>
					1
				</td>
				<td>
					The type of quickslot
				</td>
			</tr>
			<tr>
				<td>
					quickslotPosition
				</td>
				<td>
					unsigned char
				</td>
				<td>
					1
				</td>
				<td>
					The position in the quickslot
				</td>
			</tr>
		</tbody>
	</table>

	<p>
		 
	</p>

	<h4>
		<span class="mw-headline" id="CG_Packet_Quickslot_Delete"><b>CG Packet Quickslot Delete</b></span>
	</h4>

	<ul>
		<li>
			<b>Header:</b> 17 (0x11) <b>Type:</b> <i>Constant</i>
		</li>
		<li>
			<b>Sequenced:</b> <i>True</i>
		</li>
		<li>
			<b>Description:</b> A packet used to delete an item from the quickslot
		</li>
	</ul>

	<table style="width: 100%;">
		<caption>
			Structure
		</caption>
		<tbody>
			<tr>
				<th>
					Name
				</th>
				<th>
					Type
				</th>
				<th>
					Size (bytes)
				</th>
				<th>
					Description
				</th>
			</tr>
			<tr>
				<td>
					position
				</td>
				<td>
					unsigned char
				</td>
				<td>
					1
				</td>
				<td>
					The global position of the item
				</td>
			</tr>
		</tbody>
	</table>

	<p>
		 
	</p>

	<h4>
		<span class="mw-headline" id="CG_Packet_Quickslot_Swap"><b>CG Packet Quickslot Swap</b></span>
	</h4>

	<ul>
		<li>
			<b>Header:</b> 18 (0x12) <b>Type:</b> <i>Constant</i>
		</li>
		<li>
			<b>Sequenced:</b> <i>True</i>
		</li>
		<li>
			<b>Description:</b> A packet used to delete an item from the quickslot
		</li>
	</ul>

	<table style="width: 100%;">
		<caption>
			Structure
		</caption>
		<tbody>
			<tr>
				<th>
					Name
				</th>
				<th>
					Type
				</th>
				<th>
					Size (bytes)
				</th>
				<th>
					Description
				</th>
			</tr>
			<tr>
				<td>
					sourcePosition
				</td>
				<td>
					unsigned char
				</td>
				<td>
					1
				</td>
				<td>
					The global position of the item to swap
				</td>
			</tr>
			<tr>
				<td>
					targetPosition
				</td>
				<td>
					unsigned char
				</td>
				<td>
					1
				</td>
				<td>
					The global position to swap into
				</td>
			</tr>
		</tbody>
	</table>

	<p>
		 
	</p>

	<h4>
		<span class="mw-headline" id="CG_Packet_Whisper"><b>CG Packet Whisper</b></span>
	</h4>

	<ul>
		<li>
			<b>Header:</b> 19 (0x13) <b>Type:</b> <i>Dynamic</i>
		</li>
		<li>
			<b>Sequenced:</b> <i>True</i>
		</li>
		<li>
			<b>Description:</b> A packet used to send a whisper message
		</li>
	</ul>

	<table style="width: 100%;">
		<caption>
			Structure
		</caption>
		<tbody>
			<tr>
				<th>
					Name
				</th>
				<th>
					Type
				</th>
				<th>
					Size (bytes)
				</th>
				<th>
					Description
				</th>
			</tr>
			<tr>
				<td>
					name
				</td>
				<td>
					char
				</td>
				<td>
					25
				</td>
				<td>
					The name of who to send the whisper message to
				</td>
			</tr>
			<tr>
				<td>
					message
				</td>
				<td>
					char
				</td>
				<td>
					255 (up to)
				</td>
				<td>
					The message to whisper
				</td>
			</tr>
		</tbody>
	</table>

	<p>
		 
	</p>

	<h4>
		<span class="mw-headline" id="CG_Packet_Item_Drop_2"><b>CG Packet Item Drop 2</b></span>
	</h4>

	<ul>
		<li>
			<b>Header:</b> 20 (0x14) <b>Type:</b> <i>Constant</i>
		</li>
		<li>
			<b>Sequenced:</b> <i>True</i>
		</li>
		<li>
			<b>Description:</b> A packet used to drop an item amount from an inventory
		</li>
	</ul>

	<table style="width: 100%;">
		<caption>
			Structure
		</caption>
		<tbody>
			<tr>
				<th>
					Name
				</th>
				<th>
					Type
				</th>
				<th>
					Size (bytes)
				</th>
				<th>
					Description
				</th>
			</tr>
			<tr>
				<td>
					windowType
				</td>
				<td>
					unsigned char
				</td>
				<td>
					1
				</td>
				<td>
					The type of window
				</td>
			</tr>
			<tr>
				<td>
					cell
				</td>
				<td>
					unsigned short
				</td>
				<td>
					2
				</td>
				<td>
					The cell of the window
				</td>
			</tr>
			<tr>
				<td>
					money
				</td>
				<td>
					unsigned long
				</td>
				<td>
					8
				</td>
				<td>
					The money/gold currency to drop (if any)
				</td>
			</tr>
			<tr>
				<td>
					amount
				</td>
				<td>
					unsigned char
				</td>
				<td>
					1
				</td>
				<td>
					The amount of the item to drop
				</td>
			</tr>
		</tbody>
	</table>

	<p>
		 
	</p>

	<h4>
		<span class="mw-headline" id="CG_Packet_On_Click"><b>CG Packet On Click</b></span>
	</h4>

	<ul>
		<li>
			<b>Header:</b> 26 (0x1A) <b>Type:</b> <i>Constant</i>
		</li>
		<li>
			<b>Sequenced:</b> <i>True</i>
		</li>
		<li>
			<b>Description:</b> A packet used to click on a entity
		</li>
	</ul>

	<table style="width: 100%;">
		<caption>
			Structure
		</caption>
		<tbody>
			<tr>
				<th>
					Name
				</th>
				<th>
					Type
				</th>
				<th>
					Size (bytes)
				</th>
				<th>
					Description
				</th>
			</tr>
			<tr>
				<td>
					vid
				</td>
				<td>
					unsigned long
				</td>
				<td>
					8
				</td>
				<td>
					The virtual id of the entity
				</td>
			</tr>
		</tbody>
	</table>

	<p>
		 
	</p>

	<h4>
		<span class="mw-headline" id="CG_Packet_Exchange"><b>CG Packet Exchange</b></span>
	</h4>

	<ul>
		<li>
			<b>Header:</b> 27 (0x1B) <b>Type:</b> <i> - </i>
		</li>
		<li>
			<b>Sequenced:</b> <i>True</i>
		</li>
		<li>
			<b>Description:</b> A packet used to make exchange operations with another player
		</li>
	</ul>

	<table style="width: 100%;">
		<caption>
			Structure
		</caption>
		<tbody>
			<tr>
				<th>
					Name
				</th>
				<th>
					Type
				</th>
				<th>
					Size (bytes)
				</th>
				<th>
					Description
				</th>
			</tr>
			<tr>
				<td>
					subHeader
				</td>
				<td>
					unsigned char
				</td>
				<td>
					1
				</td>
				<td>
					The sub header                                         
				</td>
			</tr>
		</tbody>
	</table>

	<p>
		 
	</p>

	<h5>
		<span class="mw-headline" id="Subheader_Exchange_Start"><b>Subheader Exchange Start </b></span>
	</h5>

	<ul>
		<li>
			<b>SubHeader:</b> 0 (0x0) - <b>Type: </b> Constant
		</li>
		<li>
			<b>Description:</b> Starts an exchange with a player
		</li>
	</ul>

	<table style="width: 100%;">
		<caption>
			Structure
		</caption>
		<tbody>
			<tr>
				<th>
					Name
				</th>
				<th>
					Type
				</th>
				<th>
					Size (bytes)
				</th>
				<th>
					Description
				</th>
			</tr>
			<tr>
				<td>
					vid
				</td>
				<td>
					unsigned long
				</td>
				<td>
					8
				</td>
				<td>
					The virtual id of the character                            
				</td>
			</tr>
		</tbody>
	</table>

	<h5>
		 
	</h5>

	<h5>
		<span class="mw-headline" id="Subheader_Exchange_Item_Add"><b>Subheader Exchange Item Add </b></span>
	</h5>

	<ul>
		<li>
			<b>SubHeader:</b> 1 (0x1) - <b>Type: </b> Constant
		</li>
		<li>
			<b>Description:</b> Adds an item to the exchange
		</li>
	</ul>

	<table style="width: 100%;">
		<caption>
			Structure
		</caption>
		<tbody>
			<tr>
				<th>
					Name
				</th>
				<th>
					Type
				</th>
				<th>
					Size (bytes)
				</th>
				<th>
					Description
				</th>
			</tr>
			<tr>
				<td>
					position
				</td>
				<td>
					unsigned char
				</td>
				<td>
					1
				</td>
				<td>
					The position of the item in the exchange
				</td>
			</tr>
			<tr>
				<td>
					windowType
				</td>
				<td>
					unsigned char
				</td>
				<td>
					1
				</td>
				<td>
					The type of window
				</td>
			</tr>
			<tr>
				<td>
					cell
				</td>
				<td>
					unsigned short
				</td>
				<td>
					2
				</td>
				<td>
					The cell of the window
				</td>
			</tr>
		</tbody>
	</table>

	<h5>
		 
	</h5>

	<h5>
		<span class="mw-headline" id="Subheader_Exchange_Item_Delete"><b>Subheader Exchange Item Delete </b></span>
	</h5>

	<ul>
		<li>
			<b>SubHeader:</b> 2 (0x2) - <b>Type: </b> Constant
		</li>
		<li>
			<b>Description:</b> Removes an item from the exchange
		</li>
	</ul>

	<table style="width: 100%;">
		<caption>
			Structure
		</caption>
		<tbody>
			<tr>
				<th>
					Name
				</th>
				<th>
					Type
				</th>
				<th>
					Size (bytes)
				</th>
				<th>
					Description
				</th>
			</tr>
			<tr>
				<td>
					position
				</td>
				<td>
					unsigned long
				</td>
				<td>
					1
				</td>
				<td>
					The position of the item in the exchange
				</td>
			</tr>
		</tbody>
	</table>

	<h5>
		 
	</h5>

	<h5>
		<span class="mw-headline" id="Subheader_Exchange_Elk_Add"><b>Subheader Exchange Elk Add </b></span>
	</h5>

	<ul>
		<li>
			<b>SubHeader:</b> 3 (0x3) - <b>Type: </b> Constant
		</li>
		<li>
			<b>Description:</b> Adds elk/gold/money currency to the exchange
		</li>
	</ul>

	<table style="width: 100%;">
		<caption>
			Structure
		</caption>
		<tbody>
			<tr>
				<th>
					Name
				</th>
				<th>
					Type
				</th>
				<th>
					Size (bytes)
				</th>
				<th>
					Description
				</th>
			</tr>
			<tr>
				<td>
					elk
				</td>
				<td>
					unsigned long
				</td>
				<td>
					1
				</td>
				<td>
					The amount of elk/gold/money to add
				</td>
			</tr>
		</tbody>
	</table>

	<p>
		 
	</p>

	<h5>
		<span class="mw-headline" id="Subheader_Exchange_Accept"><b>Subheader Exchange Accept </b></span>
	</h5>

	<ul>
		<li>
			<b>SubHeader:</b> 4 (0x4) - <b>Type: </b> Constant
		</li>
		<li>
			<b>Description:</b> Accepts the current exchange
		</li>
	</ul>
	empty

	<table style="width: 100%;">
		<caption>
			Structure
		</caption>
		<tbody>
			<tr>
				<th>
					Name
				</th>
				<th>
					Type
				</th>
				<th>
					Size (bytes)
				</th>
				<th>
					Description
				</th>
			</tr>
		</tbody>
	</table>

	<h5>
		 
	</h5>

	<h5>
		<span class="mw-headline" id="Subheader_Exchange_Cancel"><b>Subheader Exchange Cancel </b></span>
	</h5>

	<ul>
		<li>
			<b>SubHeader:</b> 5 (0x5) - <b>Type: </b> Constant
		</li>
		<li>
			<b>Description:</b> Cancels the current exchange
		</li>
	</ul>
	empty

	<table style="width: 100%;">
		<caption>
			Structure
		</caption>
		<tbody>
			<tr>
				<th>
					Name
				</th>
				<th>
					Type
				</th>
				<th>
					Size (bytes)
				</th>
				<th>
					Description
				</th>
			</tr>
		</tbody>
	</table>

	<p>
		 
	</p>

	<h4>
		<span class="mw-headline" id="CG_Packet_Character_Position"><b>CG Packet Character Position</b></span>
	</h4>

	<ul>
		<li>
			<b>Header:</b> 28 (0x1C) <b>Type:</b> <i>Constant</i>
		</li>
		<li>
			<b>Sequenced:</b> <i>True</i>
		</li>
		<li>
			<b>Description:</b> Undefined
		</li>
	</ul>

	<table style="width: 100%;">
		<caption>
			Structure
		</caption>
		<tbody>
			<tr>
				<th>
					Name
				</th>
				<th>
					Type
				</th>
				<th>
					Size (bytes)
				</th>
				<th>
					Description
				</th>
			</tr>
			<tr>
				<td>
					position
				</td>
				<td>
					unsigned char
				</td>
				<td>
					1
				</td>
				<td>
					The position of a character (?)
				</td>
			</tr>
		</tbody>
	</table>

	<p>
		 
	</p>

	<h4>
		<span class="mw-headline" id="CG_Packet_Script_Answer"><b>CG Packet Script Answer</b></span>
	</h4>

	<ul>
		<li>
			<b>Header:</b> 29 (0x1D) <b>Type:</b> <i>Constant</i>
		</li>
		<li>
			<b>Sequenced:</b> <i>True</i>
		</li>
		<li>
			<b>Description:</b> A packet used to answer a script(quest)
		</li>
	</ul>

	<table style="width: 100%;">
		<caption>
			Structure
		</caption>
		<tbody>
			<tr>
				<th>
					Name
				</th>
				<th>
					Type
				</th>
				<th>
					Size (bytes)
				</th>
				<th>
					Description
				</th>
			</tr>
			<tr>
				<td>
					answer
				</td>
				<td>
					unsigned char
				</td>
				<td>
					1
				</td>
				<td>
					The index of the answer
				</td>
			</tr>
		</tbody>
	</table>

	<p>
		 
	</p>

	<h4>
		<span class="mw-headline" id="CG_Packet_Quest_Input_String"><b>CG Packet Quest Input String</b></span>
	</h4>

	<ul>
		<li>
			<b>Header:</b> 30 (0x1E) <b>Type:</b> <i>Constant</i>
		</li>
		<li>
			<b>Sequenced:</b> <i>True</i>
		</li>
		<li>
			<b>Description:</b> A packet used to send a quest input string
		</li>
	</ul>

	<table style="width: 100%;">
		<caption>
			Structure
		</caption>
		<tbody>
			<tr>
				<th>
					Name
				</th>
				<th>
					Type
				</th>
				<th>
					Size (bytes)
				</th>
				<th>
					Description
				</th>
			</tr>
			<tr>
				<td>
					string
				</td>
				<td>
					char
				</td>
				<td>
					64
				</td>
				<td>
					The input string
				</td>
			</tr>
		</tbody>
	</table>

	<p>
		 
	</p>

	<h4>
		<span class="mw-headline" id="CG_Packet_Quest_Confirm"><b>CG Packet Quest Confirm</b></span>
	</h4>

	<ul>
		<li>
			<b>Header:</b> 31 (0x1F) <b>Type:</b> <i>Constant</i>
		</li>
		<li>
			<b>Sequenced:</b> <i>True</i>
		</li>
		<li>
			<b>Description:</b> A packet used to confirm/answer a quest
		</li>
	</ul>

	<table style="width: 100%;">
		<caption>
			Structure
		</caption>
		<tbody>
			<tr>
				<th>
					Name
				</th>
				<th>
					Type
				</th>
				<th>
					Size (bytes)
				</th>
				<th>
					Description
				</th>
			</tr>
			<tr>
				<td>
					answer
				</td>
				<td>
					unsigned char
				</td>
				<td>
					1
				</td>
				<td>
					The index of the answer
				</td>
			</tr>
			<tr>
				<td>
					request
				</td>
				<td>
					unsigned long
				</td>
				<td>
					8
				</td>
				<td>
					The id of the request
				</td>
			</tr>
		</tbody>
	</table>

	<p>
		 
	</p>

	<h4>
		<span class="mw-headline" id="CG_Packet_Shop"><b>CG Packet Shop</b></span>
	</h4>

	<ul>
		<li>
			<b>Header:</b> 50 (0x32) <b>Type:</b> <i> - </i>
		</li>
		<li>
			<b>Sequenced:</b> <i>True</i>
		</li>
		<li>
			<b>Description:</b> A packet used to make interaction with the Shop system
		</li>
	</ul>

	<table style="width: 100%;">
		<caption>
			Structure
		</caption>
		<tbody>
			<tr>
				<th>
					Name
				</th>
				<th>
					Type
				</th>
				<th>
					Size (bytes)
				</th>
				<th>
					Description
				</th>
			</tr>
			<tr>
				<td>
					subHeader
				</td>
				<td>
					unsigned char
				</td>
				<td>
					1
				</td>
				<td>
					The sub header                                         
				</td>
			</tr>
		</tbody>
	</table>

	<p>
		 
	</p>

	<h5>
		<span class="mw-headline" id="Subheader_Shop_End"><b>Subheader Shop End </b></span>
	</h5>

	<ul>
		<li>
			<b>SubHeader:</b> 0 (0x0) - <b>Type: </b> Constant
		</li>
		<li>
			<b>Description:</b> Closes the active shop
		</li>
	</ul>

	<table style="width: 100%;">
		<caption>
			Structure
		</caption>
		<tbody>
			<tr>
				<th>
					Name
				</th>
				<th>
					Type
				</th>
				<th>
					Size (bytes)
				</th>
				<th>
					Description
				</th>
			</tr>
			<tr>
				<td>
					empty                           
				</td>
			</tr>
		</tbody>
	</table>

	<h5>
		 
	</h5>

	<h5>
		<span class="mw-headline" id="Subheader_Shop_Buy"><b>Subheader Shop Buy </b></span>
	</h5>

	<ul>
		<li>
			<b>SubHeader:</b> 1 (0x1) - <b>Type: </b> Constant
		</li>
		<li>
			<b>Description:</b> Buys an item from the shop
		</li>
	</ul>

	<table style="width: 100%;">
		<caption>
			Structure
		</caption>
		<tbody>
			<tr>
				<th>
					Name
				</th>
				<th>
					Type
				</th>
				<th>
					Size (bytes)
				</th>
				<th>
					Description
				</th>
			</tr>
			<tr>
				<td>
					amount
				</td>
				<td>
					unsigned char
				</td>
				<td>
					1
				</td>
				<td>
					The amount to buy (default 1)
				</td>
			</tr>
			<tr>
				<td>
					position
				</td>
				<td>
					unsigned char
				</td>
				<td>
					1
				</td>
				<td>
					The position of the item
				</td>
			</tr>
		</tbody>
	</table>

	<h5>
		 
	</h5>

	<h5>
		<span class="mw-headline" id="Subheader_Shop_Sell"><b>Subheader Shop Sell </b></span>
	</h5>

	<ul>
		<li>
			<b>SubHeader:</b> 2 (0x2) - <b>Type: </b> Constant
		</li>
		<li>
			<b>Description:</b> Sells an item to the shop
		</li>
	</ul>

	<table style="width: 100%;">
		<caption>
			Structure
		</caption>
		<tbody>
			<tr>
				<th>
					Name
				</th>
				<th>
					Type
				</th>
				<th>
					Size (bytes)
				</th>
				<th>
					Description
				</th>
			</tr>
			<tr>
				<td>
					position
				</td>
				<td>
					unsigned long
				</td>
				<td>
					1
				</td>
				<td>
					The position of the item in the inventory
				</td>
			</tr>
		</tbody>
	</table>

	<h5>
		 
	</h5>

	<h5>
		<span class="mw-headline" id="Subheader_Shop_Sell_2"><b>Subheader Shop Sell 2 </b></span>
	</h5>

	<ul>
		<li>
			<b>SubHeader:</b> 3 (0x3) - <b>Type: </b> Constant
		</li>
		<li>
			<b>Description:</b> Sells an item to the shop
		</li>
	</ul>

	<table style="width: 100%;">
		<caption>
			Structure
		</caption>
		<tbody>
			<tr>
				<th>
					Name
				</th>
				<th>
					Type
				</th>
				<th>
					Size (bytes)
				</th>
				<th>
					Description
				</th>
			</tr>
			<tr>
				<td>
					position
				</td>
				<td>
					unsigned char
				</td>
				<td>
					1
				</td>
				<td>
					The position of the item
				</td>
			</tr>
			<tr>
				<td>
					amount
				</td>
				<td>
					unsigned char
				</td>
				<td>
					1
				</td>
				<td>
					The amount to buy
				</td>
			</tr>
		</tbody>
	</table>

	<h5>
		 
	</h5>

	<h5>
		<span class="mw-headline" id="Subheader_Exchange_Elk_Add_2"><b>Subheader Exchange Elk Add </b></span>
	</h5>

	<ul>
		<li>
			<b>SubHeader:</b> 3 (0x3) - <b>Type: </b> Constant
		</li>
		<li>
			<b>Description:</b> Adds elk/gold/money currency to the exchange
		</li>
	</ul>

	<table style="width: 100%;">
		<caption>
			Structure
		</caption>
		<tbody>
			<tr>
				<th>
					Name
				</th>
				<th>
					Type
				</th>
				<th>
					Size (bytes)
				</th>
				<th>
					Description
				</th>
			</tr>
			<tr>
				<td>
					elk
				</td>
				<td>
					unsigned long
				</td>
				<td>
					1
				</td>
				<td>
					The amount of elk/gold/money to add
				</td>
			</tr>
		</tbody>
	</table>

	<p>
		 
	</p>

	<h5>
		<span class="mw-headline" id="Subheader_Exchange_Accept_2"><b>Subheader Exchange Accept </b></span>
	</h5>

	<ul>
		<li>
			<b>SubHeader:</b> 4 (0x4) - <b>Type: </b> Constant
		</li>
		<li>
			<b>Description:</b> Accepts the current exchange
		</li>
	</ul>
	empty

	<table style="width: 100%;">
		<caption>
			Structure
		</caption>
		<tbody>
			<tr>
				<th>
					Name
				</th>
				<th>
					Type
				</th>
				<th>
					Size (bytes)
				</th>
				<th>
					Description
				</th>
			</tr>
		</tbody>
	</table>

	<h5>
		 
	</h5>

	<h5>
		<span class="mw-headline" id="Subheader_Exchange_Cancel_2"><b>Subheader Exchange Cancel </b></span>
	</h5>

	<ul>
		<li>
			<b>SubHeader:</b> 5 (0x5) - <b>Type: </b> Constant
		</li>
		<li>
			<b>Description:</b> Cancels the current exchange
		</li>
	</ul>
	empty

	<table style="width: 100%;">
		<caption>
			Structure
		</caption>
		<tbody>
			<tr>
				<th>
					Name
				</th>
				<th>
					Type
				</th>
				<th>
					Size (bytes)
				</th>
				<th>
					Description
				</th>
			</tr>
		</tbody>
	</table>

	<p>
		 
	</p>

	<h4>
		<span class="mw-headline" id="CG_Packet_Fly_Target"><b>CG Packet Fly Target</b></span>
	</h4>

	<ul>
		<li>
			<b>Header:</b> 51 (0x33) <b>Type:</b> <i>Constant</i>
		</li>
		<li>
			<b>Sequenced:</b> <i>True</i>
		</li>
		<li>
			<b>Description:</b> A packet used to send a fly target into a position
		</li>
	</ul>

	<table style="width: 100%;">
		<caption>
			Structure
		</caption>
		<tbody>
			<tr>
				<th>
					Name
				</th>
				<th>
					Type
				</th>
				<th>
					Size (bytes)
				</th>
				<th>
					Description
				</th>
			</tr>
			<tr>
				<td>
					target
				</td>
				<td>
					unsigned long
				</td>
				<td>
					8
				</td>
				<td>
					The target virtual id
				</td>
			</tr>
			<tr>
				<td>
					x
				</td>
				<td>
					long
				</td>
				<td>
					8
				</td>
				<td>
					The X global position of the target
				</td>
			</tr>
			<tr>
				<td>
					y
				</td>
				<td>
					long
				</td>
				<td>
					8
				</td>
				<td>
					The Y global position of the target
				</td>
			</tr>
		</tbody>
	</table>

	<p>
		 
	</p>

	<h4>
		<span class="mw-headline" id="CG_Packet_Use_Skill"><b>CG Packet Use Skill</b></span>
	</h4>

	<ul>
		<li>
			<b>Header:</b> 52 (0x34) <b>Type:</b> <i>Constant</i>
		</li>
		<li>
			<b>Sequenced:</b> <i>True</i>
		</li>
		<li>
			<b>Description:</b> A packet used to use a skill onto a target in the game world
		</li>
	</ul>

	<table style="width: 100%;">
		<caption>
			Structure
		</caption>
		<tbody>
			<tr>
				<th>
					Name
				</th>
				<th>
					Type
				</th>
				<th>
					Size (bytes)
				</th>
				<th>
					Description
				</th>
			</tr>
			<tr>
				<td>
					vnum
				</td>
				<td>
					unsigned long
				</td>
				<td>
					8
				</td>
				<td>
					The virtual number index of the skill
				</td>
			</tr>
			<tr>
				<td>
					target
				</td>
				<td>
					unsigned long
				</td>
				<td>
					8
				</td>
				<td>
					The target virtual id
				</td>
			</tr>
		</tbody>
	</table>

	<p>
		 
	</p>

	<h4>
		<span class="mw-headline" id="CG_Packet_Add_Fly_Target"><b>CG Packet Add Fly Target</b></span>
	</h4>

	<ul>
		<li>
			<b>Header:</b> 53 (0x35) <b>Type:</b> <i>Constant</i>
		</li>
		<li>
			<b>Sequenced:</b> <i>True</i>
		</li>
		<li>
			<b>Description:</b> A packet used to add a fly target into a position
		</li>
	</ul>

	<table style="width: 100%;">
		<caption>
			Structure
		</caption>
		<tbody>
			<tr>
				<th>
					Name
				</th>
				<th>
					Type
				</th>
				<th>
					Size (bytes)
				</th>
				<th>
					Description
				</th>
			</tr>
			<tr>
				<td>
					target
				</td>
				<td>
					unsigned long
				</td>
				<td>
					8
				</td>
				<td>
					The target virtual id
				</td>
			</tr>
			<tr>
				<td>
					x
				</td>
				<td>
					long
				</td>
				<td>
					8
				</td>
				<td>
					The X global position of the target
				</td>
			</tr>
			<tr>
				<td>
					y
				</td>
				<td>
					long
				</td>
				<td>
					8
				</td>
				<td>
					The Y global position of the target
				</td>
			</tr>
		</tbody>
	</table>

	<p>
		 
	</p>

	<h4>
		<span class="mw-headline" id="CG_Packet_Shoot"><b>CG Packet Shoot</b></span>
	</h4>

	<ul>
		<li>
			<b>Header:</b> 53 (0x35) <b>Type:</b> <i>Constant</i>
		</li>
		<li>
			<b>Sequenced:</b> <i>True</i>
		</li>
		<li>
			<b>Description:</b> A packet used to shoot a target with a skill
		</li>
	</ul>

	<table style="width: 100%;">
		<caption>
			Structure
		</caption>
		<tbody>
			<tr>
				<th>
					Name
				</th>
				<th>
					Type
				</th>
				<th>
					Size (bytes)
				</th>
				<th>
					Description
				</th>
			</tr>
			<tr>
				<td>
					type
				</td>
				<td>
					unsigned char
				</td>
				<td>
					1
				</td>
				<td>
					The type/vnum of the skill
				</td>
			</tr>
		</tbody>
	</table>

	<p>
		 
	</p>

	<h4>
		<span class="mw-headline" id="CG_Packet_My_Shop"><b>CG Packet My Shop</b></span>
	</h4>

	<ul>
		<li>
			<b>Header:</b> 55 (0x37) <b>Type:</b> <i>Constant</i>
		</li>
		<li>
			<b>Sequenced:</b> <i>True</i>
		</li>
		<li>
			<b>Description:</b> A packet used to create a private shop
		</li>
	</ul>

	<table style="width: 100%;">
		<caption>
			Structure
		</caption>
		<tbody>
			<tr>
				<th>
					Name
				</th>
				<th>
					Type
				</th>
				<th>
					Size (bytes)
				</th>
				<th>
					Description
				</th>
			</tr>
			<tr>
				<td>
					name
				</td>
				<td>
					unsigned char
				</td>
				<td>
					33
				</td>
				<td>
					The type/vnum of the skill
				</td>
			</tr>
			<tr>
				<td>
					count
				</td>
				<td>
					unsigned char
				</td>
				<td>
					1
				</td>
				<td>
					The amount of items to sell
				</td>
			</tr>
			<tr>
				<td>
					vnum (repeatable, ordered)
				</td>
				<td>
					unsigned long
				</td>
				<td>
					8
				</td>
				<td>
					The vnum of the item
				</td>
			</tr>
			<tr>
				<td>
					amount (repeatable, ordered)
				</td>
				<td>
					unsigned char
				</td>
				<td>
					1
				</td>
				<td>
					The amount to buy
				</td>
			</tr>
			<tr>
				<td>
					windowType (repeatable, ordered)
				</td>
				<td>
					unsigned char
				</td>
				<td>
					1
				</td>
				<td>
					The type of the window
				</td>
			</tr>
			<tr>
				<td>
					windowCell (repeatable, ordered)
				</td>
				<td>
					unsigned short
				</td>
				<td>
					2
				</td>
				<td>
					The cell of the window
				</td>
			</tr>
			<tr>
				<td>
					price (repeatable, ordered)
				</td>
				<td>
					unsigned long
				</td>
				<td>
					8
				</td>
				<td>
					The sell price of the item
				</td>
			</tr>
			<tr>
				<td>
					position (repeatable, ordered)
				</td>
				<td>
					unsigned char
				</td>
				<td>
					1
				</td>
				<td>
					The position of the item
				</td>
			</tr>
		</tbody>
	</table>

	<p>
		 
	</p>

	<h4>
		<span class="mw-headline" id="CG_Packet_Item_Use_Into_Item"><b>CG Packet Item Use Into Item</b></span>
	</h4>

	<ul>
		<li>
			<b>Header:</b> 60 (0x3C) <b>Type:</b> <i>Constant</i>
		</li>
		<li>
			<b>Sequenced:</b> <i>True</i>
		</li>
		<li>
			<b>Description:</b> A packet used to use an item into another item
		</li>
	</ul>

	<table style="width: 100%;">
		<caption>
			Structure
		</caption>
		<tbody>
			<tr>
				<th>
					Name
				</th>
				<th>
					Type
				</th>
				<th>
					Size (bytes)
				</th>
				<th>
					Description
				</th>
			</tr>
			<tr>
				<td>
					sourceWindowType
				</td>
				<td>
					unsigned char
				</td>
				<td>
					1
				</td>
				<td>
					The type of window
				</td>
			</tr>
			<tr>
				<td>
					sourceCell
				</td>
				<td>
					unsigned short
				</td>
				<td>
					2
				</td>
				<td>
					The cell of the window
				</td>
			</tr>
			<tr>
				<td>
					targetWindowType
				</td>
				<td>
					unsigned char
				</td>
				<td>
					1
				</td>
				<td>
					The type of window
				</td>
			</tr>
			<tr>
				<td>
					targetCell
				</td>
				<td>
					unsigned short
				</td>
				<td>
					2
				</td>
				<td>
					The cell of the window
				</td>
			</tr>
		</tbody>
	</table>

	<p>
		 
	</p>

	<h4>
		<span class="mw-headline" id="CG_Packet_Target"><b>CG Packet Target</b></span>
	</h4>

	<ul>
		<li>
			<b>Header:</b> 61 (0x3D) <b>Type:</b> <i>Constant</i>
		</li>
		<li>
			<b>Sequenced:</b> <i>True</i>
		</li>
		<li>
			<b>Description:</b> A packet used to target an entity
		</li>
	</ul>

	<table style="width: 100%;">
		<caption>
			Structure
		</caption>
		<tbody>
			<tr>
				<th>
					Name
				</th>
				<th>
					Type
				</th>
				<th>
					Size (bytes)
				</th>
				<th>
					Description
				</th>
			</tr>
			<tr>
				<td>
					vid
				</td>
				<td>
					unsigned long
				</td>
				<td>
					8
				</td>
				<td>
					The virtual id of the entity
				</td>
			</tr>
		</tbody>
	</table>

	<p>
		 
	</p>

	<h4>
		<span class="mw-headline" id="CG_Packet_Script_Button"><b>CG Packet Script Button </b></span>
	</h4>

	<ul>
		<li>
			<b>Header:</b> 66 (0x42) <b>Type:</b> <i>Constant</i>
		</li>
		<li>
			<b>Sequenced:</b> <i>True</i>
		</li>
		<li>
			<b>Description:</b> A packet used to click a script/quest button
		</li>
	</ul>

	<table style="width: 100%;">
		<caption>
			Structure
		</caption>
		<tbody>
			<tr>
				<th>
					Name
				</th>
				<th>
					Type
				</th>
				<th>
					Size (bytes)
				</th>
				<th>
					Description
				</th>
			</tr>
			<tr>
				<td>
					index
				</td>
				<td>
					unsigned int
				</td>
				<td>
					4
				</td>
				<td>
					The index of the button
				</td>
			</tr>
		</tbody>
	</table>

	<p>
		 
	</p>

	<h4>
		<span class="mw-headline" id="CG_Packet_Messenger"><b>CG Packet Messenger</b></span>
	</h4>

	<ul>
		<li>
			<b>Header:</b> 67 (0x43) <b>Type:</b> <i> - </i>
		</li>
		<li>
			<b>Sequenced:</b> <i>True</i>
		</li>
		<li>
			<b>Description:</b> A packet used to perform actions with the messenger system
		</li>
	</ul>

	<table style="width: 100%;">
		<caption>
			Structure
		</caption>
		<tbody>
			<tr>
				<th>
					Name
				</th>
				<th>
					Type
				</th>
				<th>
					Size (bytes)
				</th>
				<th>
					Description
				</th>
			</tr>
			<tr>
				<td>
					subHeader
				</td>
				<td>
					unsigned char
				</td>
				<td>
					1
				</td>
				<td>
					The sub header                                         
				</td>
			</tr>
		</tbody>
	</table>

	<p>
		 
	</p>

	<h5>
		<span class="mw-headline" id="Subheader_Messenger_Add_By_Vid"><b>Subheader Messenger Add By Vid </b></span>
	</h5>

	<ul>
		<li>
			<b>SubHeader:</b> 0 (0x0) - <b>Type: </b> Constant
		</li>
		<li>
			<b>Description:</b> Adds a player ot the messenger by virtual id
		</li>
	</ul>

	<table style="width: 100%;">
		<caption>
			Structure
		</caption>
		<tbody>
			<tr>
				<th>
					Name
				</th>
				<th>
					Type
				</th>
				<th>
					Size (bytes)
				</th>
				<th>
					Description
				</th>
			</tr>
			<tr>
				<td>
					vid
				</td>
				<td>
					unsigned long
				</td>
				<td>
					8
				</td>
				<td>
					The virtual id of the character                            
				</td>
			</tr>
		</tbody>
	</table>

	<h5>
		 
	</h5>

	<h5>
		<span class="mw-headline" id="Subheader_Messenger_Add_By_Name"><b>Subheader Messenger Add By Name</b></span>
	</h5>

	<ul>
		<li>
			<b>SubHeader:</b> 1 (0x1) - <b>Type: </b> Constant
		</li>
		<li>
			<b>Description:</b> Adds a player to the messenger by name
		</li>
	</ul>

	<table style="width: 100%;">
		<caption>
			Structure
		</caption>
		<tbody>
			<tr>
				<th>
					Name
				</th>
				<th>
					Type
				</th>
				<th>
					Size (bytes)
				</th>
				<th>
					Description
				</th>
			</tr>
			<tr>
				<td>
					name
				</td>
				<td>
					char
				</td>
				<td>
					24
				</td>
				<td>
					The name of the player
				</td>
			</tr>
		</tbody>
	</table>

	<h5>
		 
	</h5>

	<h5>
		<span class="mw-headline" id="Subheader_Messenger_Remove"><b>Subheader Messenger Remove</b></span>
	</h5>

	<ul>
		<li>
			<b>SubHeader:</b> 2 (0x2) - <b>Type: </b> Constant
		</li>
		<li>
			<b>Description:</b> Removes a player in the messenger by name
		</li>
	</ul>

	<table style="width: 100%;">
		<caption>
			Structure
		</caption>
		<tbody>
			<tr>
				<th>
					Name
				</th>
				<th>
					Type
				</th>
				<th>
					Size (bytes)
				</th>
				<th>
					Description
				</th>
			</tr>
			<tr>
				<td>
					name
				</td>
				<td>
					char
				</td>
				<td>
					24
				</td>
				<td>
					The name of the player
				</td>
			</tr>
		</tbody>
	</table>

	<p>
		 
	</p>

	<h4>
		<span class="mw-headline" id="CG_Packet_Mall_Checkout"><b>CG Packet Mall Checkout </b></span>
	</h4>

	<ul>
		<li>
			<b>Header:</b> 69 (0x45) <b>Type:</b> <i>Constant</i>
		</li>
		<li>
			<b>Sequenced:</b> <i>True</i>
		</li>
		<li>
			<b>Description:</b> A packet used to move an item from the mall into an inventory
		</li>
	</ul>

	<table style="width: 100%;">
		<caption>
			Structure
		</caption>
		<tbody>
			<tr>
				<th>
					Name
				</th>
				<th>
					Type
				</th>
				<th>
					Size (bytes)
				</th>
				<th>
					Description
				</th>
			</tr>
			<tr>
				<td>
					mallPosition
				</td>
				<td>
					unsigned char
				</td>
				<td>
					1
				</td>
				<td>
					The slot index of the mall position
				</td>
			</tr>
			<tr>
				<td>
					targetWindowType
				</td>
				<td>
					unsigned char
				</td>
				<td>
					1
				</td>
				<td>
					The type of window
				</td>
			</tr>
			<tr>
				<td>
					targetCell
				</td>
				<td>
					unsigned short
				</td>
				<td>
					2
				</td>
				<td>
					The cell of the window
				</td>
			</tr>
		</tbody>
	</table>

	<p>
		 
	</p>

	<h4>
		<span class="mw-headline" id="CG_Packet_Safebox_Checkin"><b>CG Packet Safebox Checkin </b></span>
	</h4>

	<ul>
		<li>
			<b>Header:</b> 70 (0x46) <b>Type:</b> <i>Constant</i>
		</li>
		<li>
			<b>Sequenced:</b> <i>True</i>
		</li>
		<li>
			<b>Description:</b> A packet used to move an item from the safebox into an inventory
		</li>
	</ul>

	<table style="width: 100%;">
		<caption>
			Structure
		</caption>
		<tbody>
			<tr>
				<th>
					Name
				</th>
				<th>
					Type
				</th>
				<th>
					Size (bytes)
				</th>
				<th>
					Description
				</th>
			</tr>
			<tr>
				<td>
					targetWindowType
				</td>
				<td>
					unsigned char
				</td>
				<td>
					1
				</td>
				<td>
					The type of window
				</td>
			</tr>
			<tr>
				<td>
					targetCell
				</td>
				<td>
					unsigned short
				</td>
				<td>
					2
				</td>
				<td>
					The cell of the window
				</td>
			</tr>
			<tr>
				<td>
					safeboxPosition
				</td>
				<td>
					unsigned char
				</td>
				<td>
					1
				</td>
				<td>
					The slot index of the mall position
				</td>
			</tr>
		</tbody>
	</table>

	<p>
		 
	</p>

	<h4>
		<span class="mw-headline" id="CG_Packet_Safebox_Checkout"><b>CG Packet Safebox Checkout </b></span>
	</h4>

	<ul>
		<li>
			<b>Header:</b> 71 (0x47) <b>Type:</b> <i>Constant</i>
		</li>
		<li>
			<b>Sequenced:</b> <i>True</i>
		</li>
		<li>
			<b>Description:</b> A packet used to move an item from the safebox into an inventory
		</li>
	</ul>

	<table style="width: 100%;">
		<caption>
			Structure
		</caption>
		<tbody>
			<tr>
				<th>
					Name
				</th>
				<th>
					Type
				</th>
				<th>
					Size (bytes)
				</th>
				<th>
					Description
				</th>
			</tr>
			<tr>
				<td>
					targetWindowType
				</td>
				<td>
					unsigned char
				</td>
				<td>
					1
				</td>
				<td>
					The type of window
				</td>
			</tr>
			<tr>
				<td>
					targetCell
				</td>
				<td>
					unsigned short
				</td>
				<td>
					2
				</td>
				<td>
					The cell of the window
				</td>
			</tr>
			<tr>
				<td>
					safeboxPosition
				</td>
				<td>
					unsigned char
				</td>
				<td>
					1
				</td>
				<td>
					The slot index of the mall position
				</td>
			</tr>
		</tbody>
	</table>

	<p>
		 
	</p>

	<h4>
		<span class="mw-headline" id="CG_Packet_Party_Invite"><b>CG Packet Party Invite</b></span>
	</h4>

	<ul>
		<li>
			<b>Header:</b> 72 (0x4<img src="https://cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/72x72/3f.png" class="ipsEmoji" alt="?"> <b>Type:</b> <i>Constant</i>
		</li>
		<li>
			<b>Sequenced:</b> <i>True</i>
		</li>
		<li>
			<b>Description:</b> A packet used to send a party invite to a player
		</li>
	</ul>

	<table style="width: 100%;">
		<caption>
			Structure
		</caption>
		<tbody>
			<tr>
				<th>
					Name
				</th>
				<th>
					Type
				</th>
				<th>
					Size (bytes)
				</th>
				<th>
					Description
				</th>
			</tr>
			<tr>
				<td>
					vid
				</td>
				<td>
					unsigned long
				</td>
				<td>
					8
				</td>
				<td>
					The virtual id of the player
				</td>
			</tr>
		</tbody>
	</table>

	<p>
		 
	</p>

	<h4>
		<span class="mw-headline" id="CG_Packet_Party_Invite_Answer"><b>CG Packet Party Invite Answer</b></span>
	</h4>

	<ul>
		<li>
			<b>Header:</b> 73 (0x49) <b>Type:</b> <i>Constant</i>
		</li>
		<li>
			<b>Sequenced:</b> <i>True</i>
		</li>
		<li>
			<b>Description:</b> A packet used to send a response to a given party invite
		</li>
	</ul>

	<table style="width: 100%;">
		<caption>
			Structure
		</caption>
		<tbody>
			<tr>
				<th>
					Name
				</th>
				<th>
					Type
				</th>
				<th>
					Size (bytes)
				</th>
				<th>
					Description
				</th>
			</tr>
			<tr>
				<td>
					inviterVid
				</td>
				<td>
					unsigned long
				</td>
				<td>
					8
				</td>
				<td>
					The virtual id of the player
				</td>
			</tr>
			<tr>
				<td>
					response
				</td>
				<td>
					unsigned char
				</td>
				<td>
					1
				</td>
				<td>
					The response to the invite
				</td>
			</tr>
		</tbody>
	</table>

	<p>
		 
	</p>

	<h4>
		<span class="mw-headline" id="CG_Packet_Party_Set_State"><b>CG Packet Party Set State</b></span>
	</h4>

	<ul>
		<li>
			<b>Header:</b> 75 (0x4B) <b>Type:</b> <i>Constant</i>
		</li>
		<li>
			<b>Sequenced:</b> <i>True</i>
		</li>
		<li>
			<b>Description:</b> A packet used to set the state of a party member
		</li>
	</ul>

	<table style="width: 100%;">
		<caption>
			Structure
		</caption>
		<tbody>
			<tr>
				<th>
					Name
				</th>
				<th>
					Type
				</th>
				<th>
					Size (bytes)
				</th>
				<th>
					Description
				</th>
			</tr>
			<tr>
				<td>
					memberVid
				</td>
				<td>
					unsigned long
				</td>
				<td>
					8
				</td>
				<td>
					The virtual id of the party member
				</td>
			</tr>
			<tr>
				<td>
					state
				</td>
				<td>
					unsigned char
				</td>
				<td>
					1
				</td>
				<td>
					The state of the party member
				</td>
			</tr>
			<tr>
				<td>
					flag
				</td>
				<td>
					unsigned char
				</td>
				<td>
					1
				</td>
				<td>
					The flag of the state
				</td>
			</tr>
		</tbody>
	</table>

	<p>
		 
	</p>

	<h4>
		<span class="mw-headline" id="CG_Packet_Party_Use_Skill"><b>CG Packet Party Use Skill</b></span>
	</h4>

	<ul>
		<li>
			<b>Header:</b> 76 (0x4C) <b>Type:</b> <i>Constant</i>
		</li>
		<li>
			<b>Sequenced:</b> <i>True</i>
		</li>
		<li>
			<b>Description:</b> A packet used to use a party skill
		</li>
	</ul>

	<table style="width: 100%;">
		<caption>
			Structure
		</caption>
		<tbody>
			<tr>
				<th>
					Name
				</th>
				<th>
					Type
				</th>
				<th>
					Size (bytes)
				</th>
				<th>
					Description
				</th>
			</tr>
			<tr>
				<td>
					skill
				</td>
				<td>
					unsigned char
				</td>
				<td>
					1
				</td>
				<td>
					The party skill index
				</td>
			</tr>
			<tr>
				<td>
					targetVid
				</td>
				<td>
					unsigned char
				</td>
				<td>
					1
				</td>
				<td>
					The virtual id of the target
				</td>
			</tr>
		</tbody>
	</table>

	<p>
		 
	</p>

	<h4>
		<span class="mw-headline" id="CG_Packet_Safebox_Item_Move"><b>CG Packet Safebox Item Move</b></span>
	</h4>

	<ul>
		<li>
			<b>Header:</b> 77 (0x4D) <b>Type:</b> <i>Constant</i>
		</li>
		<li>
			<b>Sequenced:</b> <i>True</i>
		</li>
		<li>
			<b>Description:</b> A packet used to use move an item from the safebox
		</li>
	</ul>

	<table style="width: 100%;">
		<caption>
			Structure
		</caption>
		<tbody>
			<tr>
				<th>
					Name
				</th>
				<th>
					Type
				</th>
				<th>
					Size (bytes)
				</th>
				<th>
					Description
				</th>
			</tr>
			<tr>
				<td>
					sourceWindowType
				</td>
				<td>
					unsigned char
				</td>
				<td>
					1
				</td>
				<td>
					The type of window
				</td>
			</tr>
			<tr>
				<td>
					sourceCell
				</td>
				<td>
					unsigned short
				</td>
				<td>
					2
				</td>
				<td>
					The cell of the window
				</td>
			</tr>
			<tr>
				<td>
					amount
				</td>
				<td>
					unsigned char
				</td>
				<td>
					1
				</td>
				<td>
					The amount to move
				</td>
			</tr>
			<tr>
				<td>
					targetWindowType
				</td>
				<td>
					unsigned char
				</td>
				<td>
					1
				</td>
				<td>
					The type of window
				</td>
			</tr>
			<tr>
				<td>
					targetCell
				</td>
				<td>
					unsigned short
				</td>
				<td>
					2
				</td>
				<td>
					The cell of the window
				</td>
			</tr>
		</tbody>
	</table>

	<p>
		 
	</p>

	<h4>
		<span class="mw-headline" id="CG_Packet_Party_Parameter"><b>CG Packet Party Parameter</b></span>
	</h4>

	<ul>
		<li>
			<b>Header:</b> 78 (0x4E) <b>Type:</b> <i>Constant</i>
		</li>
		<li>
			<b>Sequenced:</b> <i>True</i>
		</li>
		<li>
			<b>Description:</b> A packet used to change the party parameter
		</li>
	</ul>

	<table style="width: 100%;">
		<caption>
			Structure
		</caption>
		<tbody>
			<tr>
				<th>
					Name
				</th>
				<th>
					Type
				</th>
				<th>
					Size (bytes)
				</th>
				<th>
					Description
				</th>
			</tr>
			<tr>
				<td>
					parameter
				</td>
				<td>
					unsigned char
				</td>
				<td>
					1
				</td>
				<td>
					The party distribution mode/parameter
				</td>
			</tr>
		</tbody>
	</table>

	<p>
		 
	</p>

	<h4>
		<span class="mw-headline" id="CG_Packet_Guild"><b>CG Packet Guild</b></span>
	</h4>

	<ul>
		<li>
			<b>Header:</b> 79 (0x4F) <b>Type:</b> <i> - </i>
		</li>
		<li>
			<b>Sequenced:</b> <i>True</i>
		</li>
		<li>
			<b>Description:</b> A packet used to interact with the guild system
		</li>
	</ul>

	<table style="width: 100%;">
		<caption>
			Structure
		</caption>
		<tbody>
			<tr>
				<th>
					Name
				</th>
				<th>
					Type
				</th>
				<th>
					Size (bytes)
				</th>
				<th>
					Description
				</th>
			</tr>
			<tr>
				<td>
					subHeader
				</td>
				<td>
					unsigned char
				</td>
				<td>
					1
				</td>
				<td>
					The sub header                                         
				</td>
			</tr>
		</tbody>
	</table>

	<p>
		 
	</p>

	<h5>
		<span class="mw-headline" id="Subheader_Guild_Add_Member"><b>Subheader Guild Add Member </b></span>
	</h5>

	<ul>
		<li>
			<b>SubHeader:</b> 0 (0x0) - <b>Type: </b> Constant
		</li>
		<li>
			<b>Description:</b> Adds a member to the Guild by virtual id
		</li>
	</ul>

	<table style="width: 100%;">
		<caption>
			Structure
		</caption>
		<tbody>
			<tr>
				<th>
					Name
				</th>
				<th>
					Type
				</th>
				<th>
					Size (bytes)
				</th>
				<th>
					Description
				</th>
			</tr>
			<tr>
				<td>
					vid
				</td>
				<td>
					unsigned long
				</td>
				<td>
					8
				</td>
				<td>
					The virtual id of the character                            
				</td>
			</tr>
		</tbody>
	</table>

	<h5>
		 
	</h5>

	<h5>
		<span class="mw-headline" id="Subheader_Guild_Remove"><b>Subheader Guild Remove </b></span>
	</h5>

	<ul>
		<li>
			<b>SubHeader:</b> 1 (0x1) - <b>Type: </b> Constant
		</li>
		<li>
			<b>Description:</b> Removes a member from the Guild by virtual id
		</li>
	</ul>

	<table style="width: 100%;">
		<caption>
			Structure
		</caption>
		<tbody>
			<tr>
				<th>
					Name
				</th>
				<th>
					Type
				</th>
				<th>
					Size (bytes)
				</th>
				<th>
					Description
				</th>
			</tr>
			<tr>
				<td>
					vid
				</td>
				<td>
					unsigned long
				</td>
				<td>
					8
				</td>
				<td>
					The virtual id of the character                            
				</td>
			</tr>
		</tbody>
	</table>

	<h5>
		 
	</h5>

	<h5>
		<span class="mw-headline" id="Subheader_Guild_Change_Grade_Name"><b>Subheader Guild Change Grade Name</b></span>
	</h5>

	<ul>
		<li>
			<b>SubHeader:</b> 2 (0x2) - <b>Type: </b> Constant
		</li>
		<li>
			<b>Description:</b> Changes member grade name definition in the Guild
		</li>
	</ul>

	<table style="width: 100%;">
		<caption>
			Structure
		</caption>
		<tbody>
			<tr>
				<th>
					Name
				</th>
				<th>
					Type
				</th>
				<th>
					Size (bytes)
				</th>
				<th>
					Description
				</th>
			</tr>
			<tr>
				<td>
					grade
				</td>
				<td>
					unsigned char
				</td>
				<td>
					1
				</td>
				<td>
					The grade number to change               
				</td>
			</tr>
			<tr>
				<td>
					name
				</td>
				<td>
					char
				</td>
				<td>
					8
				</td>
				<td>
					The grade name                                   
				</td>
			</tr>
		</tbody>
	</table>

	<h5>
		 
	</h5>

	<h5>
		<span class="mw-headline" id="Subheader_Guild_Change_Grade_Authority"><b>Subheader Guild Change Grade Authority</b></span>
	</h5>

	<ul>
		<li>
			<b>SubHeader:</b> 3 (0x3) - <b>Type: </b> Constant
		</li>
		<li>
			<b>Description:</b> Changes member grade authority in the Guild
		</li>
	</ul>

	<table style="width: 100%;">
		<caption>
			Structure
		</caption>
		<tbody>
			<tr>
				<th>
					Name
				</th>
				<th>
					Type
				</th>
				<th>
					Size (bytes)
				</th>
				<th>
					Description
				</th>
			</tr>
			<tr>
				<td>
					grade
				</td>
				<td>
					unsigned char
				</td>
				<td>
					1
				</td>
				<td>
					The grade number to change               
				</td>
			</tr>
			<tr>
				<td>
					authority
				</td>
				<td>
					unsigned char
				</td>
				<td>
					1
				</td>
				<td>
					The authority to change into                                   
				</td>
			</tr>
		</tbody>
	</table>

	<p>
		 
	</p>

	<h5>
		<span class="mw-headline" id="Subheader_Guild_Offer"><b>Subheader Guild Offer </b></span>
	</h5>

	<ul>
		<li>
			<b>SubHeader:</b> 4 (0x4) - <b>Type: </b> Constant
		</li>
		<li>
			<b>Description:</b> Offers current experience to the Guild
		</li>
	</ul>

	<table style="width: 100%;">
		<caption>
			Structure
		</caption>
		<tbody>
			<tr>
				<th>
					Name
				</th>
				<th>
					Type
				</th>
				<th>
					Size (bytes)
				</th>
				<th>
					Description
				</th>
			</tr>
			<tr>
				<td>
					experience
				</td>
				<td>
					unsigned long
				</td>
				<td>
					8
				</td>
				<td>
					The amount of experience to offer   
				</td>
			</tr>
		</tbody>
	</table>

	<h5>
		 
	</h5>

	<h5>
		<span class="mw-headline" id="Subheader_Guild_Post_Comment"><b>Subheader Guild Post Comment </b></span>
	</h5>

	<ul>
		<li>
			<b>SubHeader:</b> 5 (0x5) - <b>Type: </b> Constant
		</li>
		<li>
			<b>Description:</b> Posts a commentary in the Guild
		</li>
	</ul>

	<table style="width: 100%;">
		<caption>
			Structure
		</caption>
		<tbody>
			<tr>
				<th>
					Name
				</th>
				<th>
					Type
				</th>
				<th>
					Size (bytes)
				</th>
				<th>
					Description
				</th>
			</tr>
			<tr>
				<td>
					length
				</td>
				<td>
					unsigned char
				</td>
				<td>
					255 (up to)
				</td>
				<td>
					The length of the post message to send
				</td>
			</tr>
			<tr>
				<td>
					message
				</td>
				<td>
					unsigned char
				</td>
				<td>
					<b>length</b>
				</td>
				<td>
					The post message to send
				</td>
			</tr>
		</tbody>
	</table>

	<h5>
		 
	</h5>

	<h5>
		<span class="mw-headline" id="Subheader_Guild_Delete_Comment"><b>Subheader Guild Delete Comment </b></span>
	</h5>

	<ul>
		<li>
			<b>SubHeader:</b> 6 (0x6) - <b>Type: </b> Constant
		</li>
		<li>
			<b>Description:</b> Deletes a commentary in the Guild
		</li>
	</ul>

	<table style="width: 100%;">
		<caption>
			Structure
		</caption>
		<tbody>
			<tr>
				<th>
					Name
				</th>
				<th>
					Type
				</th>
				<th>
					Size (bytes)
				</th>
				<th>
					Description
				</th>
			</tr>
			<tr>
				<td>
					index
				</td>
				<td>
					unsigned long
				</td>
				<td>
					8
				</td>
				<td>
					The length of the post message to send
				</td>
			</tr>
		</tbody>
	</table>

	<h5>
		<span class="mw-headline" id="Subheader_Guild_Refresh_Comments"><b>Subheader Guild Refresh Comments </b></span>
	</h5>

	<ul>
		<li>
			<b>SubHeader:</b> 7 (0x7) - <b>Type: </b> Constant
		</li>
		<li>
			<b>Description:</b> Requests a comments refresh
		</li>
	</ul>

	<table style="width: 100%;">
		<caption>
			Structure
		</caption>
		<tbody>
			<tr>
				<th>
					Name
				</th>
				<th>
					Type
				</th>
				<th>
					Size (bytes)
				</th>
				<th>
					Description
				</th>
			</tr>
			<tr>
				<td>
					empty
				</td>
			</tr>
		</tbody>
	</table>

	<h5>
		 
	</h5>

	<h5>
		<span class="mw-headline" id="Subheader_Guild_Change_Member_Grade"><b>Subheader Guild Change Member Grade </b></span>
	</h5>

	<ul>
		<li>
			<b>SubHeader:</b> 8 (0x8) - <b>Type: </b> Constant
		</li>
		<li>
			<b>Description:</b> Changes a given member's grade
		</li>
	</ul>

	<table style="width: 100%;">
		<caption>
			Structure
		</caption>
		<tbody>
			<tr>
				<th>
					Name
				</th>
				<th>
					Type
				</th>
				<th>
					Size (bytes)
				</th>
				<th>
					Description
				</th>
			</tr>
			<tr>
				<td>
					vid
				</td>
				<td>
					unsigned long
				</td>
				<td>
					8
				</td>
				<td>
					The virtual id of the player
				</td>
			</tr>
			<tr>
				<td>
					grade
				</td>
				<td>
					unsigned char
				</td>
				<td>
					8
				</td>
				<td>
					The grade to set
				</td>
			</tr>
		</tbody>
	</table>

	<h5>
		 
	</h5>

	<h5>
		<span class="mw-headline" id="Subheader_Guild_Use_Skill"><b>Subheader Guild Use Skill </b></span>
	</h5>

	<ul>
		<li>
			<b>SubHeader:</b> 9 (0x9) - <b>Type: </b> Constant
		</li>
		<li>
			<b>Description:</b> Uses a guild skill
		</li>
	</ul>

	<table style="width: 100%;">
		<caption>
			Structure
		</caption>
		<tbody>
			<tr>
				<th>
					Name
				</th>
				<th>
					Type
				</th>
				<th>
					Size (bytes)
				</th>
				<th>
					Description
				</th>
			</tr>
			<tr>
				<td>
					skill
				</td>
				<td>
					unsigned long
				</td>
				<td>
					8
				</td>
				<td>
					The virtual id of the player
				</td>
			</tr>
			<tr>
				<td>
					target
				</td>
				<td>
					unsigned long
				</td>
				<td>
					8
				</td>
				<td>
					The entity target virtual id to use the skill
				</td>
			</tr>
		</tbody>
	</table>

	<h5>
		 
	</h5>

	<h5>
		<span class="mw-headline" id="Subheader_Guild_Change_Member_General"><b>Subheader Guild Change Member General </b></span>
	</h5>

	<ul>
		<li>
			<b>SubHeader:</b> 10 (0x10) - <b>Type: </b> Constant
		</li>
		<li>
			<b>Description:</b> Changes a member general role state
		</li>
	</ul>

	<table style="width: 100%;">
		<caption>
			Structure
		</caption>
		<tbody>
			<tr>
				<th>
					Name
				</th>
				<th>
					Type
				</th>
				<th>
					Size (bytes)
				</th>
				<th>
					Description
				</th>
			</tr>
			<tr>
				<td>
					vid
				</td>
				<td>
					unsigned long
				</td>
				<td>
					8
				</td>
				<td>
					The virtual id of the player
				</td>
			</tr>
			<tr>
				<td>
					flag
				</td>
				<td>
					unsigned char
				</td>
				<td>
					8
				</td>
				<td>
					The general role flag to set
				</td>
			</tr>
		</tbody>
	</table>

	<h5>
		 
	</h5>

	<h5>
		<span class="mw-headline" id="Subheader_Guild_Invite_Answer"><b>Subheader Guild Invite Answer </b></span>
	</h5>

	<ul>
		<li>
			<b>SubHeader:</b> 11 (0x11) - <b>Type: </b> Constant
		</li>
		<li>
			<b>Description:</b> Gives an answer to a Guild invitation
		</li>
	</ul>

	<table style="width: 100%;">
		<caption>
			Structure
		</caption>
		<tbody>
			<tr>
				<th>
					Name
				</th>
				<th>
					Type
				</th>
				<th>
					Size (bytes)
				</th>
				<th>
					Description
				</th>
			</tr>
			<tr>
				<td>
					guildId
				</td>
				<td>
					unsigned long
				</td>
				<td>
					8
				</td>
				<td>
					The id of the guild
				</td>
			</tr>
			<tr>
				<td>
					answer
				</td>
				<td>
					unsigned char
				</td>
				<td>
					1
				</td>
				<td>
					The answer to the invite
				</td>
			</tr>
		</tbody>
	</table>

	<h5>
		 
	</h5>

	<h5>
		<span class="mw-headline" id="Subheader_Guild_Charge_GSP"><b>Subheader Guild Charge GSP </b></span>
	</h5>

	<ul>
		<li>
			<b>SubHeader:</b> 12 (0x12) - <b>Type: </b> Constant
		</li>
		<li>
			<b>Description:</b> Charges the Guild Skill Power
		</li>
	</ul>

	<table style="width: 100%;">
		<caption>
			Structure
		</caption>
		<tbody>
			<tr>
				<th>
					Name
				</th>
				<th>
					Type
				</th>
				<th>
					Size (bytes)
				</th>
				<th>
					Description
				</th>
			</tr>
			<tr>
				<td>
					guildId
				</td>
				<td>
					unsigned long
				</td>
				<td>
					8
				</td>
				<td>
					The amount of money/currency used to charge
				</td>
			</tr>
		</tbody>
	</table>

	<h5>
		 
	</h5>

	<h5>
		<span class="mw-headline" id="Subheader_Guild_Deposit_Money"><b>Subheader Guild Deposit Money </b></span>
	</h5>

	<ul>
		<li>
			<b>SubHeader:</b> 13 (0x13) - <b>Type: </b> Constant
		</li>
		<li>
			<b>Description:</b> Deposits an amount of money/currency in the Guild
		</li>
	</ul>

	<table style="width: 100%;">
		<caption>
			Structure
		</caption>
		<tbody>
			<tr>
				<th>
					Name
				</th>
				<th>
					Type
				</th>
				<th>
					Size (bytes)
				</th>
				<th>
					Description
				</th>
			</tr>
			<tr>
				<td>
					money
				</td>
				<td>
					unsigned long
				</td>
				<td>
					8
				</td>
				<td>
					The amount of money/currency to deposit
				</td>
			</tr>
		</tbody>
	</table>

	<h5>
		 
	</h5>

	<h5>
		<span class="mw-headline" id="Subheader_Guild_Withdraw_Money"><b>Subheader Guild Withdraw Money </b></span>
	</h5>

	<ul>
		<li>
			<b>SubHeader:</b> 14 (0x14) - <b>Type: </b> Constant
		</li>
		<li>
			<b>Description:</b> Withdraws an amount of money/currency from the Guild
		</li>
	</ul>

	<table style="width: 100%;">
		<caption>
			Structure
		</caption>
		<tbody>
			<tr>
				<th>
					Name
				</th>
				<th>
					Type
				</th>
				<th>
					Size (bytes)
				</th>
				<th>
					Description
				</th>
			</tr>
			<tr>
				<td>
					money
				</td>
				<td>
					unsigned long
				</td>
				<td>
					8
				</td>
				<td>
					The amount of money/currency to withdraw
				</td>
			</tr>
		</tbody>
	</table>

	<p>
		 
	</p>

	<h4>
		<span class="mw-headline" id="CG_Packet_Answer_Make_Guild"><b>CG Packet Answer Make Guild</b></span>
	</h4>

	<ul>
		<li>
			<b>Header:</b> 81 (0x51) <b>Type:</b> <i>Constant</i>
		</li>
		<li>
			<b>Sequenced:</b> <i>True</i>
		</li>
		<li>
			<b>Description:</b> A packet used to answer a guild creation prompt
		</li>
	</ul>

	<table style="width: 100%;">
		<caption>
			Structure
		</caption>
		<tbody>
			<tr>
				<th>
					Name
				</th>
				<th>
					Type
				</th>
				<th>
					Size (bytes)
				</th>
				<th>
					Description
				</th>
			</tr>
			<tr>
				<td>
					name
				</td>
				<td>
					char
				</td>
				<td>
					13
				</td>
				<td>
					The name of the guild
				</td>
			</tr>
		</tbody>
	</table>

	<p>
		 
	</p>

	<h4>
		<span class="mw-headline" id="CG_Packet_Fishing"><b>CG Packet Fishing</b></span>
	</h4>

	<ul>
		<li>
			<b>Header:</b> 82 (0x52) <b>Type:</b> <i>Constant</i>
		</li>
		<li>
			<b>Sequenced:</b> <i>True</i>
		</li>
		<li>
			<b>Description:</b> A packet used to start fishing
		</li>
	</ul>

	<table style="width: 100%;">
		<caption>
			Structure
		</caption>
		<tbody>
			<tr>
				<th>
					Name
				</th>
				<th>
					Type
				</th>
				<th>
					Size (bytes)
				</th>
				<th>
					Description
				</th>
			</tr>
			<tr>
				<td>
					rotation
				</td>
				<td>
					unsigned char
				</td>
				<td>
					1
				</td>
				<td>
					The rotation to fish
				</td>
			</tr>
		</tbody>
	</table>

	<p>
		 
	</p>

	<h4>
		<span class="mw-headline" id="CG_Packet_Give_Item"><b>CG Packet Give Item</b></span>
	</h4>

	<ul>
		<li>
			<b>Header:</b> 83 (0x53) <b>Type:</b> <i>Constant</i>
		</li>
		<li>
			<b>Sequenced:</b> <i>True</i>
		</li>
		<li>
			<b>Description:</b> A packet used to give an item to a player
		</li>
	</ul>

	<table style="width: 100%;">
		<caption>
			Structure
		</caption>
		<tbody>
			<tr>
				<th>
					Name
				</th>
				<th>
					Type
				</th>
				<th>
					Size (bytes)
				</th>
				<th>
					Description
				</th>
			</tr>
			<tr>
				<td>
					vid
				</td>
				<td>
					unsigned long
				</td>
				<td>
					8
				</td>
				<td>
					The virtual id of the player
				</td>
			</tr>
			<tr>
				<td>
					WindowType
				</td>
				<td>
					unsigned char
				</td>
				<td>
					1
				</td>
				<td>
					The type of window
				</td>
			</tr>
			<tr>
				<td>
					cell
				</td>
				<td>
					unsigned short
				</td>
				<td>
					2
				</td>
				<td>
					The cell of the window
				</td>
			</tr>
			<tr>
				<td>
					amount
				</td>
				<td>
					unsigned char
				</td>
				<td>
					1
				</td>
				<td>
					The amount of the item
				</td>
			</tr>
		</tbody>
	</table>

	<p>
		 
	</p>

	<h4>
		<span class="mw-headline" id="CG_Packet_Empire"><b>CG Packet Empire</b></span>
	</h4>

	<ul>
		<li>
			<b>Header:</b> 84 (0x54) <b>Type:</b> <i>Constant</i>
		</li>
		<li>
			<b>Sequenced:</b> <i>True</i>
		</li>
		<li>
			<b>Description:</b> A packet used to select an empire
		</li>
	</ul>

	<table style="width: 100%;">
		<caption>
			Structure
		</caption>
		<tbody>
			<tr>
				<th>
					Name
				</th>
				<th>
					Type
				</th>
				<th>
					Size (bytes)
				</th>
				<th>
					Description
				</th>
			</tr>
			<tr>
				<td>
					empire
				</td>
				<td>
					unsigned char
				</td>
				<td>
					1
				</td>
				<td>
					The index of the empire
				</td>
			</tr>
		</tbody>
	</table>

	<p>
		 
	</p>

	<h4>
		<span class="mw-headline" id="CG_Packet_Refine"><b>CG Packet Refine</b></span>
	</h4>

	<ul>
		<li>
			<b>Header:</b> 84 (0x54) <b>Type:</b> <i>Constant</i>
		</li>
		<li>
			<b>Sequenced:</b> <i>True</i>
		</li>
		<li>
			<b>Description:</b> A packet used to refine an item
		</li>
	</ul>

	<table style="width: 100%;">
		<caption>
			Structure
		</caption>
		<tbody>
			<tr>
				<th>
					Name
				</th>
				<th>
					Type
				</th>
				<th>
					Size (bytes)
				</th>
				<th>
					Description
				</th>
			</tr>
			<tr>
				<td>
					position
				</td>
				<td>
					unsigned char
				</td>
				<td>
					1
				</td>
				<td>
					The position of the item in the inventory
				</td>
			</tr>
			<tr>
				<td>
					type
				</td>
				<td>
					unsigned char
				</td>
				<td>
					1
				</td>
				<td>
					The type of refinement to perform
				</td>
			</tr>
		</tbody>
	</table>

	<p>
		 
	</p>

	<h4>
		<span class="mw-headline" id="CG_Packet_Mark_Login"><b>CG Packet Mark Login</b></span>
	</h4>

	<ul>
		<li>
			<b>Header:</b> 100 (0x64) <b>Type:</b> <i>Constant</i>
		</li>
		<li>
			<b>Sequenced:</b> <i>True</i>
		</li>
		<li>
			<b>Description:</b> A packet used to login into the mark server
		</li>
	</ul>

	<table style="width: 100%;">
		<caption>
			Structure
		</caption>
		<tbody>
			<tr>
				<th>
					Name
				</th>
				<th>
					Type
				</th>
				<th>
					Size (bytes)
				</th>
				<th>
					Description
				</th>
			</tr>
			<tr>
				<td>
					handle
				</td>
				<td>
					unsigned long
				</td>
				<td>
					8
				</td>
				<td>
					The current mark handle
				</td>
			</tr>
			<tr>
				<td>
					randomKey
				</td>
				<td>
					unsigned long
				</td>
				<td>
					8
				</td>
				<td>
					The random key
				</td>
			</tr>
		</tbody>
	</table>

	<p>
		 
	</p>

	<h4>
		<span class="mw-headline" id="CG_Packet_Mark_CRC_List"><b>CG Packet Mark CRC List</b></span>
	</h4>

	<ul>
		<li>
			<b>Header:</b> 100 (0x64) <b>Type:</b> <i>Constant</i>
		</li>
		<li>
			<b>Sequenced:</b> <i>True</i>
		</li>
		<li>
			<b>Description:</b> A packet used to send the current image index for the CRC List
		</li>
	</ul>

	<table style="width: 100%;">
		<caption>
			Structure
		</caption>
		<tbody>
			<tr>
				<th>
					Name
				</th>
				<th>
					Type
				</th>
				<th>
					Size (bytes)
				</th>
				<th>
					Description
				</th>
			</tr>
			<tr>
				<td>
					imageIndex
				</td>
				<td>
					unsigned char
				</td>
				<td>
					1
				</td>
				<td>
					The current image index
				</td>
			</tr>
		</tbody>
	</table>

	<p>
		 
	</p>

	<h4>
		<span class="mw-headline" id="CG_Packet_Mark_Upload"><b>CG Packet Mark Upload</b></span>
	</h4>

	<ul>
		<li>
			<b>Header:</b> 101 (0x65) <b>Type:</b> <i>Constant</i>
		</li>
		<li>
			<b>Sequenced:</b> <i>True</i>
		</li>
		<li>
			<b>Description:</b> A packet used to upload an image into the mark server
		</li>
	</ul>

	<table style="width: 100%;">
		<caption>
			Structure
		</caption>
		<tbody>
			<tr>
				<th>
					Name
				</th>
				<th>
					Type
				</th>
				<th>
					Size (bytes)
				</th>
				<th>
					Description
				</th>
			</tr>
			<tr>
				<td>
					guildId
				</td>
				<td>
					unsigned long
				</td>
				<td>
					1
				</td>
				<td>
					The current image index
				</td>
			</tr>
			<tr>
				<td>
					image
				</td>
				<td>
					unsigned char
				</td>
				<td>
					768
				</td>
				<td>
					The image to upload
				</td>
			</tr>
		</tbody>
	</table>

	<p>
		 
	</p>

	<h4>
		<span class="mw-headline" id="CG_Packet_Mark_Index_List"><b>CG Packet Mark Index List</b></span>
	</h4>

	<ul>
		<li>
			<b>Header:</b> 102 (0x66) <b>Type:</b> <i>Constant</i>
		</li>
		<li>
			<b>Sequenced:</b> <i>True</i>
		</li>
		<li>
			<b>Description:</b> A packet used to increment an index(?)
		</li>
	</ul>

	<table style="width: 100%;">
		<caption>
			Structure
		</caption>
		<tbody>
			<tr>
				<th>
					Name
				</th>
				<th>
					Type
				</th>
				<th>
					Size (bytes)
				</th>
				<th>
					Description
				</th>
			</tr>
			<tr>
				<td>
					empty
				</td>
			</tr>
		</tbody>
	</table>

	<p>
		 
	</p>

	<h4>
		<span class="mw-headline" id="CG_Packet_Hack"><b>CG Packet Hack</b></span>
	</h4>

	<ul>
		<li>
			<b>Header:</b> 105 (0x68) <b>Type:</b> <i>Constant</i>
		</li>
		<li>
			<b>Sequenced:</b> <i>True</i>
		</li>
		<li>
			<b>Description:</b> A packet used to report hack messages to the server
		</li>
	</ul>

	<table style="width: 100%;">
		<caption>
			Structure
		</caption>
		<tbody>
			<tr>
				<th>
					Name
				</th>
				<th>
					Type
				</th>
				<th>
					Size (bytes)
				</th>
				<th>
					Description
				</th>
			</tr>
			<tr>
				<td>
					message
				</td>
				<td>
					char
				</td>
				<td>
					256
				</td>
				<td>
					The message of the hack to report
				</td>
			</tr>
		</tbody>
	</table>

	<p>
		 
	</p>

	<h4>
		<span class="mw-headline" id="CG_Packet_Change_Name"><b>CG Packet Change Name</b></span>
	</h4>

	<ul>
		<li>
			<b>Header:</b> 106 (0x69) <b>Type:</b> <i>Constant</i>
		</li>
		<li>
			<b>Sequenced:</b> <i>True</i>
		</li>
		<li>
			<b>Description:</b> A packet used to change the name of a character
		</li>
	</ul>

	<table style="width: 100%;">
		<caption>
			Structure
		</caption>
		<tbody>
			<tr>
				<th>
					Name
				</th>
				<th>
					Type
				</th>
				<th>
					Size (bytes)
				</th>
				<th>
					Description
				</th>
			</tr>
			<tr>
				<td>
					index
				</td>
				<td>
					unsigned char
				</td>
				<td>
					1
				</td>
				<td>
					The index of the character
				</td>
			</tr>
			<tr>
				<td>
					name
				</td>
				<td>
					char
				</td>
				<td>
					25
				</td>
				<td>
					The new name of the character
				</td>
			</tr>
		</tbody>
	</table>

	<p>
		 
	</p>

	<h4>
		<span class="mw-headline" id="CG_Packet_SMS"><b>CG Packet SMS</b></span>
	</h4>

	<ul>
		<li>
			<b>Header:</b> 107 (0x6A) <b>Type:</b> <i>Dynamic</i>
		</li>
		<li>
			<b>Sequenced:</b> <i>True</i>
		</li>
		<li>
			<b>Description:</b> A packet used to use the SMS(short message service) to send a message
		</li>
	</ul>

	<table style="width: 100%;">
		<caption>
			Structure
		</caption>
		<tbody>
			<tr>
				<th>
					Name
				</th>
				<th>
					Type
				</th>
				<th>
					Size (bytes)
				</th>
				<th>
					Description
				</th>
			</tr>
			<tr>
				<td>
					name
				</td>
				<td>
					char
				</td>
				<td>
					25
				</td>
				<td>
					The name of the player to send the message to
				</td>
			</tr>
			<tr>
				<td>
					message
				</td>
				<td>
					char
				</td>
				<td>
					4294967295 (up to)
				</td>
				<td>
					The "short" message to send
				</td>
			</tr>
		</tbody>
	</table>

	<p>
		 
	</p>

	<h4>
		<span class="mw-headline" id="CG_Packet_China_Matrix_Card"><b>CG Packet China Matrix Card</b></span>
	</h4>

	<ul>
		<li>
			<b>Header:</b> 108 (0x6B) <b>Type:</b> <i>Constant</i>
		</li>
		<li>
			<b>Sequenced:</b> <i>True</i>
		</li>
		<li>
			<b>Description:</b> A packet used to send the china matrix card answer
		</li>
	</ul>

	<table style="width: 100%;">
		<caption>
			Structure
		</caption>
		<tbody>
			<tr>
				<th>
					Name
				</th>
				<th>
					Type
				</th>
				<th>
					Size (bytes)
				</th>
				<th>
					Description
				</th>
			</tr>
			<tr>
				<td>
					answer
				</td>
				<td>
					char
				</td>
				<td>
					9
				</td>
				<td>
					The answer to the china matrix card
				</td>
			</tr>
		</tbody>
	</table>

	<p>
		 
	</p>

	<h4>
		<span class="mw-headline" id="CG_Packet_Login_2"><b>CG Packet Login 2</b></span>
	</h4>

	<ul>
		<li>
			<b>Header:</b> 109 (0x6C) <b>Type:</b> <i>Constant</i>
		</li>
		<li>
			<b>Sequenced:</b> <i>True</i>
		</li>
		<li>
			<b>Description:</b> A packet used to login into the server(second version)
		</li>
	</ul>

	<table style="width: 100%;">
		<caption>
			Structure
		</caption>
		<tbody>
			<tr>
				<th>
					Name
				</th>
				<th>
					Type
				</th>
				<th>
					Size (bytes)
				</th>
				<th>
					Description
				</th>
			</tr>
			<tr>
				<td>
					name
				</td>
				<td>
					char
				</td>
				<td>
					31
				</td>
				<td>
					The username of the account
				</td>
			</tr>
			<tr>
				<td>
					loginKey
				</td>
				<td>
					unsigned long
				</td>
				<td>
					8
				</td>
				<td>
					The login key
				</td>
			</tr>
			<tr>
				<td>
					encryptionKey
				</td>
				<td>
					unsigned long
				</td>
				<td>
					32
				</td>
				<td>
					The current encryption key
				</td>
			</tr>
		</tbody>
	</table>

	<p>
		 
	</p>

	<h4>
		<span class="mw-headline" id="CG_Packet_Login_3"><b>CG Packet Login 3</b></span>
	</h4>

	<ul>
		<li>
			<b>Header:</b> 111 (0x6F) <b>Type:</b> <i>Constant</i>
		</li>
		<li>
			<b>Sequenced:</b> <i>True</i>
		</li>
		<li>
			<b>Description:</b> A packet used to login into the server(third version)
		</li>
	</ul>

	<table style="width: 100%;">
		<caption>
			Structure
		</caption>
		<tbody>
			<tr>
				<th>
					Name
				</th>
				<th>
					Type
				</th>
				<th>
					Size (bytes)
				</th>
				<th>
					Description
				</th>
			</tr>
			<tr>
				<td>
					name
				</td>
				<td>
					char
				</td>
				<td>
					31
				</td>
				<td>
					The username of the account
				</td>
			</tr>
			<tr>
				<td>
					password
				</td>
				<td>
					char
				</td>
				<td>
					17
				</td>
				<td>
					The password of the account
				</td>
			</tr>
			<tr>
				<td>
					encryptionKey
				</td>
				<td>
					unsigned long
				</td>
				<td>
					32
				</td>
				<td>
					The current encryption key
				</td>
			</tr>
		</tbody>
	</table>

	<p>
		 
	</p>

	<h4>
		<span class="mw-headline" id="CG_Packet_Guild_Symbol_Upload"><b>CG Packet Guild Symbol Upload</b></span>
	</h4>

	<ul>
		<li>
			<b>Header:</b> 112 (0x70) <b>Type:</b> <i>Dynamic</i>
		</li>
		<li>
			<b>Sequenced:</b> <i>True</i>
		</li>
		<li>
			<b>Description:</b> A packet used to upload a guild symbol
		</li>
	</ul>

	<table style="width: 100%;">
		<caption>
			Structure
		</caption>
		<tbody>
			<tr>
				<th>
					Name
				</th>
				<th>
					Type
				</th>
				<th>
					Size (bytes)
				</th>
				<th>
					Description
				</th>
			</tr>
			<tr>
				<td>
					symbol
				</td>
				<td>
					unsigned long
				</td>
				<td>
					4294967295 (up to)
				</td>
				<td>
					The symbol of the guild
				</td>
			</tr>
		</tbody>
	</table>

	<p>
		 
	</p>

	<h4>
		<span class="mw-headline" id="CG_Packet_Guild_Symbol_CRC"><b>CG Packet Guild Symbol CRC </b></span>
	</h4>

	<ul>
		<li>
			<b>Header:</b> 113 (0x71) <b>Type:</b> <i>Constant</i>
		</li>
		<li>
			<b>Sequenced:</b> <i>True</i>
		</li>
		<li>
			<b>Description:</b> A packet used to send the CRC of each symbol listed
		</li>
	</ul>

	<table style="width: 100%;">
		<caption>
			Structure
		</caption>
		<tbody>
			<tr>
				<th>
					Name
				</th>
				<th>
					Type
				</th>
				<th>
					Size (bytes)
				</th>
				<th>
					Description
				</th>
			</tr>
			<tr>
				<td>
					guildId
				</td>
				<td>
					unsigned long
				</td>
				<td>
					8
				</td>
				<td>
					The guild id
				</td>
			</tr>
			<tr>
				<td>
					crc
				</td>
				<td>
					unsigned long
				</td>
				<td>
					8
				</td>
				<td>
					The CRC of the symbol
				</td>
			</tr>
			<tr>
				<td>
					size
				</td>
				<td>
					unsigned long
				</td>
				<td>
					8
				</td>
				<td>
					The size of the symbol
				</td>
			</tr>
		</tbody>
	</table>

	<p>
		 
	</p>

	<h4>
		<span class="mw-headline" id="CG_Packet_Script_Select_Item"><b>CG Packet Script Select Item </b></span>
	</h4>

	<ul>
		<li>
			<b>Header:</b> 114 (0x72) <b>Type:</b> <i>Constant</i>
		</li>
		<li>
			<b>Sequenced:</b> <i>True</i>
		</li>
		<li>
			<b>Description:</b> A packet used to select an item from a script/quest
		</li>
	</ul>

	<table style="width: 100%;">
		<caption>
			Structure
		</caption>
		<tbody>
			<tr>
				<th>
					Name
				</th>
				<th>
					Type
				</th>
				<th>
					Size (bytes)
				</th>
				<th>
					Description
				</th>
			</tr>
			<tr>
				<td>
					selection
				</td>
				<td>
					unsigned long
				</td>
				<td>
					8
				</td>
				<td>
					The index selection of the item
				</td>
			</tr>
		</tbody>
	</table>

	<p>
		 
	</p>

	<h4>
		<span class="mw-headline" id="CG_Packet_Login_4"><b>CG Packet Login 4</b></span>
	</h4>

	<ul>
		<li>
			<b>Header:</b> 115 (0x73) <b>Type:</b> <i>Constant</i>
		</li>
		<li>
			<b>Sequenced:</b> <i>True</i>
		</li>
		<li>
			<b>Description:</b> A packet used to login into the server (forth version)
		</li>
	</ul>

	<table style="width: 100%;">
		<caption>
			Structure
		</caption>
		<tbody>
			<tr>
				<th>
					Name
				</th>
				<th>
					Type
				</th>
				<th>
					Size (bytes)
				</th>
				<th>
					Description
				</th>
			</tr>
			<tr>
				<td>
					empty
				</td>
			</tr>
		</tbody>
	</table>

	<p>
		 
	</p>

	<h4>
		<span class="mw-headline" id="CG_Packet_Login_5_Open_Id"><b>CG Packet Login 5 Open Id</b></span>
	</h4>

	<ul>
		<li>
			<b>Header:</b> 116 (0x74) <b>Type:</b> <i>Constant</i>
		</li>
		<li>
			<b>Sequenced:</b> <i>True</i>
		</li>
		<li>
			<b>Description:</b> A packet used to login into the server with Open Identification (fifth version)
		</li>
	</ul>

	<table style="width: 100%;">
		<caption>
			Structure
		</caption>
		<tbody>
			<tr>
				<th>
					Name
				</th>
				<th>
					Type
				</th>
				<th>
					Size (bytes)
				</th>
				<th>
					Description
				</th>
			</tr>
			<tr>
				<td>
					authKey
				</td>
				<td>
					char
				</td>
				<td>
					33
				</td>
				<td>
					The Open Id authentication key
				</td>
			</tr>
			<tr>
				<td>
					encryptionKey
				</td>
				<td>
					unsigned long
				</td>
				<td>
					32
				</td>
				<td>
					The current encryption key
				</td>
			</tr>
		</tbody>
	</table>

	<p>
		 
	</p>

	<h4>
		<span class="mw-headline" id="CG_Packet_Runup_Matrix_Answer"><b>CG Packet Runup Matrix Answer</b></span>
	</h4>

	<ul>
		<li>
			<b>Header:</b> 201 (0xC9) <b>Type:</b> <i>Constant</i>
		</li>
		<li>
			<b>Sequenced:</b> <i>True</i>
		</li>
		<li>
			<b>Description:</b> A packet used to answer the matrix card runup
		</li>
	</ul>

	<table style="width: 100%;">
		<caption>
			Structure
		</caption>
		<tbody>
			<tr>
				<th>
					Name
				</th>
				<th>
					Type
				</th>
				<th>
					Size (bytes)
				</th>
				<th>
					Description
				</th>
			</tr>
			<tr>
				<td>
					answer
				</td>
				<td>
					char
				</td>
				<td>
					5
				</td>
				<td>
					The matrix card answer
				</td>
			</tr>
		</tbody>
	</table>

	<p>
		 
	</p>

	<h4>
		<span class="mw-headline" id="CG_Packet_NewCIBN_Passpod_Answer"><b>CG Packet NewCIBN Passpod Answer </b></span>
	</h4>

	<ul>
		<li>
			<b>Header:</b> 202 (0xCA) <b>Type:</b> <i>Constant</i>
		</li>
		<li>
			<b>Sequenced:</b> <i>True</i>
		</li>
		<li>
			<b>Description:</b> A packet used to send the Passpod anwser (used in NewCIBN)
		</li>
	</ul>

	<table style="width: 100%;">
		<caption>
			Structure
		</caption>
		<tbody>
			<tr>
				<th>
					Name
				</th>
				<th>
					Type
				</th>
				<th>
					Size (bytes)
				</th>
				<th>
					Description
				</th>
			</tr>
			<tr>
				<td>
					answer
				</td>
				<td>
					char
				</td>
				<td>
					9
				</td>
				<td>
					The passpod answer
				</td>
			</tr>
		</tbody>
	</table>

	<p>
		 
	</p>

	<h4>
		<span class="mw-headline" id="CG_Packet_Hackshield_Hack"><b>CG Packet Hackshield Hack </b></span>
	</h4>

	<ul>
		<li>
			<b>Header:</b> 203 (0xCB) <b>Type:</b> <i>Constant</i>
		</li>
		<li>
			<b>Sequenced:</b> <i>True</i>
		</li>
		<li>
			<b>Description:</b> A packet used to report a hack detected by HackShield(?)
		</li>
	</ul>

	<table style="width: 100%;">
		<caption>
			Structure
		</caption>
		<tbody>
			<tr>
				<th>
					Name
				</th>
				<th>
					Type
				</th>
				<th>
					Size (bytes)
				</th>
				<th>
					Description
				</th>
			</tr>
			<tr>
				<td>
					buffer
				</td>
				<td>
					unsigned char
				</td>
				<td>
					400
				</td>
				<td>
					Undefined
				</td>
			</tr>
			<tr>
				<td>
					length
				</td>
				<td>
					unsigned short
				</td>
				<td>
					2
				</td>
				<td>
					The length of the buffer
				</td>
			</tr>
		</tbody>
	</table>

	<p>
		 
	</p>

	<h4>
		<span class="mw-headline" id="CG_Packet_Xtrap_Hack"><b>CG Packet Xtrap Hack </b></span>
	</h4>

	<ul>
		<li>
			<b>Header:</b> 204 (0xCC) <b>Type:</b> <i>Constant</i>
		</li>
		<li>
			<b>Sequenced:</b> <i>True</i>
		</li>
		<li>
			<b>Description:</b> A packet used to verify given Xtrap data(?)
		</li>
	</ul>

	<table style="width: 100%;">
		<caption>
			Structure
		</caption>
		<tbody>
			<tr>
				<th>
					Name
				</th>
				<th>
					Type
				</th>
				<th>
					Size (bytes)
				</th>
				<th>
					Description
				</th>
			</tr>
			<tr>
				<td>
					data
				</td>
				<td>
					unsigned char
				</td>
				<td>
					128
				</td>
				<td>
					The received Xtrap data to verify
				</td>
			</tr>
		</tbody>
	</table>

	<p>
		 
	</p>

	<h4>
		<span class="mw-headline" id="CG_Packet_Dragon_Soul_Refine"><b>CG Packet Dragon Soul Refine </b></span>
	</h4>

	<ul>
		<li>
			<b>Header:</b> 204 (0xCC) <b>Type:</b> <i>Constant</i>
		</li>
		<li>
			<b>Sequenced:</b> <i>True</i>
		</li>
		<li>
			<b>Description:</b> A packet used to refine a dragon soul item
		</li>
	</ul>

	<table style="width: 100%;">
		<caption>
			Structure
		</caption>
		<tbody>
			<tr>
				<th>
					Name
				</th>
				<th>
					Type
				</th>
				<th>
					Size (bytes)
				</th>
				<th>
					Description
				</th>
			</tr>
			<tr>
				<td>
					refineType
				</td>
				<td>
					unsigned char
				</td>
				<td>
					1
				</td>
				<td>
					The type of the refine method
				</td>
			</tr>
			<tr>
				<td>
					windowType
				</td>
				<td>
					unsigned char
				</td>
				<td>
					1
				</td>
				<td>
					The type of window
				</td>
			</tr>
			<tr>
				<td>
					windowCell
				</td>
				<td>
					unsigned short
				</td>
				<td>
					2
				</td>
				<td>
					The cell of the window
				</td>
			</tr>
		</tbody>
	</table>

	<p>
		 
	</p>

	<h4>
		<span class="mw-headline" id="CG_Packet_State_Checker"><b>CG Packet State Checker </b></span>
	</h4>

	<ul>
		<li>
			<b>Header:</b> 204 (0xCE) <b>Type:</b> <i>Constant</i>
		</li>
		<li>
			<b>Sequenced:</b> <i>True</i>
		</li>
		<li>
			<b>Description:</b> A packet used to check the state of the server channels
		</li>
	</ul>

	<table style="width: 100%;">
		<caption>
			Structure
		</caption>
		<tbody>
			<tr>
				<th>
					Name
				</th>
				<th>
					Type
				</th>
				<th>
					Size (bytes)
				</th>
				<th>
					Description
				</th>
			</tr>
			<tr>
				<td>
					empty
				</td>
			</tr>
		</tbody>
	</table>

	<p>
		 
	</p>

	<h4>
		<span class="mw-headline" id="CG_Packet_Key_Agreement"><b>CG Packet Key Agreement </b></span>
	</h4>

	<ul>
		<li>
			<b>Header:</b> 251 (0xFB) <b>Type:</b> <i>Constant</i>
		</li>
		<li>
			<b>Sequenced:</b> <i>True</i>
		</li>
		<li>
			<b>Description:</b> A packet used to check the state of the server channels
		</li>
	</ul>

	<table style="width: 100%;">
		<caption>
			Structure
		</caption>
		<tbody>
			<tr>
				<th>
					Name
				</th>
				<th>
					Type
				</th>
				<th>
					Size (bytes)
				</th>
				<th>
					Description
				</th>
			</tr>
			<tr>
				<td>
					empty
				</td>
			</tr>
		</tbody>
	</table>

	<p>
		 
	</p>

	<h4>
		<span class="mw-headline" id="CG_Packet_Time_Sync"><b>CG Packet Time Sync </b></span>
	</h4>

	<ul>
		<li>
			<b>Header:</b> 252 (0xFC) <b>Type:</b> <i>Constant</i>
		</li>
		<li>
			<b>Sequenced:</b> <i>True</i>
		</li>
		<li>
			<b>Description:</b> A packet used to synchronize the time with the server
		</li>
	</ul>

	<table style="width: 100%;">
		<caption>
			Structure
		</caption>
		<tbody>
			<tr>
				<th>
					Name
				</th>
				<th>
					Type
				</th>
				<th>
					Size (bytes)
				</th>
				<th>
					Description
				</th>
			</tr>
			<tr>
				<td>
					handshake
				</td>
				<td>
					unsigned long
				</td>
				<td>
					8
				</td>
				<td>
					The current handshake
				</td>
			</tr>
			<tr>
				<td>
					time
				</td>
				<td>
					unsigned long
				</td>
				<td>
					8
				</td>
				<td>
					The handshake time + (handshake delta * 2)
				</td>
			</tr>
			<tr>
				<td>
					delta
				</td>
				<td>
					long
				</td>
				<td>
					8
				</td>
				<td>
					The delta (default 0)
				</td>
			</tr>
		</tbody>
	</table>

	<p>
		 
	</p>

	<h4>
		<span class="mw-headline" id="CG_Packet_Client_Version"><b>CG Packet Client Version </b></span>
	</h4>

	<ul>
		<li>
			<b>Header:</b> 253 (0xFD) <b>Type:</b> <i>Constant</i>
		</li>
		<li>
			<b>Sequenced:</b> <i>True</i>
		</li>
		<li>
			<b>Description:</b> A packet used to send the current client version to the server
		</li>
	</ul>

	<table style="width: 100%;">
		<caption>
			Structure
		</caption>
		<tbody>
			<tr>
				<th>
					Name
				</th>
				<th>
					Type
				</th>
				<th>
					Size (bytes)
				</th>
				<th>
					Description
				</th>
			</tr>
			<tr>
				<td>
					filename
				</td>
				<td>
					char
				</td>
				<td>
					33
				</td>
				<td>
					The current process filename
				</td>
			</tr>
			<tr>
				<td>
					timestamp
				</td>
				<td>
					char
				</td>
				<td>
					33
				</td>
				<td>
					The current process timestamp
				</td>
			</tr>
		</tbody>
	</table>

	<p>
		 
	</p>

	<h4>
		<span class="mw-headline" id="CG_Packet_Client_Version_2"><b>CG Packet Client Version 2 </b></span>
	</h4>

	<ul>
		<li>
			<b>Header:</b> 241 (0xF1) <b>Type:</b> <i>Constant</i>
		</li>
		<li>
			<b>Sequenced:</b> <i>True</i>
		</li>
		<li>
			<b>Description:</b> A packet used to send the current client version to the server (second version)
		</li>
	</ul>

	<table style="width: 100%;">
		<caption>
			Structure
		</caption>
		<tbody>
			<tr>
				<th>
					Name
				</th>
				<th>
					Type
				</th>
				<th>
					Size (bytes)
				</th>
				<th>
					Description
				</th>
			</tr>
			<tr>
				<td>
					filename
				</td>
				<td>
					char
				</td>
				<td>
					33
				</td>
				<td>
					The current process filename
				</td>
			</tr>
			<tr>
				<td>
					timestamp
				</td>
				<td>
					char
				</td>
				<td>
					33
				</td>
				<td>
					The current process timestamp (constant default "1215955205")
				</td>
			</tr>
		</tbody>
	</table>

	<p>
		 
	</p>

	<h4>
		<span class="mw-headline" id="CG_Packet_Pong"><b>CG Packet Pong </b></span>
	</h4>

	<ul>
		<li>
			<b>Header:</b> 254 (0xFE) <b>Type:</b> <i>Constant</i>
		</li>
		<li>
			<b>Sequenced:</b> <i>True</i>
		</li>
		<li>
			<b>Description:</b> A packet used to send a pong response
		</li>
	</ul>

	<table style="width: 100%;">
		<caption>
			Structure
		</caption>
		<tbody>
			<tr>
				<th>
					Name
				</th>
				<th>
					Type
				</th>
				<th>
					Size (bytes)
				</th>
				<th>
					Description
				</th>
			</tr>
			<tr>
				<td>
					empty
				</td>
			</tr>
		</tbody>
	</table>
</div>
]]></description><guid isPermaLink="false">23</guid><pubDate>Tue, 07 Nov 2023 18:46:39 +0000</pubDate></item></channel></rss>
