Difference between revisions of "UpdatePvpStatusMessage"

From SWGANH Wiki
Jump to: navigation, search
(Sample Code)
(Variable Descriptions)
 
(8 intermediate revisions by 3 users not shown)
Line 1: Line 1:
__NOTOC__
+
{{PageHeader|Server Packet|UpdatePvpStatusMessage (08A1C126)}}
 
+
 
{| border="0" width="90%" cellpadding=6
 
{| border="0" width="90%" cellpadding=6
 
|-
 
|-
Line 6: Line 5:
 
===Struct===
 
===Struct===
 
----
 
----
 
+
{| align="center"
 +
|-
 +
||
 
{| class="wikitable"
 
{| class="wikitable"
 +
|{{short}}||'''Operand_Count'''
 
|-
 
|-
|align="center" style="background:#6C86BF; color:white;"|'''SHORT'''||'''Operand_Count'''
+
|{{int}}||'''Opcode'''
 
|-
 
|-
|align="center" style="background:#3C548A; color:white;"|'''INT'''||'''Opcode'''
+
|{{int}}||'''PVPStatus'''
 
|-
 
|-
|align="center" style="background:#3C548A; color:white;"|'''INT'''||'''PVPStatus'''
+
|{{int}}||'''Faction'''
|-
+
|align="center" style="background:#3C548A; color:white;"|'''INT'''||'''Faction'''
+
|-
+
|align="center" style="background:#3C4565; color:white;"|'''LONG'''||'''ObjectID'''
+
 
|-
 
|-
 +
|{{long}}||'''ObjectID'''
 +
|}
 
|}
 
|}
 
 
===Variable Descriptions===
 
===Variable Descriptions===
 
----
 
----
Line 38: Line 37:
 
16: Player Flag
 
16: Player Flag
 
32: Enemy Flag  
 
32: Enemy Flag  
64: ??
+
64: Change Faction Status (blink purple/blue)
128: ??
+
128: Blink Green...
 
256: ??(NGE Duel?)
 
256: ??(NGE Duel?)
 +
</pre>
  
 +
*'''Faction''':
 +
<pre>
 
Faction:   HEX CRC_STRING DECIMAL
 
Faction:   HEX CRC_STRING DECIMAL
 
Neutral = 0 none 0
 
Neutral = 0 none 0
Line 59: Line 61:
 
||{{ServerPacket}}
 
||{{ServerPacket}}
 
|-
 
|-
||{{75%}}
+
||{{100%}}
 
|-
 
|-
 
|}
 
|}
 
 
|}
 
|}
 
----
 
 
==Sample Code==
 
 
<pre>
 
Insert Code Snippet Here...
 
</pre>
 
  
 
==Sample Packet==
 
==Sample Packet==
  
 
<pre>
 
<pre>
Insert Sample Packet Here...
+
04 00 // Op Count
 +
26 C1 A1 08 // UpdatePvpStatusMessage
 +
02 00 00 00 // PVP status
 +
00 00 00 00 // Faction
 +
A1 56 90 19 17 00 00 00 // Object ID
 
</pre>
 
</pre>

Latest revision as of 15:03, 18 March 2011

Server Packet - UpdatePvpStatusMessage (08A1C126)

SWGANH Wiki is a repository of Star Wars Galaxies Developer information. This site is only meant to be used by SWGANH Developer team.

Struct


SHORT Operand_Count
INT Opcode
INT PVPStatus
INT Faction
LONG ObjectID

Variable Descriptions


Opperand_Count = 4

Opcode = 08A1C126


  • PVPStatus:
A BITMASK with 6 elements:
1:	Attackable Flag
2:	Aggressive Flag (can attack you)
4:	Overt Flag
8:	TEF Flag
16:	Player Flag
32:	Enemy Flag 
64:	Change Faction Status (blink purple/blue)
128:	Blink Green...
256:	??(NGE Duel?)
  • Faction:
Faction:	  HEX		CRC_STRING		DECIMAL
Neutral 	= 0		none			0
Rebel		= 0x16148850	SWGCRC("rebel")		370444368
Imperial	= 0xDB4ACC54	SWGCRC("imperial")	3679112276
  • Object_ID:
The object ID who's PVP Status is being updated.

Tags


S→C This packet originates on the server.

100% This packet has been completely reversed.

Sample Packet

04 00 // Op Count
26 C1 A1 08 // UpdatePvpStatusMessage
02 00 00 00 // PVP status
00 00 00 00 // Faction
A1 56 90 19 17 00 00 00 // Object ID