Elite Diviner
- Joined
- Jul 13, 2008
- Messages
- 419
- Reaction score
- 217
I usually don't share fixes with the public anymore, only with Lai, though he has fixed most of the exploits I find already. : Anyways, decided to release the fix for this one because the guys who did it on my server yesterday are fags and they don't deserve to be able to exploit, not even on Soul's servers. I assume this works on most servers because I haven't seen this fixed in any public sources.
MapleShop.java
Change that to either
or (I suggest to use this method, otherwise you will also have to check for the quantity not being negative.)
to prevent overflow.
MapleShop.java
Code:
if (c.getPlayer().getMeso() >= item.getPrice() * quantity) {
Code:
if (c.getPlayer().getMeso() >= (long) item.getPrice() * quantity) {
Code:
int price = item.getPrice() * quantity;
if (price >= 0 && c.getPlayer().getMeso() >= price) {
Last edited: