Go Back   EQEmulator Home > EQEmulator Forums > Archives > Archive::Development > Archive::Bugs

Archive::Bugs Archive area for Bugs's posts that were moved here after an inactivity period of 90 days.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 12-21-2003, 03:06 AM
Tertiary
Hill Giant
 
Join Date: Nov 2003
Posts: 192
Default

I had a look at this. It seems that whenever you buy anything from an NPC merchant, it is not deducting the money from your 'Player Profile', although clientside it does, until you zone.

I tried a quick fix. In zone/client process.cpp, in the case OP_ShopPlayerBuy: section, make this change, around line 2942:
Code:
if (inst) {	
	freeslotid = m_inv.FindFreeSlot(false, true);
	PutItemInInventory(freeslotid, *inst);
	if(freeslotid!=SLOT_INVALID)                 // Add this line
	    TakeMoneyFromPP(mpo->price);       // Add this line
	SendItemPacket(freeslotid, inst, ItemPacketTrade);
	safe_delete(inst);
}
I did some quick tests and it seems to fix it. This was with 5.3DR1 Dec 17 source.
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 11:11 PM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3