Jump to content

Recommended Posts

Posted

Now in right forum part

Mangos Version: 10500+

Custom Patches: many, but nothing with pets

SD2 Version:

How it SHOULD work:

If a player teleport into BG, Arena, instance or anywhere, your pet should have a name.

How it DOES work:

If a player teleport into BG, Arena, instance or anywhere, your pet has NO name. The pet is unknow. After a WoW restart the pet has a name.

A huge bug with this problem is, that the fightlog also will be buggy, because the pet has no name^^

In this forum part some thoughts.

http://getmangos.eu/community/viewtopic.php?id=14049

Thanks for your work to fix this bug

  • 40 years later...
Posted

src/game/PetHandler.cpp

{
    Creature* pet = _player->GetMap()->GetAnyTypeCreature(petguid);
    if(!pet || !pet->GetCharmInfo() || pet->GetCharmInfo()->GetPetNumber() != petnumber)
+    {
+        WorldPacket data(SMSG_PET_NAME_QUERY_RESPONSE, (4+1));
+        data << uint32(petnumber);
+        data << uint8(0);
+        _player->GetSession()->SendPacket(&data);
        return;
+    }

    std::string name = pet->GetName();

by nos4r2zod (extract of KAPATEJIb repo).

Posted

At first sight seems to send some kind of "pet not found" response to client, so it tries to get correct one. Not sending this might break an asynchronous query/response chain client side, and as result you get an "unknown" pet.

Posted

Unknown also appears in situations where a unit (not only pet) is summoned with other phaseMask then player's and when that player changes it's phaseMask to the unit's phaseMask then it is unknown.

I hope You understand me :P

  • 2 weeks later...
Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use