Automated Vending Machine
What is it?
The Automated Vending Machine is a C++ Gossip Script for Hearthstone / Aspire.
What does it do?
A player enters an item NAME or ID, and the NPC opens up a vendor window with all items matching the NAME or ID entered.
Meant for Funservers, AVM makes a great addition to ANY mall!
The Automated Vending Machine is highly customizable.
There is a configuration section at the head of the script.
You can prevent:
Quest items
Item sets
Free Items
Conjured Items
From being purchased, and you can even set a Max Item Quality (Default is Epic).
Screenshots:
The Files:
Automated_Vendor.cpp
Setup.cpp
Setup.h:
SQL FilesCode:void SetupVendorScript(ScriptMgr * mgr);
Enjoy!
Feedback is definitely welcome, and I'd be happy to edit the script to add features.
Latest Version:
Updated both versions (merged the two, with a configuration option), as well as the SQL file.
Added a "banned items" table.
To prevent an item from being bought through the Vending Machine, simply run this query in your database editor:
Latest version is tested and working, after many hours of debugging.Code:Insert into avm_banned_items values ('ITEM_ID')