Pet Bug (June Files)
#1

Hi, 

i have a bug with the P2 Pets in the June Files so if i have equipped a P1 pet sometimes it also equips or shows me that i have equipped 2 Pets P1 and P2 Pet but just if i have another Pet in my Inventory. it looks like this

does anyone know the fix for this bug?

 /monthly_2021_11/Screenshot_244.png.ed8c140029b605dde1663432e41afda4.png" />

#2

I have the same bug when i log in having ichi or scrachi in my inventory xd

#3

Found that the pet gets bugged if I have a pony in my inventory because if I login and it equips  2 pets it shows me the name Chang Thai - pony and than it’s bugged till I delete the pet 

#4

Maybe stop using crap files

 

#5

Did you truncate your tables?

 

Can you show a screenshot of t_apet and t_pet? 

 

I know this issue, i had a similar problem in the 2009 code which i fixxed

#6

Fixxed the problem was in the WearInvenManager can be closed 

#7

show the fix?

#8

WearInvenManager.cpp

Change in June Files

        _owner->m_inventory.addItemToInvenIndex(takeOffItem, tab, invenIndex);

to

        if(_owner->m_inventory.isUsable(tab) == true)

        {

            _owner->m_inventory.addItemToInvenIndex(takeOffItem, tab, invenIndex);

        }

        else

        {

            _owner->m_inventory.addItem(takeOffItem);

        }

#9

Has anyone had a similar problem, when having several pets in the inventory randomly, when entering the game any of these are eliminated?

#10

WearInvenManager.cpp around l 86 



CAPet* pet = _owner->GetAPet(takeOffWearItem->getPlus());

            if( pet )

            {

                //if( pet && pet->IsMount() )

                    pet->Mount(false);

                pet->m_nDelay = pet->m_pProto->m_nDelay ;

                pet->Disappear();

            }



comment out this part like in the example above: if( pet && pet->IsMount() )



Forum Jump:


Users browsing this thread: 1 Guest(s)