Difference between revisions of "NpcConversationMessage (000000DF)"
From SWGANH Wiki
(→Struct) |
m (Unprotected "NpcConversationMessage (000000DF)": Page is complete.) |
||
(10 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | + | {{PageHeader|Object Controller|NpcConversationMessage (000000DF)}} | |
− | + | ||
{| border="0" width="90%" cellpadding=6 | {| border="0" width="90%" cellpadding=6 | ||
|- | |- | ||
Line 6: | Line 5: | ||
===Struct=== | ===Struct=== | ||
---- | ---- | ||
− | + | {| align="center" | |
+ | |- | ||
+ | || | ||
{| class="wikitable" | {| class="wikitable" | ||
+ | |- | ||
|{{int}}|'''Unicode String Size | |{{int}}|'''Unicode String Size | ||
− | |{{u_string}}| | + | |- |
+ | |{{u_string}}|'''Main Dialog Box Text''' | ||
+ | |} | ||
|} | |} | ||
− | |||
===Variable Descriptions=== | ===Variable Descriptions=== | ||
---- | ---- | ||
− | + | ControllerID = '''000000DF''' | |
---- | ---- | ||
|valign=top| | |valign=top| | ||
+ | |||
===Tags=== | ===Tags=== | ||
---- | ---- | ||
Line 24: | Line 28: | ||
||{{ObjControllerMessageTag}} | ||{{ObjControllerMessageTag}} | ||
|- | |- | ||
− | ||{{ | + | ||{{100%}} |
|- | |- | ||
|} | |} | ||
|} | |} | ||
+ | ===Example Packet=== | ||
+ | |||
+ | ====Unicode Example==== | ||
+ | 05 00 '''Opperand Count | ||
+ | 46 5E CE 80 '''Op Code (ObjController) | ||
+ | 0B 00 00 00 '''Sub-op | ||
+ | DF 00 00 00 '''Command Op (Add to Main Body) | ||
+ | 19 00 00 00 00 00 00 00 '''Character ID | ||
+ | 00 00 00 00 | ||
+ | 04 00 00 00 '''Unicode string size | ||
+ | 74 00 65 00 73 00 74 00 '''test | ||
+ | |||
+ | ====STF Driven Example==== | ||
+ | 05 00 '''Opperand Count | ||
+ | 46 5E CE 80 '''Op Code (ObjController) | ||
+ | 0B 00 00 00 '''Sub-op | ||
+ | DF 00 00 00 '''Command Op (Add to Main Body) | ||
+ | CA 42 D0 57 05 00 00 00 '''Character ID | ||
+ | 00 00 00 00 '''Table of String Error ID # | ||
+ | 3C 00 00 00 '''String Buffer Size (in UniCode.. calculated with formula: | ||
+ | #=(STFLoc.size + StringName.size() + Size of remaining data | ||
+ | (0x56 or 0x57 depending on Mystery Byte Value | ||
+ | everything must be divided by 2 because its a unicode buffer) | ||
+ | 00 00 '''Unk Data 1 | ||
+ | 00 00 '''Mystery Bool (either 0 or 1) | ||
+ | 01 '''unk Data 2 (static) | ||
+ | FF FF FF FF '''unk Data 3 (static) | ||
+ | 18 00 '''String Size | ||
+ | conversation/chassis_npc '''Location of the *.stf file in String\en\ (needs to be in hex) | ||
+ | 00 00 00 00 '''Table of Strings Error ID # | ||
+ | 0A 00 '''String Size | ||
+ | s_9ed93871 '''Points to a location in above stf (needs to be in hex) | ||
+ | 00 00 00 00 '''Table of String Error ID # | ||
+ | 00 00 00 00 00 00 00 00 '''Buffering | ||
+ | 00 00 00 00 00 00 00 00 | ||
+ | 00 00 00 00 00 00 00 00 | ||
+ | 00 00 00 00 00 00 00 00 | ||
+ | 00 00 00 00 00 00 00 00 | ||
+ | 00 00 00 00 00 00 00 00 | ||
+ | 00 00 00 00 00 00 00 00 | ||
+ | 00 00 00 00 00 00 00 00 '''End Buffering | ||
+ | '''If Mystery bool is true add an aditional: (uint8)0x00 |
Latest revision as of 18:28, 3 January 2008
Object Controller - NpcConversationMessage (000000DF)
SWGANH Wiki is a repository of Star Wars Galaxies Developer information. This site is only meant to be used by SWGANH Developer team.
Struct
Variable DescriptionsControllerID = 000000DF |
Tags
|
Example Packet
Unicode Example
05 00 Opperand Count 46 5E CE 80 Op Code (ObjController) 0B 00 00 00 Sub-op DF 00 00 00 Command Op (Add to Main Body) 19 00 00 00 00 00 00 00 Character ID 00 00 00 00 04 00 00 00 Unicode string size 74 00 65 00 73 00 74 00 test
STF Driven Example
05 00 Opperand Count 46 5E CE 80 Op Code (ObjController) 0B 00 00 00 Sub-op DF 00 00 00 Command Op (Add to Main Body) CA 42 D0 57 05 00 00 00 Character ID 00 00 00 00 Table of String Error ID # 3C 00 00 00 String Buffer Size (in UniCode.. calculated with formula: #=(STFLoc.size + StringName.size() + Size of remaining data (0x56 or 0x57 depending on Mystery Byte Value everything must be divided by 2 because its a unicode buffer) 00 00 Unk Data 1 00 00 Mystery Bool (either 0 or 1) 01 unk Data 2 (static) FF FF FF FF unk Data 3 (static) 18 00 String Size conversation/chassis_npc Location of the *.stf file in String\en\ (needs to be in hex) 00 00 00 00 Table of Strings Error ID # 0A 00 String Size s_9ed93871 Points to a location in above stf (needs to be in hex) 00 00 00 00 Table of String Error ID # 00 00 00 00 00 00 00 00 Buffering 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 End BufferingIf Mystery bool is true add an aditional: (uint8)0x00