Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Auction exploit?


ollixsykes
 Share

Recommended Posts

Hello lovely community, sorry for post again here, but i have new question, i found a bug on Resbak engine (maybe on AE too) the auction system have a big exploit in it, if you put the item for sell for -999999 and another player buy it, you receive the money ,anyway to block the (-) negative?

Thanks in advance!
Link to comment
Share on other sites

You will want to add a check to the server (the server because if a player has a client without a fix, then you can have a bit of trouble). Just check if the value is negative, if it is, then multiple it by -1.

***

Find
```
Private Sub HandleAddAuction
```

***

Above
```
Call AddAuction(Index, InvItem, 1, Price)
```

***

Add
```
If Price < 0 Then Price = Price * -1
```

(Made a quick change, I used > by mistake, it should be < )
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...