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

Reply
 
Thread Tools Display Modes
  #1  
Old 09-19-2009, 04:39 AM
tsowl
Fire Beetle
 
Join Date: Jul 2004
Posts: 8
Default coin dupe prevent

when you have 2.15~4.29M platinum then you and dupe them just simply take them out of bank and put them back

zone/client_process.cpp

Code:
-	value = amount_to_take * CoinTypeCoppers(mc->cointype1);
-	amount_to_add = value / CoinTypeCoppers(mc->cointype2);
+	amount_to_add = amount_to_take * ((float)CoinTypeCoppers(mc->cointype1) / (float)CoinTypeCoppers(mc->cointype2));

	// the amount we're adding could be different than what was requested, so
	// we have to adjust the amount we take as well
-	value = amount_to_add * CoinTypeCoppers(mc->cointype2);
-	amount_to_take = value / CoinTypeCoppers(mc->cointype1);
+	amount_to_take = amount_to_add * ((float)CoinTypeCoppers(mc->cointype2) / (float)CoinTypeCoppers(mc->cointype1));
Reply With Quote
  #2  
Old 09-27-2009, 12:38 PM
cavedude's Avatar
cavedude
The PEQ Dude
 
Join Date: Apr 2003
Location: -
Posts: 1,988
Default

Added to revision 995.
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:57 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