Jump to content

Extra VendingMachine 1.3.6

$6.00
   (1 review)
Message added by NooBlet,

Please backup and delete config before update to 1.3.0 to allow config changes for Any monument setup and to 1.3.4 adds the skinid option for vending machine

3 Screenshots

  • 33.2k
  • 261
  • 32.48 kB

About Extra VendingMachine

Extra VendingMachine adds a vending machine at a monument with custom items to be added via a config

 

All items has a refill timer . Setting it at 0 disables the timer for that item (time in seconds)

 

Permission

ExtraVendingMachine.use - if config is set to true  this is needed from player to use vending machine

 

Chat Commands (admin only)

/monpos  -  Outputs to console monument correction pos of player pos

/movevending <amount(can be desimal)>   -  moves vending machine in player look direction by amount and outputs new correction for config  , if amount not entered 0.1 will be used

/rotatevending <degree>   - rotates vending  and updates config

so first use monpos to add monument setup to config . save config and reload plugin
from this point moving and rotating vending machine will update automaticly to config

 

Config file example

item to buy will be the item sold to client 

item to sell will be what player pays for the buyitem

so in this example   itemtobuy is 5.56 ammo and itemtosell is scrap

vending machine is selling ammo for scrap

max stock is amount of ammo in vending machine to sell

NOTE : only first 7 sellorders will be listed in vending machine

NOTE: you cant have same item sold multiple times as sell orders that will break the stock logic (ItemToBuy must be different in each sellorder)

{
  "Use Permission to access Vending machine": false,
  "Use second VendingMachine?": true,
  "Shop 1 Name": "The Awesome Shop 1",
  "VendingMachine 1 Monument PrefabName": "assets/bundled/prefabs/autospawn/monument/medium/compound.prefab",
  "VendingMachine 1 SkinID": 0,
  "VendingMachine 1 Sell Orders": [
    {
      "ItemToBuy": 223891266,
      "ItemSkinID": 3385529905,
      "ItemName": "goNoob",
      "ItemBuyAmount": 1,
      "ItemToSell": -932201673,
      "ItemsellAmount": 200,
      "MaxStock": 10,
      "Refilltime": 1500,
      "RefillAmount": 1
    },
    {
      "ItemToBuy": -1442559428,
      "ItemSkinID": 0,
      "ItemName": "",
      "ItemBuyAmount": 1,
      "ItemToSell": -932201673,
      "ItemsellAmount": 50,
      "MaxStock": 10,
      "Refilltime": 600,
      "RefillAmount": 1
    },
    {
      "ItemToBuy": -148794216,
      "ItemSkinID": 1390752238,
      "ItemName": "",
      "ItemBuyAmount": 1,
      "ItemToSell": -932201673,
      "ItemsellAmount": 200,
      "MaxStock": 10,
      "Refilltime": 1500,
      "RefillAmount": 1
    },
    {
      "ItemToBuy": -1211166256,
      "ItemSkinID": 0,
      "ItemName": "",
      "ItemBuyAmount": 128,
      "ItemToSell": -932201673,
      "ItemsellAmount": 100,
      "MaxStock": 10000,
      "Refilltime": 1500,
      "RefillAmount": 128
    },
    {
      "ItemToBuy": -1003665711,
      "ItemSkinID": 0,
      "ItemName": "",
      "ItemBuyAmount": 1,
      "ItemToSell": -932201673,
      "ItemsellAmount": 500,
      "MaxStock": 20,
      "Refilltime": 0,
      "RefillAmount": 5
    },
    {
      "ItemToBuy": 602628465,
      "ItemSkinID": 0,
      "ItemName": "",
      "ItemBuyAmount": 1,
      "ItemToSell": -932201673,
      "ItemsellAmount": 100,
      "MaxStock": 50,
      "Refilltime": 300,
      "RefillAmount": 10
    },
    {
      "ItemToBuy": 1545779598,
      "ItemSkinID": 3419625573,
      "ItemName": "",
      "ItemBuyAmount": 1,
      "ItemToSell": -932201673,
      "ItemsellAmount": 5000,
      "MaxStock": 10,
      "Refilltime": 1500,
      "RefillAmount": 1
    }
  ],
  "VendingMachine 1 Spawn Correction": {
    "x": -2.5,
    "y": 0.0,
    "z": 7.0
  },
  "VendingMachine 1 Spawn Rotation": 0.0,
  "Shop 2 Name": "The Awesome Shop 2",
  "VendingMachine 2 Monumnet PrefabName": "assets/bundled/prefabs/autospawn/monument/medium/bandit_town.prefab",
  "VendingMachine 2 SkinID": 0,
    "VendingMachine 2 Sell Orders": [
    {
      "ItemToBuy": 223891266,
      "ItemSkinID": 832577120,
      "ItemName": "hole",
      "ItemBuyAmount": 1,
      "ItemToSell": -932201673,
      "ItemsellAmount": 1000,
      "MaxStock": 10,
      "Refilltime": 1500,
      "RefillAmount": 1
    },
    {
      "ItemToBuy": 573676040,
      "ItemSkinID": 0,
      "ItemName": "",
      "ItemBuyAmount": 1,
      "ItemToSell": -932201673,
      "ItemsellAmount": 500,
      "MaxStock": 10,
      "Refilltime": 1500,
      "RefillAmount": 1
    },
    {
      "ItemToBuy": -1651220691,
      "ItemSkinID": 0,
      "ItemName": "",
      "ItemBuyAmount": 1,
      "ItemToSell": -932201673,
      "ItemsellAmount": 500,
      "MaxStock": 10,
      "Refilltime": 1500,
      "RefillAmount": 1
    },
    {
      "ItemToBuy": 1545779598,
      "ItemSkinID": 3419563010,
      "ItemName": "",
      "ItemBuyAmount": 1,
      "ItemToSell": -932201673,
      "ItemsellAmount": 5000,
      "MaxStock": 10,
      "Refilltime": 1500,
      "RefillAmount": 1
    }
  ],
  "VendingMachine 2 Spawn Correction": {
    "x": -3.94,
    "y": 1.75,
    "z": 29.75
  },
  "VendingMachine 2 Spawn Rotation": 180.0
}

 

 

 


NooBlet's Collection

User Feedback

1.6m

Downloads

Total number of downloads.

7.7k

Customers

Total customers served.

115.4k

Files Sold

Total number of files sold.

2.3m

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.