mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2025-12-24 00:51:26 +00:00
Adds additional function to the merchant software - Bulk Buy.
Activating this function prompts the user to enter a number.
If text is SOMEHOW entered, returns IC error message.
If number lesser than 1 is entered, returns IC error message.
Expects numbers equal or greater to 1.
Function then executes standard money-purchase function using a loop. This loop executes X amount of times where X is the number user entered, ensuring they purchase the amount of items they want to buy up to as much money as they actually have
This makes sure they cannot abuse this to buy more things than they can afford.
This function greatly reduces lag caused by server spawning excess amount of items and makes merchant much more pleasant to play.
Compiled without errors, tested on up-to-date private server, worked as expected.