Thread of relevant information.
Please do ONLY post relevant information in this thead ... no "thank you", "lol", etc. postings, ... cheers!
packet specs changes in 12.0.0
UPDATE && NEW_TICK
objects with <Pet> set in XML get a new PascalString field with id 82 that stores the pet's texture/skin ...
Code:
# 31=name
# 62=guild
# 82=petSkin
if($objectStatusType==31 || $objectStatusType==62 || $objectStatusType==82 ){ # name, guild or petSkin
$objectStatusValue=readUTF($ref_data)
}else{
$objectStatusValue=readInt($ref_data);
}
MAGE_SHOOT
the objectType of the spell has been added ... the format is now
Code:
my $bulletId=readUnsignedByte($ref_data);
my $ownerId=readInt($ref_data);
my $bulletType=readUnsignedByte($ref_data);
my $unknown=readUnsignedByte($ref_data);
my $spellObjectType=readUnsignedShort($ref_data);
my $startingPosX=readFloat($ref_data);
my $startingPosY=readFloat($ref_data);
my $angle=readFloat($ref_data);
my $damage=readShort($ref_data);
print '[MAGE_SHOOT] bulletId:' . $bulletId . ' ownerId:' . $ownerId . ' bulletType:' . $bulletType . ' unknown:' . $unknown . ' spellObjectType:' . $spellObjectType . ' startingPos:' . $startingPosX . '/' . $startingPosY . ' angle:' . $angle . ' damage:' . $damage . "\n";
objectStats
if you know about missing ids just post them in thread ...
Code:
my $objectStats = {
0 => 'MAX_HEALTH',
1 => 'HEALTH',
2 => 'SIZE',
3 => 'MAX_MANA',
4 => 'MANA',
5 => 'XP_GOAL',
6 => 'XP',
7 => 'LEVEL',
# 8..19 = INVENTROY
20 => 'ATT',
21 => 'DEF',
22 => 'SPD',
26 => 'VIT',
27 => 'WIS',
28 => 'DEX',
29 => 'BOOL_PAUSED_OR_CLOAKED', # can not teleport to paused or cloaked players
30 => 'STARS',
31 => 'NAME', # PascalString
32 => 'TEXTURE1',
33 => 'TEXTURE2',
35 => 'REALM_GOLD',
37 => 'BOOL_CAN_ENTER_PORTAL', # set for portals
39 => 'CURRENT_FAME',
46 => 'HEALTH_BONUS',
47 => 'MANA_BONUS',
48 => 'ATT_BONUS',
49 => 'DEF_BONUS',
50 => 'SPD_BONUS',
51 => 'VIT_BONUS',
52 => 'WIS_BONUS',
53 => 'DEX_BONUS',
56 => 'BOOL_NAME_REGISTERED', # can not teleport to unregistered names
57 => 'FAME',
58 => 'FAME_GOAL',
62 => 'GUILD', # PascalString
63 => 'GUILD_RANK',
# 71..78 = BACKPACK
79 => 'BOOL_HAS_BACKPACK',
80 => 'PET_SKIN_OBJECT_TYPE',
82 => 'PET_SKIN', # PascalString
87 => 'FOOD_SPENT_ON_SKILL1',
88 => 'FOOD_SPENT_ON_SKILL2',
89 => 'FOOD_SPENT_ON_SKILL3',
90 => 'PET_SKILL1_LEVEL',
91 => 'PET_SKILL2_LEVEL',
92 => 'PET_SKILL3_LEVEL',
};