Difference between revisions of "PlanetTravelPointListResponse"

From SWGANH Wiki
Jump to: navigation, search
(Struct)
(Struct)
 
(11 intermediate revisions by 3 users not shown)
Line 1: Line 1:
__NOTOC__
+
{{PageHeader|Server Packet|PlanetTravelPointListResponse (4D32541F)}}
  
 
{| border="0" width="90%" cellpadding=6
 
{| border="0" width="90%" cellpadding=6
Line 6: Line 6:
 
===Struct===
 
===Struct===
 
----
 
----
 
+
{| align="center"
<pre>
+
|-
SHORT: Operand_Count
+
||
INT: OpCode
+
{| class="wikitable"
A_STRING: Query Planet String
+
|{{short}}|'''Operand_Count'''
INT: Count (number of shuttle/starports on planet)
+
|-
{
+
|{{int}}|'''OpCode'''
A_STRING: Planet String
+
|-
|
+
|{{a_string}}|'''Query Planet String'''
INT: Count (number of shuttle/starports on planet)
+
|-
{
+
|{{int}}|'''PlanetsCount (number of planets)'''
INT: Pos X
+
|}
INT: Pos Z
+
{{beginlist|planets|PlanetsCount}}
INT: Pos Y
+
:{| class="wikitable"
}
+
|{{a_string}}|'''Starport/Shuttleport Name'''
INT: Count (number of shuttle/starports on planet)
+
|}
{
+
{{endlist|planets}}
INT: Ticket Price (Difference - Could be TAX)
+
{| class="wikitable"
}
+
|{{int}}|'''TransportsCount (number of shuttle/starports on planet)'''
INT: Count (number of shuttle/starports on planet)
+
|}
BYTE: Reachable? (1=true, 0=false)
+
{{beginlist|transports|TransportsCount}}
</pre>
+
:{| class="wikitable"
 +
|{{float}}|'''Pos X'''
 +
|-
 +
|{{float}}|'''Pos Y'''
 +
|-
 +
|{{float}}|'''Pos Z'''
 +
|}
 +
{{endlist|transports}}
 +
{| class="wikitable"
 +
|{{int}}|'''TicketsCount (number of shuttle/starports on planet)'''
 +
|}
 +
{{beginlist|tickets|TicketsCount}}
 +
:{| class="wikitable"
 +
|{{int}}|'''Ticket Price (Difference - Could be TAX)'''
 +
|}
 +
{{endlist|tickets}}
 +
{| class="wikitable"
 +
|{{int}}|'''RangesCount (number of shuttle/starports on planet)'''
 +
|}
 +
{{beginlist|ranges|RangesCount}}
 +
:{| class="wikitable"
 +
|{{bool}}|'''Reachable? (1=true, 0=false)'''
 +
|}
 +
{{endlist|ranges}}
 +
|}
  
 
===Variable Descriptions===
 
===Variable Descriptions===
Line 35: Line 59:
  
 
Opcode     = '''4D32541F'''
 
Opcode     = '''4D32541F'''
----
 
 
* Additional Descriptions go here...
 
* --
 
* ---
 
* ----
 
  
 
|valign=top|
 
|valign=top|
Line 53: Line 71:
 
|-
 
|-
 
|}
 
|}
 
 
|}
 
|}
 
 
----
 
----
 
==Sample Code==
 
----
 
 
<pre>
 
Insert Code Snippet Here...
 
</pre>
 
 
 
==Sample Packet==
 
==Sample Packet==
  

Latest revision as of 09:13, 2 May 2011

Server Packet - PlanetTravelPointListResponse (4D32541F)

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
A_STRING Query Planet String
INT PlanetsCount (number of planets)

<planets count=PlanetsCount>

A_STRING Starport/Shuttleport Name

<planets/>

INT TransportsCount (number of shuttle/starports on planet)

<transports count=TransportsCount>

FLOAT Pos X
FLOAT Pos Y
FLOAT Pos Z

<transports/>

INT TicketsCount (number of shuttle/starports on planet)

<tickets count=TicketsCount>

INT Ticket Price (Difference - Could be TAX)

<tickets/>

INT RangesCount (number of shuttle/starports on planet)

<ranges count=RangesCount>

BOOL Reachable? (1=true, 0=false)

<ranges/>

Variable Descriptions


Operand_Count = 9

Opcode = 4D32541F

Tags


S→C This packet originates on the server.

100% This packet has been completely reversed.


Sample Packet

06 00                                           operand count
1F 54 32 4D			                crc
dathomir					respective planet string
32 02 00 00 00 					counter of starports / shuttleports
Dathomir.Outpost				name 1
Science.Outpost					name 2
02 00 00 00 					counter of starports / shuttleports
20 B9 1A 44 					x 1
78 44 C1 40 					z
3A 40 41 45 					y
73 16 44 C2 					x 2
00 00 90 41 					z
4A 17 C6 C4 					y
02 00 00 00 					counter of starports / shuttleports
2C 01 00 00 					add to tocket price 1
2C 01 00 00 					add to ticket price 2
02 00 00 00 					counter of starports / shuttleports
01 						reachable ? 1 = true 0 = false
01