Go Back   EQEmulator Home > EQEmulator Forums > Development > Development::Server Code Submissions

Reply
 
Thread Tools Display Modes
  #1  
Old 04-11-2008, 05:56 AM
haecz
Hill Giant
 
Join Date: Apr 2003
Location: x
Posts: 205
Default Dupe money on crash

If you have X amount of money on a corpse. Open the corpse, and then loot an Item (so the char saves) and then crash/shutdown the zone it will save transaction on your Char (you will have recieved the money), but not on the corpse (which should have 0 money)

To fix this.

Change :
Quote:
Originally Posted by (zone/PlayerCorpse.cpp - Line 777)
}
RemoveCash();
}
To:
Quote:
Originally Posted by (zone/PlayerCorpse.cpp - Line 777)
}
RemoveCash();
Save();
client->Save();
}
It will now 1: Remove money from corpse. 2: Save corpse changes. 3: Save Char changes.
__________________
there is no spoon!!
Reply With Quote
  #2  
Old 04-19-2008, 05:16 AM
gernblan
Discordant
 
Join Date: Aug 2006
Posts: 394
Default

NICE!

Please, someone add this to the tree.

This is a verified dupe exploit.

Yes, I am aware that it takes a zone crash or shutdown, but it can be exploited rather easily (especially with dynamic zones with save state off) and yes, this does work as a fix.
__________________
--
Keelyeh
Owner, ServerOp and Developer
Jest 4 Server
Linux (Jest3 runs on Fedora, our Dev servers usually run on Ubuntu and/or Gentoo), OC-12 Connection = Hella Fast
Reply With Quote
  #3  
Old 04-20-2008, 03:38 PM
cavedude's Avatar
cavedude
The PEQ Dude
 
Join Date: Apr 2003
Location: -
Posts: 1,988
Default

This is a good fix, moving to submission forum as it may get ignored here.
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 05:47 AM.


 

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