Support for Economics/ServerRewardsSolved

Would it be possible to have something represent the currency in the exchange slot, maybe a note with cash skin, or RP icon, etc, and then it pulls it from the players economics as the exchange?  

This is something I briefly thought about when rewriting the plugin long ago, since I saw that the Vending Manager plugin had a similar feature (when I was looking around for which plugin to contribute the edit interface to). There hasn't been much demand for this feature so I haven't thought about how I would implement it yet.

I think what people have been doing up to this point is using ATM plugins to convert plugin currency to skinned items such as paper that looks like cash, which is then configured as the currency in vending machines. I've played on at least two servers that were doing that.

If implemented, I would probably do something similar to how Vending Manager does it.

  • There would be config option to designate the item IDs and skin IDs of Economics and Server Rewards currencies.
  • On the Edit screen, you could add those items to the currency column.
  • When clicking Save, if the currency in the Edit container matched the configured item/skin, the plugin would record in the data file that the currency is Economics or Server Rewards.
  • When displaying the shop interface, if a given sale offer was for Economics or Server Rewards, the plugin would show the configured skin ID in the currency column if skin IDs overlays are enabled, or else just the item image (such as blood or whatever you set in the config).
  • You would be able to change the item ID and skin IDs in the config, and the plugin would automatically adjust since it wouldn't actually be saving the item ID and skin ID in the data file, as it would just remember whether the currency was Economics or Server Rewards.
  • The vending machine map marker would say the name of the item such as blood. Not the best, but improving this would be out of scope for now as the plugin doesn't alter the contents of the markers at this time, and doing so could cause translation issues.

That would be cool!  I am trying to avoid in-game physical currency and keep it all virtual, not to mention all in one plugin would be great to have.  I could get rid of my /shop and move things like buying a callheli command item with eco/rp.  I love your detailed responses and information about it.  I'll be clicking the donate button for your great work and contributions!  Thanks for running the idea

This is ready for beta testing. Please download it from GitHub.

https://github.com/WheteThunger/CustomVendingSetup

I realized I should include the capability for vending machines to sell Economics & Server Rewards currency to players, not just allow players to spend those, so that's also been implemented.

I initially implemented it so that the data file remembers whether a given vending item was for Economics or Server Rewards, but I eventually changed it so it's solely based on the config.

Sweet, I will give it a run!

Merged post

What would be the easiest way to get the cash skin on to paper?  The skin and skinbox plugins don't seem to help

The built in give command supports skins. It's something like "give player shortname amount condition skin". Always set condition to just 1. If you are using the Give plugin, this will not work, unless you remove that plugin and restart the server.

Ok thanks.  I was able to get it.  Another thought I had. Is there a way to change the name of the map vending machine icon?  It says paper but it would be better if it said Money or Economics.  Maybe a configurable term in the config file for the name of that item on the vending machine map icon?  If possible?

Clients determine the item display name automatically from the item ID basically. The only way I can think of to customize it would be for the plugin to completely override the marker, by generating all that text and putting it in the shop name, and making clients think there are no actual items for sale so clients don't show anything besides the shop name. I haven't tried this, so there could be unforeseen issues. It would probably become a translation problem as well (all clients would see the same text).

Locked automatically