Page 1 of 1
Improper Loot window display
Posted: Sat Apr 15, 2017 6:52 am
by Ememjr
loot.JPG
When looting a mob after killing it the loot window does not display the loot correctly
i have confirmed this on the eq2emulater server as well as building from the latest source on SVN
tested with COe version 1208
Re: Improper Loot window display
Posted: Thu Sep 14, 2017 5:12 pm
by Ememjr
i have a fix for this on live client (dov works as well) need to test COE but i believe that offset may be 12
in client.cpp in this function
void Client::Loot(int32 total_coins, vector<Item*>* items, Entity* entity ){
modify the section of code below to add the get version (GetVersion() >= 63119) in order to change the offset
Code: Select all
int8 offset = 0;
if (GetVersion() >= 63119){
offset = 13;
/*memcpy(ptr, tmpPacket->pBuffer + 11, tmpPacket->size - 11);
ptr += tmpPacket->size - 11;
packet_size += tmpPacket->size - 11;*/
}
else if (GetVersion() >= 860){
offset = 11;
/*memcpy(ptr, tmpPacket->pBuffer + 11, tmpPacket->size - 11);
ptr += tmpPacket->size - 11;
packet_size += tmpPacket->size - 11;*/
}
else{
offset = 10;
/*memcpy(ptr, tmpPacket->pBuffer + 10, tmpPacket->size - 10);
ptr += tmpPacket->size - 10;
packet_size += tmpPacket->size - 10;*/
}
memcpy(ptr, tmpPacket->pBuffer + offset, tmpPacket->size - offset);
ptr += tmpPacket->size - offset;
packet_size += tmpPacket->size - offset;
safe_delete(tmpPacket);
Re: Improper Loot window display
Posted: Thu Nov 23, 2017 4:30 pm
by Jabantiz
Committed to dev svn