EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Development::Server Code Submissions (https://www.eqemulator.org/forums/forumdisplay.php?f=669)
-   -   Alcohol Drinking / Skillup Fix (https://www.eqemulator.org/forums/showthread.php?t=26526)

seveianrex 10-15-2008 03:39 PM

Alcohol Drinking / Skillup Fix
 
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:

Code:

        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!


All times are GMT -4. The time now is 10:54 AM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.