[Release] CharacterData, EntitySpawn

05/20/2019 18:55 sarkoplata#16
Another mistake I found:
OwnerUniqueID & OwnerName is sent if TypeID4 != 1. (ride pet)
You should not look for these values if the COS TypeID4 is 1.
05/28/2019 21:33 JellyBitz#17
PHP Code:
if(obj.TypeID3 == 2)
{
    
// NPC_MOB
    
1   byte   Rarity
    
if(obj.TypeID4 == || 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!
05/28/2019 22:54 DaxterSoul#18
Quote:
Originally Posted by JellyBitz View Post
PHP Code:
if(obj.TypeID3 == 2)
{
    
// NPC_MOB
    
1   byte   Rarity
    
if(obj.TypeID4 == || 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.
            }
        }
06/10/2019 23:48 JellyBitz#19
Working nicely, I think it's better subdivide the packet as seems on other source bots but is not my priority at the moment.

But I'm having an issue today (testing more servers) at skill ID, specificaly at Buffs loading. The skill ID is not found (not a reading problem since everything around it is parsing smooth). My though it's look for model id and extract the skill id from there, but no sounds like a solution. Where I should look apart from skilldata.txt? have something to do with skills encoded?

Nevermind, solved!