PDA

View Full Version : Alcohol Drinking / Skillup Fix


seveianrex
10-15-2008, 03:39 PM
At the moment, there is no message for consuming alcohol. It should be the same as when you forcefeed water.

Additionally, because of the current setting, it appears that there is a 100% skill-up rate. I've changed this too to be more reasonable.

{client_packet.cpp}

(ln ~3188) completely replace the body of the function void Client::Handle_OP_DeleteItem(const EQApplicationPacket *app) with:


if (app->size != sizeof(DeleteItem_Struct)) {
cout << "Wrong size on OP_DeleteItem. Got: " << app->size << ", Expected: " << sizeof(DeleteItem_Struct) << endl;
return;
}

DeleteItem_Struct* alc = (DeleteItem_Struct*) app->pBuffer;
const ItemInst *inst = GetInv().GetItem(alc->from_slot);
if (inst && inst->GetItem()->ItemType == ItemTypeAlcohol) {
entity_list.MessageClose_StringID(this, true, 50, 0, DRINKING_MESSAGE, GetName(), inst->GetItem()->Name);
CheckIncreaseSkill(ALCOHOL_TOLERANCE,25);
}
DeleteItemInInventory(alc->from_slot, 1);

return;

Derision
10-15-2008, 04:03 PM
Comitted in Revision 100 :) Thanks!