Posts: 32
Threads: 10
Thanks Received:
0 in 0 posts
Thanks Given: 0
Joined: Jan 2021
Reputation:
0
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" />
Posts: 275
Threads: 10
Thanks Received:
0 in 0 posts
Thanks Given: 0
Joined: Sep 2013
Reputation:
0
I have the same bug when i log in having ichi or scrachi in my inventory xd
Posts: 32
Threads: 10
Thanks Received:
0 in 0 posts
Thanks Given: 0
Joined: Jan 2021
Reputation:
0
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
Posts: 30
Threads: 1
Thanks Received:
0 in 0 posts
Thanks Given: 0
Joined: Dec 2020
Reputation:
0
Maybe stop using crap files
Posts: 528
Threads: 50
Thanks Received:
0 in 0 posts
Thanks Given: 0
Joined: Oct 2011
Reputation:
0
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
Posts: 32
Threads: 10
Thanks Received:
0 in 0 posts
Thanks Given: 0
Joined: Jan 2021
Reputation:
0
Fixxed the problem was in the WearInvenManager can be closed
Posts: 32
Threads: 10
Thanks Received:
0 in 0 posts
Thanks Given: 0
Joined: Jan 2021
Reputation:
0
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);
}
Posts: 280
Threads: 42
Thanks Received:
0 in 0 posts
Thanks Given: 0
Joined: Sep 2012
Reputation:
0
Has anyone had a similar problem, when having several pets in the inventory randomly, when entering the game any of these are eliminated?
Posts: 3
Threads: 0
Thanks Received:
0 in 0 posts
Thanks Given: 0
Joined: Feb 2023
Reputation:
0
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() )