Jump to content
Dastgir

Extended Vending System v1.8.1

Recommended Posts

File Name: Extended Vending System v1.8.1
File Submitter: dastgirpojee
File Submitted: 16 May 2013
File Category: Source Modifications

Original topic and code here: http://ea-support.ru/index.php?/topic/525-vending-za-ljuboi-lut/page__p__5382"]link[/url]
Idea: http://www.eathena.ws/board/index.php?showtopic=274111"]link[/url]
rAthena: http://rathena.org/board/topic/60817-extended-vending-system-18/"]link[/url]

When you use the skill vending there would be a menu that will pop up and you will choose what type of vending system do you like.
• Zeny - You will purchase items using zeny..
• Cashpoints - purchase items using cashpoints
• Item(your desired item) - purchase item using your desired items..(Example: TCG-7227)

You can enable or disable the cash / item in file db/item_vending.txt


Vending title can be looks like: "[ITEM_ID] name"


Modify your client data files:

idnum2itemdisplaynametable.txt

30000#Zeny#
30001#Cash#

idnum2itemresnametable.txt

30000#±ÝÈ#
30001#¹Ì½º¸±È­#

Enjoy.

New:
v1.8.1:
08 April 2013:
03 May 2013:
15 May 2013:

Created by Lilith,
Modified by Dastgir

Click here to download this file

Share this post


Link to post
Share on other sites
itemdb.c: In function 'itemdb_read':itemdb.c:1327: error: 'item_vending' undeclared (first use in this function)itemdb.c:1327: error: (Each undeclared identifier is reported only onceitemdb.c:1327: error: for each function it appears in.)itemdb.c:1327: error: 'itemdb_read_vending' undeclared (first use in this function)

I got this error

Share this post


Link to post
Share on other sites

hi dasgit any update on this? its not working on latest rev.

 

Its working man, just not as expected. I think its not reading the battle confs, so you have to put the config variables in the src/plugin file.

 

/src/plugins/ExtendedVending.c

int bc_extended_vending = 1; // Enable Extended Vending System
int bc_show_item_vending = 1; // Show Currency Name in the Pub of Vending
int bc_ex_vending_info = 0; // Show Information about buying
int bc_item_zeny = 30002; // ItemID for Zeny, 0 to disable
int bc_item_cash = 0; // ItemID for CashPoints, 0 to disable 
Edited by tedexx

Share this post


Link to post
Share on other sites

hello did you make it work on latest revision of hercules? i am having errors 

this line

    sv->readdb(db_path, "item_vending.txt", ',', 1, 1, ARRAYLENGTH(item_vend), &itemdb_read_vending); // Extended Vending system [Lilith]

and this

                 item = itemdb_exists(battle_config.item_zeny?battle_config.item_zeny:battle_config.item_cash?battle_config.item_cash:item_vend[0].itemid);
 

Share this post


Link to post
Share on other sites

Do I need an updated hexed to make this work?
Well I manualy patch the diff on the current version and could't see any diference on the game.
No errors on the compiler either on the console.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.