Could we get an option to change the Restock Delay for Vendng Machines in the config? I'd want to set the restock daily to 10seconds instead of 60 seconds. Culd you do this please :) ?
Ability to change Restock Delay in configSuggestion
I will look into it and see if it is even something that is possible.
Did you get it to work?FastBurst
I will look into it and see if it is even something that is possible.
because I can't get it to work
For whatever it's worth...I was able to kill the delay of restocking by changing the refill delay in the CompoundOptions.cs plugin itself, E.G. I can buy as much Scrap as I want at Outpost (albeit 200 @ a time) and it's never "OUT OF STOCK" any more. } private NPCVendingOrder.Entry[] GetNewOrders(NPCVendingMachine vending) { List temp = new List(); foreach (var order in data.VendingMachinesOrders[vending.vendingOrders.name]) { temp.Add(new NPCVendingOrder.Entry { currencyAmount = order.sellAmount, currencyAsBP = order.currencyAsBP, currencyItem = ItemManager.FindItemDefinition(order.currencyId), sellItem = ItemManager.FindItemDefinition(order.sellId), sellItemAmount = order.currencyAmount, sellItemAsBP = order.sellAsBP, weight = 100, refillAmount = 100000, refillDelay = 0.0f }); } return temp.ToArray(); }
PM or message me on Discord FastBurst#7708 - I would like to see this change.LightHammerFor whatever it's worth...I was able to kill the delay of restocking by changing the refill delay in the CompoundOptions.cs plugin itself, E.G. I can buy as much Scrap as I want at Outpost (albeit 200 @ a time) and it's never "OUT OF STOCK" any more. } private NPCVendingOrder.Entry[] GetNewOrders(NPCVendingMachine vending) { List temp = new List(); foreach (var order in data.VendingMachinesOrders[vending.vendingOrders.name]) { temp.Add(new NPCVendingOrder.Entry { currencyAmount = order.sellAmount, currencyAsBP = order.currencyAsBP, currencyItem = ItemManager.FindItemDefinition(order.currencyId), sellItem = ItemManager.FindItemDefinition(order.sellId), sellItemAmount = order.currencyAmount, sellItemAsBP = order.sellAsBP, weight = 100, refillAmount = 100000, refillDelay = 0.0f }); } return temp.ToArray(); }
I copy pasted that section of the file where I made the change, I think it's not displaying correctly in my reply
Merged post
So basically instead of "refillDelay = 10.0f", I cnaged it to "refillDelay = 0.0f". I also bumped the "refillAmount = 100000" and I'm not running into any buttons showing "out of stock" at Bandit or Outpost.
LightHammerFor whatever it's worth...I was able to kill the delay of restocking by changing the refill delay in the CompoundOptions.cs plugin itself, E.G. I can buy as much Scrap as I want at Outpost (albeit 200 @ a time) and it's never "OUT OF STOCK" any more. } private NPCVendingOrder.Entry[] GetNewOrders(NPCVendingMachine vending) { List temp = new List(); foreach (var order in data.VendingMachinesOrders[vending.vendingOrders.name]) { temp.Add(new NPCVendingOrder.Entry { currencyAmount = order.sellAmount, currencyAsBP = order.currencyAsBP, currencyItem = ItemManager.FindItemDefinition(order.currencyId), sellItem = ItemManager.FindItemDefinition(order.sellId), sellItemAmount = order.currencyAmount, sellItemAsBP = order.sellAsBP, weight = 100, refillAmount = 100000, refillDelay = 0.0f }); } return temp.ToArray(); }
FastBurst
PM or message me on Discord FastBurst#7708 - I would like to see this change.
This now allows people to exploit the fertilizer and cloth farming like its free candy as the vending machines never go out of stock, Have players be able to get 100k scrap a day because of this! Had to manually change the refilldelay and refillamount in the CS file so it would allow the vending machines to go out of stock. We need a way to control each items refilldelay and refillamount so people cant exploit the fertilizer and cloth.