Extended Vending System v1.8.1

Dastgir

Core Developer
Messages
3,805
Points
0
Discord
Dastgir#1460
IRC Nickname
Dastgir
Github
dastgirp
Emulator
Client Version
2019-02-28 RE
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

 
Last edited by a moderator:
Ahhh... This should be ported into a Plugin! (If possible...)
default_biggrin.png


 
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

 
I will check it once I get home. And update the source.

 
Up~ 
default_tongue.png


 
Last edited by a moderator:
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

Code:
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 
 
Last edited by a moderator:
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);
 

 
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.

 
Back
Top