EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Development::Server Code Submissions (https://www.eqemulator.org/forums/forumdisplay.php?f=669)
-   -   Dupe money on crash (https://www.eqemulator.org/forums/showthread.php?t=25049)

haecz 04-11-2008 05:56 AM

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.

gernblan 04-19-2008 05:16 AM

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.

cavedude 04-20-2008 03:38 PM

This is a good fix, moving to submission forum as it may get ignored here.


All times are GMT -4. The time now is 01:15 AM.

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