@ignignokt84
Found a bug .....
This one is with using QuickSort, depositing all your items into a box. It probably wont matter which box which I haven't tested thoroughly. ALSO deposits the amount of Economics you have as blood into the box. so if you have 1,666,789,877 money that amount of blood goes into the box.

VendingManager
Utility for managing vending machines
Total Downloads: 1,959 - First Release: Feb 17, 2017 - Last Update: Apr 5, 2018
- 5/5, 9 likes
-
Hey there - any chance there is a method to change the "stack sizes" on the vending machines?
-
[DOUBLEPOST=1489351662][/DOUBLEPOST] -
If you mean change the stack size in the vending machine inventory, no it doesn't exist. I'll look into this later on though and see if it's possible.
Yeah, I was hoping to allow stack sizes higher than vanilla rates. Since I run a 5x server, vanilla rates go bye bye pretty quickly haha. -
Suggestion
In the case of admins creating a vendingmachine like an economy like we have done it would be convenient to not need to fill the vendingmachine up with items necessary. Instead, make the machine have infinite stock of the sold products. It would make our life managing our ingame shop a lot easier selling/buying items without the need to fill them up every time.
Note convenient, the plugin is really fucking useful already and want you to know it opened a lot of possibilities for our server. -
If you're talking about an "economy" per se, wouldn't you want certain items to run out? That way you'd be able to see the hottest sellers and be able to "adjust the price" accordingly based on supply and demand. I know it's all about getting the items into the player base, but still - can't make it too easy
-
-
There is already an option to make vending machines have infinite items - add the flag "Bottomless" to it!
Edit: Note there is a caveat to this - the owner of the machine will not receive any money for purchases made at a Bottomless vending machine. Instead, the cost of the items is simply withdrawn from the purchaser.Last edited by a moderator: Mar 14, 2017 -
-
If you are referring to the stacking - it's because the purchasing quantity is related to the number of the items in the machine. Even though you could add one HV 5.56 bullet and it'd never run out, players could only purchase one at a time. So if you put full stacks in, then people can purchase full stacks.
-
I.e a guy wants to buy 20k sulfur. It needs 20k or more in it? -
-
Thank you in advance and for your mod. -
-
-
ignignokt84 updated VendingManager with a new update entry:
0.1.6
-
I'm going to download and test this right now ! -
Code:SendMessage(player, "EconSellSuccess", new object[] { num, ItemManager.FindItemDefinition(sellOrder.currencyID).displayName.translated, amount, balance });
[VendingManager] Sucessfully sold 250 Charcoal for $250; New balance : $241,506.00
the first 250 is false (it's the cash value of the transaction) in my case it will be 1000 (1000 charcoal for 250.00 $)
On the log the values are right :
Code:[XXXXXXXXXXXXX sold 250 Blood for $2,500.00
-
Last edited by a moderator: Mar 20, 2017
-
ignignokt84 updated VendingManager with a new update entry:
0.1.7