ollixsykes Posted February 6, 2018 Author Share Posted February 6, 2018 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 More sharing options...
SolidLink Posted February 6, 2018 Share Posted February 6, 2018 when the player buys it, does he get 999999 gold? or with a negative? Link to comment Share on other sites More sharing options...
ollixsykes Posted February 6, 2018 Author Share Posted February 6, 2018 The seller stay "negative" and the buyer get the gold. Link to comment Share on other sites More sharing options...
SolidLink Posted February 6, 2018 Share Posted February 6, 2018 I will test it out right now, thank's for reporting :) Link to comment Share on other sites More sharing options...
Mohenjo Daro Posted February 6, 2018 Share Posted February 6, 2018 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 More sharing options...
SolidLink Posted February 6, 2018 Share Posted February 6, 2018 Daro, you are faster than a barefoot jackrabbit on a hot greasy griddle in the middle of August![alt text](https://i.imgur.com/PJPn4Hz.jpg) Link to comment Share on other sites More sharing options...
SolidLink Posted February 6, 2018 Share Posted February 6, 2018 After I test Ill try the fix and see if it works Link to comment Share on other sites More sharing options...
ollixsykes Posted February 6, 2018 Author Share Posted February 6, 2018 Fixed Daro, thank you so much guys! always fast <3 Link to comment Share on other sites More sharing options...
SolidLink Posted February 6, 2018 Share Posted February 6, 2018 Glad that's confirmed :D Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now