Popular Post Lilith Posted March 26, 2012 Popular Post Posted March 26, 2012 (edited) Original topic and code here: link Idea: link 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" Version 1.8 preview: Changelog Version 1.4: Added support file 'item_vending.txt' for vending currency items ( Suggest by V e r T i g O ) Some fixes @reloaditemdb command will uprate item_vending.txt Max item in item_vending.txt is 98 ( default MAX_INVENTORY-2 ) 1 for zeny, 2 for cash, 98 for your items. Version 1.5: Now you can enable or disable Zeny/Cash in item_vending.txt. Just add/remove ID 30000 for Zeny or ID 30001 fo Cash Points Removed battle_config.enable_cash_vending Max items returned to MAX_INVENTORY Version 1.6: Now you can turn on or turn off Extended Vending System ( see conf/battle/items.conf ) Now, if your file item_vending.txt contains only 1 item the Select Window will be skipped Version 1.7: If file item_vending.txt is empty currency will be Zeny by default Added two configs to file conf/battle/items.conf Version 1.8: Added option for more info about buying ( see version 1.8 preview) Added option for add/remove ITEM_ID name from vending board ( Suggest by Pneuma ) All settings moved from conf/battle/items.conf to conf/battle/feature.conf conf/battle/feature.conf // Extended Vending System [Lilith]// Enable or disable extended vending system? (Note 1) extended_vending: yes // Show currency's name in vending board? (Note 1) show_item_vending: yes // Show more info about buying? (Note 1) ex_vending_info: yes // Item ID for Zeny. Set to 0 if you don't want use Zeny. item_zeny: 30000 // Item ID for Cash. Set to 0 if you don't want use Cash. item_cash: 30001 db/item_vending.txt // Specific items for Vending System// Format: ItemID // Max items is equal MAX_INVENTORY ( 100 by default ) // TCG Card 7227 // Mithril Coin 674 // Silver Coin 675 // Bronze Coin 673 Modify your client data files: idnum2itemdisplaynametable.txt 30000#Zeny#30001#Cash# idnum2itemresnametable.txt 30000#±ÝÈ#30001#¹Ì½º¸±È# Enjoy. New: rAthena only: ExtendedVendingSystem_1.8.1.patch ExtendedVendingSystem_1.8.patch Old: ExtendedVendingSystem_1.7.1.patch ExtendedVendingSystem_1.7.2.patch ExtendedVendingSystem_1.7_3CeAM.patch ExtendedVendingSystem_1.7_eA.patch Edited May 5, 2012 by Lilith 24 Quote
Tenshi Posted March 26, 2012 Posted March 26, 2012 Sorry, this is the first time i'm patching a released patch from rAthena, so I can say I'm a newbie in this topic :x I've patched your patch with turtoise svn (folder: server), done. And I've added the lines in items.conf and the other two files.. Also done. Then I've compiled my server and now I get a lot of errors x.x Also my map-server doesn't want to compile, what do I do wrong? >.< Quote
BuLaLaKaW Posted March 26, 2012 Posted March 26, 2012 wow this is the first time i see this patch, very very nice I want to use a variety of exchange items // Item ID, which will be visible in the select list of available currencies. 0 = disable choice of the item // Note: Do not use equips and weapons item_id_vending: 7227 how can i add more item_id_vending ? I like to use mithril coin, gold coin, tcg, pod and gold Quote
Drakkus Posted March 26, 2012 Posted March 26, 2012 (edited) Does, it work? seems when i RENT a cart it doensßt appear anymore? Guys have you got any problem? Preview: Im using rA Trunk 15799 Edited March 26, 2012 by Mindless Quote
manabeast Posted March 27, 2012 Posted March 27, 2012 @Mindless = if show unknown apple mean your client side setting wrong (lua file /idnum/resname those...) or you dun have that item sprites. nice .... have time i also want to try install this =P ... but hear the first post i think i backup first. Quote
Lilith Posted March 27, 2012 Author Posted March 27, 2012 (edited) Tenshi, dont know what errors you get. please give screenshot. V e r T i g O, sorry, but this version is intended only for 1 item Mindless, you forget modify idnum2itemdisplaynametable.txt and idnum2itemresnametable.txt in your client data folder. idnum2itemdisplaynametable.txt 30000#Zeny#30001#Cash# idnum2itemresnametable.txt 30000#±ЭИ#30001#№МЅєё±И# Edited March 27, 2012 by Lilith Quote
PapaZola Posted March 27, 2012 Posted March 27, 2012 yeah i also got this error and my idnumresnametable also got this problem no font found and bla2 Quote
Lilith Posted March 27, 2012 Author Posted March 27, 2012 Updated to v.1.4 Now you can add your currency items in file item_vending.txt PapaZola, try this: idnum2itemresnametable.txt 30000#금화#30001#미스릴화# Quote
Syouji Posted March 27, 2012 Posted March 27, 2012 This is a very useful system. For the first time players can choose how they want to sell their goods with multiple choices of currency/items. Quote
ngek202 Posted March 28, 2012 Posted March 28, 2012 very nice Idea Lilith Thanks for sharing a question though does it tell how much he gained if someone bought an item from he's/her store?(well this would not matter if @at command is available). Quote
ngek202 Posted March 28, 2012 Posted March 28, 2012 when that happens, add the patch manually.. probably you have a modified line that covers the line where the patch needed to be placed. 1 Quote
KaitoKid Posted March 28, 2012 Posted March 28, 2012 Wow! Nice vending system you have here! Got to try it! Quote
Lilith Posted March 28, 2012 Author Posted March 28, 2012 (edited) why i can't patch ? look image below Your server is 3CeAM, but patch for rAthena. Some notes: @reloaditemdb command will uprate item_vending.txt Max item in item_vending.txt is 98 ( default MAX_INVENTORY-2 ) 1 = zeny, 2 = cash. 98 fot your items. Edited March 28, 2012 by Lilith Quote
Reducto Posted March 28, 2012 Posted March 28, 2012 Nice release Lilith. But its not compatible with my SVN(eAmod). Quote
Lilith Posted March 28, 2012 Author Posted March 28, 2012 Nice release Lilith. But its not compatible with my SVN(eAmod). Why? Try add it manually... Quote
Reducto Posted March 28, 2012 Posted March 28, 2012 Yeah, Tried it. But, I failed. eAmod have a different SRC CODE. Quote
Erazer Posted March 29, 2012 Posted March 29, 2012 Yeah, Tried it. But, I failed. eAmod have a different SRC CODE. Here's a simple solution...... Stop using buggy source code and move out to rAthena. Quote
manabeast Posted March 29, 2012 Posted March 29, 2012 ngek202 @ thx. but how to manual patch? Your server is 3CeAM, but patch for rAthena. what should i do? do as ngek202 tell? 1.item_vending.txt 2.conf/battle/items.conf 3.idnum2itemdisplaynametable.txt 4.idnum2itemresnametable.txt only this 4? manual do? Quote
Lilith Posted March 31, 2012 Author Posted March 31, 2012 Updated to version 1.5 Some changes. Version 1.5: Now you can enable or disable Zeny/Cash in item_vending.txt. Just add/remove ID 30000 for Zeny or ID 30001 fo Cash Points Remove battle_config.enable_cash_vending Max items returned to MAX_INVENTORY Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.