Jump to content

Unknown pets


Auntie Mangos

Recommended Posts

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

Link to comment
Share on other sites

  • 40 years later...

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).

Link to comment
Share on other sites

  • 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