View Single Post
  #1  
Old 10-15-2008, 03:39 PM
seveianrex
Sarnak
 
Join Date: Sep 2008
Location: asdf
Posts: 60
Default 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;
Reply With Quote