If you are looking for V.C.N






Log in

I forgot my password

Latest topics
» 2.4.3 oldfags still here? whats up?
Sun 14 May 2017, 10:04 pm by hambrgrhelpr

» An Thread dedicated to Old School 2.4.3 and all its memories
Sat 19 Mar 2016, 8:56 am by Shifthappens

» Hey sexy Gentlemen and Ladies
Thu 24 Jan 2013, 11:21 am by Suspect2

» yoo
Mon 13 Aug 2012, 1:34 pm by Casp'

» hay gm
Thu 09 Aug 2012, 11:47 pm by sevenhuehuelol

» Ques for GM
Thu 09 Aug 2012, 11:43 pm by sevenhuehuelol

» YES IT IS I
Mon 30 Jul 2012, 11:21 am by Casp'

» oldfags asemble
Tue 03 Jul 2012, 3:19 pm by -BoomBox

» Oh hai...
Tue 19 Jun 2012, 3:55 pm by Queshi

» hey windir bro guess what
Tue 19 Jun 2012, 3:55 pm by Queshi

» Downpatch from 3.0.8 to 3.0?
Mon 20 Jun 2011, 12:54 pm by windir2

» Mouthless asking me for RESS! LOOL
Thu 26 May 2011, 5:29 pm by Feel

» Need an unstuck
Tue 24 Nov 2009, 2:48 am by ombladon123

» Idea for Arena Rating and Arena Rewards
Mon 23 Nov 2009, 7:58 pm by Raddau

» shammy bug
Mon 23 Nov 2009, 1:35 pm by stomstrikes

» Gentlemen?
Mon 23 Nov 2009, 1:33 pm by stomstrikes

» Rous aka Zanukan attention please
Mon 23 Nov 2009, 3:36 am by ryonis

» I cant get my tokens when i vote.
Sun 22 Nov 2009, 1:26 pm by demonolator12345

» Hi again --- imweedy
Sun 22 Nov 2009, 12:04 am by imweedy

» pizzabox2 whats ur name?
Sat 21 Nov 2009, 1:12 pm by yingyangi

Who is online?
In total there are 2 users online :: 0 Registered, 0 Hidden and 2 Guests :: 1 Bot

None

[ View the whole list ]


Most users ever online was 395 on Sun 18 May 2008, 12:28 pm
Top posters
ServerBot (7646)
 
Swifteh (7171)
 
Charlie Face (4524)
 
Lisyhalath (3900)
 
Scruffay (3896)
 
kitch (3536)
 
Min0rity (3192)
 
Ubberpownage88 (3023)
 
bacongrease2 (2761)
 
Juicy (2649)
 

RSS feeds


Yahoo! 
MSN 
AOL 
Netvibes 
Bloglines 


Keywords


[C++] Automated Vendor Machine

Go down

[C++] Automated Vendor Machine

Post by Zanukan on Sat 07 Nov 2009, 2:49 pm

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:

http://pastebin.com/f31b84490"]Automated_Vendor.cpp
http://pastebin.com/f9f3005e
Setup.h:
Code:

void SetupVendorScript(ScriptMgr * mgr);


http://pastebin.com/f59c7a452
SQL Files

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:
Code:
Insert into avm_banned_items values ('ITEM_ID')



_________________

avatar
Zanukan
WWemu Expert
WWemu Expert

Number of posts : 854
Age : 39
Joined : 2007-12-11
Points : 12151
Reputation : 3197

http://www.vcnserver.net

Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum