Jump to content

[patch][6320] "at Gold Limit" Error Message When Getting Too Much Gold

Guest Dythzer

Recommended Posts

On offy you get the error message "At gold limit" when trading/selling etc and getting over max money, 2147483648 copper. Happened to 2 people so far on offy realm. Not allowed to post screenshot but google it if you want and you will find some articles about it.

Anyway, here's the patch:

Index: src/game/Player.h
--- src/game/Player.h        (revision 6319)
+++ src/game/Player.h        (working copy)
@@ -1287,6 +1287,10 @@
                                SetMoney (GetMoney() > uint32(-d) ? GetMoney() + d : 0);
                                SetMoney (GetMoney() < MAX_MONEY_AMOUNT - d ? GetMoney() + d : MAX_MONEY_AMOUNT);
+                        // "At Gold Limit"
+                        if(GetMoney() >= MAX_MONEY_AMOUNT)
+                                SendEquipError(EQUIP_ERR_TOO_MUCH_GOLD,NULL,NULL);
                void SetMoney( uint32 value )


Link to comment
Share on other sites

  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use