VendingManager

Utility for managing vending machines

Total Downloads: 1,957 - First Release: Feb 17, 2017 - Last Update: Apr 5, 2018

5/5, 9 likes
  1. Code:
    {
      "config": {
        "destroyOnUnload": false,
        "ejectLocks": false,
        "health": 500.0,
        "lockable": true,
        "lockFailureMessage": false,
        "saveLocks": true,
        "setHealth": true,
        "noBroadcast": false,
        "restricted": false,
        "useEconomics": false,
        "useServerRewards": false,
        "transactionTimeout": 300.0,
        "logTransSuccess": false,
        "logTransFailure": false,
        "transMessages": true,
        "currencyItem": "blood"
      },
      "resistances": {
        "Generic": 0.98,
        "Hunger": 0.0,
        "Thirst": 0.0,
        "Cold": 0.0,
        "Drowned": 0.0,
        "Heat": 1.0,
        "Bleeding": 0.0,
        "Poison": 0.0,
        "Suicide": 0.0,
        "Bullet": 0.9999,
        "Slash": 0.99,
        "Blunt": 0.99,
        "Fall": 0.0,
        "Radiation": 1.0,
        "Bite": 0.99,
        "Stab": 0.98,
        "Explosion": 0.3,
        "RadiationExposure": 0.0,
        "ColdExposure": 0.0,
        "Decay": 0.0,
        "ElectricShock": 0.0,
        "Arrow": 1.0
      },
      "templates": {}
    }
    This??
     
  2. Yes that - it looks like you have no templates. The add command only works if you have templates.
     
  3. Ahh ok. Thanks. I am going to try
     
  4. ignore my last message it was zonemanager its needs a update fix in it players were putting codelocks on them and it was distroying them but i still do have the problem of vms losing health i did a full repair on them and rebooted and they didnt lose any health on that side of it but they still do lose health as time gose by i deff have nodecay on


    Code:
    {
      "config": {
        "destroyOnUnload": false,
        "ejectLocks": false,
        "health": 1250.0,
        "lockable": true,
        "lockFailureMessage": false,
        "saveLocks": true,
        "setHealth": true,
        "noBroadcast": false,
        "restricted": false,
        "useEconomics": true,
        "useServerRewards": false,
        "transactionTimeout": 300.0,
        "logTransSuccess": false,
        "logTransFailure": false,
        "transMessages": true,
        "currencyItem": "blood"
      },
      "resistances": {
        "Generic": 0.0,
        "Hunger": 0.0,
        "Thirst": 0.0,
        "Cold": 0.0,
        "Drowned": 0.0,
        "Heat": 0.0,
        "Bleeding": 0.0,
        "Poison": 0.0,
        "Suicide": 0.0,
        "Bullet": 0.0,
        "Slash": 0.0,
        "Blunt": 0.0,
        "Fall": 0.0,
        "Radiation": 0.0,
        "Bite": 0.0,
        "Stab": 0.0,
        "Explosion": 0.0,
        "RadiationExposure": 0.0,
        "ColdExposure": 0.0,
        "Decay": 0.0,
        "ElectricShock": 0.0,
        "Arrow": 0.0
      },
      "templates": {
       
        "wood": {
          "entries": [
            {
              "itemToSellName": "stones",
              "itemToSellAmount": 1000,
              "currencyName": "blood",
              "currencyAmountPerItem": 2000,
              "itemToSellIsBP": false,
              "currencyIsBP": false
            },
            {
              "itemToSellName": "wood",
              "itemToSellAmount": 1000,
              "currencyName": "blood",
              "currencyAmountPerItem": 3000,
              "itemToSellIsBP": false,
              "currencyIsBP": false
            }
          ]
        },
        "metal": {
          "entries": [
            {
              "itemToSellName": "metal.fragments",
              "itemToSellAmount": 1000,
              "currencyName": "blood",
              "currencyAmountPerItem": 3000,
              "itemToSellIsBP": false,
              "currencyIsBP": false
            },
            {
              "itemToSellName": "fat.animal",
              "itemToSellAmount": 1000,
              "currencyName": "blood",
              "currencyAmountPerItem": 4000,
              "itemToSellIsBP": false,
              "currencyIsBP": false
            }
          ]
        },
        "work": {
          "entries": [
            {
              "itemToSellName": "workbench1",
              "itemToSellAmount": 1,
              "currencyName": "blood",
              "currencyAmountPerItem": 200,
              "itemToSellIsBP": false,
              "currencyIsBP": false
            },
            {
              "itemToSellName": "workbench2",
              "itemToSellAmount": 1,
              "currencyName": "blood",
              "currencyAmountPerItem": 350,
              "itemToSellIsBP": false,
              "currencyIsBP": false
            },
            {
              "itemToSellName": "workbench3",
              "itemToSellAmount": 1,
              "currencyName": "blood",
              "currencyAmountPerItem": 500,
              "itemToSellIsBP": false,
              "currencyIsBP": false
            }
          ]
        },
        "bits": {
          "entries": [
            {
              "itemToSellName": "bed",
              "itemToSellAmount": 1,
              "currencyName": "blood",
              "currencyAmountPerItem": 50,
              "itemToSellIsBP": false,
              "currencyIsBP": false
            },
            {
              "itemToSellName": "tunalight",
              "itemToSellAmount": 1,
              "currencyName": "blood",
              "currencyAmountPerItem": 20,
              "itemToSellIsBP": false,
              "currencyIsBP": false
            },
            {
              "itemToSellName": "pookie.bear",
              "itemToSellAmount": 1,
              "currencyName": "blood",
              "currencyAmountPerItem": 20,
              "itemToSellIsBP": false,
              "currencyIsBP": false
            },
            {
              "itemToSellName": "stocking.large",
              "itemToSellAmount": 1,
              "currencyName": "blood",
              "currencyAmountPerItem": 200,
              "itemToSellIsBP": false,
              "currencyIsBP": false
            },
            {
              "itemToSellName": "fridge",
              "itemToSellAmount": 1,
              "currencyName": "blood",
              "currencyAmountPerItem": 500,
              "itemToSellIsBP": false,
              "currencyIsBP": false
            },
            {
              "itemToSellName": "bbq",
              "itemToSellAmount": 1,
              "currencyName": "blood",
              "currencyAmountPerItem": 1500,
              "itemToSellIsBP": false,
              "currencyIsBP": false
            }
          ]
        },
        "weapons": {
          "entries": [
            {
              "itemToSellName": "rifle.bolt",
              "itemToSellAmount": 1,
              "currencyName": "blood",
              "currencyAmountPerItem": 1000,
              "itemToSellIsBP": false,
              "currencyIsBP": false
            },
            {
              "itemToSellName": "smg.mp5",
              "itemToSellAmount": 1,
              "currencyName": "blood",
              "currencyAmountPerItem": 650,
              "itemToSellIsBP": false,
              "currencyIsBP": false
            },
            {
              "itemToSellName": "rifle.lr300",
              "itemToSellAmount": 1,
              "currencyName": "blood",
              "currencyAmountPerItem": 3000,
              "itemToSellIsBP": false,
              "currencyIsBP": false
            },
            {
              "itemToSellName": "pistol.semiauto",
              "itemToSellAmount": 1,
              "currencyName": "blood",
              "currencyAmountPerItem": 500,
              "itemToSellIsBP": false,
              "currencyIsBP": false
            }
          ]
        }
      }
    }
     
  5. Are these VMs flagged as Immortal? Can you try making a transaction on the VM and see if the health goes down? I think VMs decay with usage.
     
  6. i can confirm it dose not affect it when buying from it

    since my last message at 6:35pm uk time when my vendors were at full 1250 health i checked it at 00:06am uk time and my vendors are at 200/1250 i can confirm this is in a safe zone where no damage is delt to them
     
    Last edited by a moderator: Nov 4, 2017
  7. It works perfectly for me, thank you very much !!
     
  8. [BUG]
    This plugin conflicted with Remover Tool: R-Remover Tool for Rust | Oxide

    Economic price set to remove building parts/items was charged twice with VendingManager plugin added
     
  9. This is an issue with the Remover Tool plugin - instead of calling Withdraw(ulong, double) directly on Economics, it calls it globally, which means that any loaded plugin which has that method signature will be called. I may release an update, but even if I did change the method in VendingManager, the failure point is in Remover Tool and should be corrected there.
     
  10. Wulf

    Wulf Community Admin

    Wulf updated VendingManager with a new update entry:

    0.2.3

     
  11. Right now Im using the Economics feature, WHICH IS AWESOME BTW,
    So that players buy and sell items for Economics money,
    The problem is, Im using Blood Bags in the vending machine to represent money,
    Is there some way we can put a new item into the game that looks like a coin? Players are really confused about the Blood Bags
     
  12. There's no way to add a new item to the game - we're stuck with using an existing item. I ended up using blood bags to represent currency because they're not used anywhere else.
     
  13. Is there anyway to set it up to sell more then 7 items in 1 machine?
     
  14. Is it possible to set vending machines to not decay or to lower their decay rate?
    I asked in NoDecay plugin thread so I guess Ill wait to see what they say :)
    NoDecay for Rust | Oxide
     
  15. I'm not sure - I think the decay is related to usage, so each transaction will decay the machine. I'll have to dig into the libraries and see if there is even an Oxide hook in place that might allow the decay touch to be skipped or amount scaled...
    [DOUBLEPOST=1511733725][/DOUBLEPOST]
    VendingManager doesn't enforce the 7 limit, so technically if you had two sell order templates saved that total to more than 7 sell orders, you should be able to load them in. I've not ever done this before though, so I don't know if they will scroll out of the visible area, or get truncated, or what might happen if you have more than 7.
     
  16. in the vending manager plugin right in the config just set to immortal with the flag
     
  17. The vending machines seem to decay even within a no decay zone. For example using ZoneManager and using the flag NoDecay doesn't seem to effect them. Not sure why - I had this issue a long time ago and it's appeared back again.
     
  18. same here VM´s decaying in a no decaying zone and with the flkag imortal. =(
     
  19. I have a concern . No orders work at home.
    Can you tell me the commands to make and in the orde please
    Should it do / add then save how?
     
  20. Any update on decay fix?