Difference between revisions of "BadgesResponseMessage"
From SWGANH Wiki
(→Variable Descriptions) |
|||
(3 intermediate revisions by one other user not shown) | |||
Line 5: | Line 5: | ||
===Struct=== | ===Struct=== | ||
---- | ---- | ||
− | + | {| align="center" | |
+ | |- | ||
+ | || | ||
{| class="wikitable" | {| class="wikitable" | ||
|{{short}}||'''Operand_Count''' | |{{short}}||'''Operand_Count''' | ||
Line 21: | Line 23: | ||
|} | |} | ||
{{endlist|Bit Masks}} | {{endlist|Bit Masks}} | ||
+ | |} | ||
===Variable Descriptions=== | ===Variable Descriptions=== | ||
Line 29: | Line 32: | ||
Opcode = '''6D89D25B''' | Opcode = '''6D89D25B''' | ||
---- | ---- | ||
+ | |||
+ | Please note that if a bit is set for an index that does not exist in the client file datatables/badges/badge_map.iff, the client may crash. | ||
+ | |||
+ | The number of bitmasks to send could be calculated based on the following formula: | ||
+ | int h = highestBadgeIndexNumber; //From the badge_map.iff | ||
+ | int numberOfBitmasks = ceil(h / 32); | ||
* Triggered on an event | * Triggered on an event | ||
|valign=top| | |valign=top| | ||
+ | |||
===Tags=== | ===Tags=== | ||
---- | ---- | ||
Line 42: | Line 52: | ||
|- | |- | ||
|} | |} | ||
− | |||
− | |||
− | |||
− | |||
− | |||
==Notes:== | ==Notes:== | ||
− | |||
Further Reading: [http://forums.swganh.org/viewtopic.php?t=683 http://forums.swganh.org/viewtopic.php?t=683] | Further Reading: [http://forums.swganh.org/viewtopic.php?t=683 http://forums.swganh.org/viewtopic.php?t=683] | ||
+ | |} | ||
==Sample Packet== | ==Sample Packet== |
Latest revision as of 14:30, 8 April 2011
Server Packet - BadgesResponseMessage (6D89D25B)
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 DescriptionsOpperand_Count = 7 Opcode = 6D89D25B Please note that if a bit is set for an index that does not exist in the client file datatables/badges/badge_map.iff, the client may crash. The number of bitmasks to send could be calculated based on the following formula: int h = highestBadgeIndexNumber; //From the badge_map.iff int numberOfBitmasks = ceil(h / 32);
|
Tags
Notes:Further Reading: http://forums.swganh.org/viewtopic.php?t=683 |
Sample Packet
03 00 // ACCOUNTUPDATE 5B D2 89 6D // BadgesResponseMessage 19 00 00 00 00 00 00 00 // CharacterID 0F 00 00 00 // Size of Bitmask List (15) 0F F0 EF CD // Bitmask 1 C0 10 0B 00 // Bitmask 2 02 7C 4A 89 // Bitmask 3 36 98 00 14 // Bitmask 4 00 10 00 A0 // Bitmask 5 00 18 02 00 // Bitmask 6 10 00 00 00 // Bitmask 7 00 00 00 00 // Bitmask 8 00 00 00 00 // Bitmask 9 00 00 00 00 // Bitmask 10 00 00 00 00 // Bitmask 11 00 00 00 00 // Bitmask 12 00 00 00 00 // Bitmask 13 00 00 00 00 // Bitmask 14 00 00 00 00 // Bitmask 15