Jump to content

buyraid makes players overpay

Pending 3.1.5

miniMe_rust
miniMe_rust

Posted

Hi nivex,

I got reports from players complaining that Raidable Bases "/buyraid" is taking more scrap from players' inventories than what is set up in the config. I have made it so, that players always have to pay for their raids, easy is 1000 scrap, medium 2000, and so on.

Here is where it gets weird: When the player has the scrap in stacks less than 1000 (the default) the correct amount of scrap is taken. But if you happen to have bigger stacks - like you get 2500 scrap from a raidable base in just 1 stack, the entire stack is taken as if it were a normal stack with 1000 scrap.

In both cases (see screenshots) the payment would have been 4000 scrap for an expert base. In both cases all the scrap was taken, and the player overpaid.

How to reproduce:

Configure "/buyraid" to use scrap - in this case an expert base will be 4000 scrap. Give yourself enough scrap in 2 or 3 stacks, the stacks exceed 1000 and in total you have more than the required 4000 scrap in inventory. Perform "/buyraid". See that your scrap is gone, and you overpaid.

I'm not sure whether this is a new problem, or Raidable Bases always has been like this. However, this wipe was the first time ever a player complained, and it was not just one - another player decided to volunteer and reproduced the problem. So you should have no difficulties to reproduce for yourself. I'm using Raidable Bases on Carbon.

Thanks in advance for looking into this.

image.png

image.png

image.png

nivex

Posted

hi, thanks for reporting and providing steps to reproduce. this will be fixed in the next update.

  • Love 1

About Us

Codefling is the largest marketplace for plugins, maps, tools, and more, making it easy for customers to discover new content and for creators to monetize their work.

Downloads
2.7m
Total downloads
Customers
11.6k
Customers served
Files Sold
165.8k
Total sales
Payments
3.6m
Processed total
×
×
  • 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.