Quote:
Originally Posted by JellyBitz
PHP Code:
if(obj.TypeID3 == 2)
{
// NPC_MOB
1 byte Rarity
if(obj.TypeID4 == 2 || obj.TypeID4 == 3)
{
1 byte Appearance //Randomized by server.
}
}
Is this correct? All has been working as intended but on parsing NPC looks like all are "NPC_MOB" with this condition and it's having packet reading error..
I can't find some reference about this string for checking his ID's .. is not very important but I would like to keep on track everything!
|
obj.TypeID3 == 2 is NPC_NPC where it should obviously be NPC_MOB.
I should probably delete this altogether, it's poorly transcribed and incorrect in so many places.
Code:
if(obj.TypeID3 == 1)
{
//NPC_MOB
1 byte Monster.Rarity
if(obj.TypeID4 == 2 || obj.TypeID4 == 3)
{
//NPC_MOB_TIEF, NPC_MOB_HUNTER
1 byte Monster.Appearance //Randomized by server.
}
}