Jump to content

Out of Stock

Gremlins 1.1.2

OfficialJaco

Posted

3 of the items I have in the vending machine are always out of stock and 2 have 1 in stock. Once I buy two of the items in the vending machine, all of them are out of stock. It never refills

OfficialJaco

Posted

I will share it when I get home but everything is the default config, all I did was change the items being sold and bought 

OfficialJaco

Posted

{
  "ShopName": "Resources 4 Scrap",
  "SpawnCorrection": {
    "x": -2.5,
    "y": 0.0,
    "z": 7.0
  },
  "SpawnRotation in degrees": 0.0,
  "Use Permission to access Vending machine": false,
  "VendingSellOrder": [
    {
      "ItemBuyAmount": 25,
      "ItemName": "",
      "ItemsellAmount": 1,
      "ItemSkinID": 0,
      "ItemToBuy": -932201673,
      "ItemToSell": 1272768630,
      "MaxStock": 1000000,
      "RefillAmount": 5,
      "Refilltime": 0
    },
    {
      "ItemBuyAmount": 20,
      "ItemName": "",
      "ItemsellAmount": 1000,
      "ItemSkinID": 0,
      "ItemToBuy": -932201673,
      "ItemToSell": -2099697608,
      "MaxStock": 1000000,
      "RefillAmount": 5,
      "Refilltime": 0
    },
    {
      "ItemBuyAmount": 50,
      "ItemName": "",
      "ItemsellAmount": 1000,
      "ItemSkinID": 0,
      "ItemToBuy": -932201673,
      "ItemToSell": -1938052175,
      "MaxStock": 1000000,
      "RefillAmount": 5,
      "Refilltime": 0
    },
    {
      "ItemBuyAmount": 50,
      "ItemName": "",
      "ItemsellAmount": 1,
      "ItemSkinID": 0,
      "ItemToBuy": -932201673,
      "ItemToSell": 1776460938,
      "MaxStock": 1000000,
      "RefillAmount": 5,
      "Refilltime": 0
    },
    {
      "ItemBuyAmount": 300,
      "ItemName": "",
      "ItemsellAmount": 1000,
      "ItemSkinID": 0,
      "ItemToBuy": -932201673,
      "ItemToSell": 1381010055,
      "MaxStock": 1000000,
      "RefillAmount": 5,
      "Refilltime": 0
    },
    {
      "ItemBuyAmount": 200,
      "ItemName": "",
      "ItemsellAmount": 1000,
      "ItemSkinID": 0,
      "ItemToBuy": -932201673,
      "ItemToSell": -946369541,
      "MaxStock": 1000000,
      "RefillAmount": 5,
      "Refilltime": 0
    },
    {
      "ItemBuyAmount": 500,
      "ItemName": "",
      "ItemsellAmount": 1000,
      "ItemSkinID": 0,
      "ItemToBuy": -932201673,
      "ItemToSell": -265876753,
      "MaxStock": 1000000,
      "RefillAmount": 5,
      "Refilltime": 0
    }
  ]
}

OfficialJaco

Posted (edited)

This is what I currently have right now in the config. I had "MaxStock" set to 10 because I thought it meant there would be 10 orders in the vending machine and if I have the Refilltime set to 10, every 10 seconds it would refill 5 stock in the vending machine until the max stock, which is 10. Maybe I am not understanding that correctly, but currently, MaxStock is the total amount of the item to buy being stocked into the machine. I am selling scrap for everything, so all 7 orders all withdraw from the MaxStock of 1000000 scrap. When I had it set to 10, some orders were already out of stock because it was more than the amount stocked.

It's a little confusing the way it's set up, but I at least understand that part. What I don't understand is the refillamount and refilltime, because regardless of what I set it to, nothing changes, unless I am still not understanding what it's meant to do.

Edited by OfficialJaco
NooBlet

Posted

 the refill timer is  exactly as you said ... if set to 120 and refill amount is 10 . then every 2min it will add 10 items to stack till max stock is reached ... but that readd is dependent on server stack size .... so with 100000 max stock ... and scrap stacks to 1000 at some point plugin in that regard will stop working as there is only like what 32 slots in vending machine and that means refills will stop after 32000 and not mentioning the fact that in that it cant accept the incoming item due to no space

NooBlet

Posted

but that all said .. i have plans to rewrite the config to be easier to read . soon ... but ill have a look at refills to get around stack sizes like in your case u using a single item to be sold over all sellorders

NooBlet

Posted

Changed Status from Pending to Work in Progress

NooBlet

Posted

yea so . having the same item for sale the stock will overlap . and to change that wil be a complete rewrite .. and at this moment this might be months away as im pushing out 7 plugins now . and most of my time is spend there ..... as for the restock  the 0 needs to be more than 0 ( sec) if tested it myside and works as expected .... 

NooBlet

Posted

Changed Status from Work in Progress to Gremlins

1.4m

Downloads

Total number of downloads.

6.9k

Customers

Total customers served.

102.2k

Files Sold

Total number of files sold.

2m

Payments Processed

Total payments processed.

×
×
  • 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.