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.

Reply
 
Thread Tools Display Modes
  #1  
Old 12-20-2003, 01:57 PM
Bearik's Avatar
Bearik
Hill Giant
 
Join Date: Nov 2003
Location: Washington
Posts: 104
Default Bug I found

Another money dupe

If you buy something and sell it back to a vendor and zone it gives you the money you bought the item for back and adds the money you sold the item for aswel

It goes something like that, but still an annoying bug. And probobly the last money dupe one (The trade money dupe was fixed in 5.2 I think)
Reply With Quote
  #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
  #3  
Old 12-21-2003, 03:13 AM
Trumpcard
Demi-God
 
Join Date: Jan 2002
Location: Charlotte, NC
Posts: 2,614
Default

Another good catch.. Thanks both of you. Fix merged in...
__________________
Quitters never win, and winners never quit, but those who never win and never quit are idiots.
Reply With Quote
Reply


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 12:25 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 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3