View Single Post
  #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