Extended Vending System UPDATED rev14395! by Lilith

sry 4 my badly english, but maybe anyone can do it this modification -> plugin? troubles with revisions

 
I think most of its functionality was already added to our emulator's core, rendering this release useless.

And I remember this having been converted to a plugin. Since I'm on cellphone and can't go check, could you please take a glance on it in case you actually want this?

 
I think most of its functionality was already added to our emulator's core, rendering this release useless.

And I remember this having been converted to a plugin. Since I'm on cellphone and can't go check, could you please take a glance on it in case you actually want this?
This actually is not converted to plugin yet, 

 
Lilith said:
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
attachicon.gif
5.PNG

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

 

attachicon.gif
2.PNG

Version 1.8 preview:

attachicon.gif
3.PNG
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#¹Ì½º¸±È­#
Ragexe 2013 ( haven't tested it with Ragexe 2012 )

System/Iteminfo.lub

or

System/Iteminfo.lua

  [30000] = {    unidentifiedDisplayName = "Zeny",    unidentifiedResourceName = "µ¿È­",    unidentifiedDescriptionName = {    "Unknown item requiring Appraisal. Can be identified by using a Magnifier.",    },    identifiedDisplayName = "Zeny",    identifiedResourceName = "µ¿È­",    identifiedDescriptionName = {    },    slotCount = 1,    ClassNum = 1  },  [30001] = {    unidentifiedDisplayName = "Cash",    unidentifiedResourceName = "¹Ì½º¸±È­",    unidentifiedDescriptionName = {    "Unknown item requiring Appraisal. Can be identified by using a Magnifier.",    },    identifiedDisplayName = "Cash",    identifiedResourceName = "¹Ì½º¸±È­",    identifiedDescriptionName = {    },    slotCount = 1,    ClassNum = 1  },
Update:

item_db2.txt should be:

{  Id: 30000  AegisName: "Zeny"  Name: "Zeny"  Type: 3  Sell: 10  Weight: 10},{  Id: 30001  AegisName: "Cash"  Name: "Cash"  Type: 3  Sell: 10  Weight: 10},
Creator: Lilith

Modified by: dastgirpojee and quesoph

*Warning: It will not work with auto trade persistency.

Hercules Rev 14041.

attachicon.gif
Extended Vending System Hercules Rev 14041.patch
sir is this ok for revision 14359M??

 
I think most of its functionality was already added to our emulator's core, rendering this release useless.

And I remember this having been converted to a plugin. Since I'm on cellphone and can't go check, could you please take a glance on it in case you actually want this?
This actually is not converted to plugin yet, 
please convert it
default_wink.png


 
Hi,

Can someone update this. the red color. the item_vending.txt not working.

Thank you Cheers

src/map/itemdb.c

itemdb->destroy_item_data = destroy_item_data;
itemdb->final_sub = itemdb_final_sub;
itemdb->clear = itemdb_clear;
itemdb->id2combo = itemdb_id2combo;
sv->readdb(map->db_path, "item_vending.txt", ',', 1, 1, ARRAYLENGTH(item_vend), &itemdb_read_vending);
 
 
ossi0110 gave me this itemdb->itemdb_read_vending = itemdb_read_vending;
and then i got this on compiling : 

itemdb.c: In function 'itemdb_defaults':

itemdb.c:2358: error: 'struct itemdb_interface' has no member named 'itemdb_read_vending'
 
 
 
 
I can't find this on src/map/clif.h 
Code:
    itemdb_read_combos();	 itemdb_read_itemgroup();  sv->readdb(db_path, "item_vending.txt", ',', 1, 1, ARRAYLENGTH(item_vend), &itemdb_read_vending); // Extended Vending system [Lilith]	 sv->readdb(db_path, "item_avail.txt",         ',', 2, 2, -1, &itemdb_read_itemavail);	 sv->readdb(db_path, DBPATH"item_trade.txt",   ',', 3, 3, -1, &itemdb_read_itemtrade);	 sv->readdb(db_path, "item_delay.txt",         ',', 2, 2, -1, &itemdb_read_itemdelay); 
 
 
 
any fix on this ? thanks really appreciate it.
 
Last edited by a moderator:
Hi,

Fresh Hercules,

i got this while compiling.

vending.c: In function 'vending_purchasereq':vending.c:256: warning: 'item_name' may be used uninitialized in this function 


Edit : It's working now. thanks.
 
Last edited by a moderator:
item_vend undeclared identifier.

Plz need halp.


int item_vend dont halp me ;(

 
Last edited by a moderator:
I got disconnected when I try this in 2012-04-10aRagexe.

 
Last edited by a moderator:
this patch make Extended Vending System to support @AT vendor
but only for those who had already patched 14935.patch
 
 
 @at support.patch
 

 run the below sql command to update your autotrade_merchants table

Code:
ALTER TABLE `autotrade_merchants` ADD COLUMN `currency_id` smallint(6) NOT NULL DEFAULT '0' AFTER `title`;
 

Attachments

Last edited by a moderator:
this patch make Extended Vending System to support @AT vendor

but only for those who had already patched 14935.patch

 
attachicon.gif
@at support.patch

 run the below sql command to update your autotrade_merchants table

ALTER TABLE `autotrade_merchants` ADD COLUMN `currency_id` smallint(6) NOT NULL DEFAULT '0' AFTER `title`;
hy Angel about the zeny & cash issue where server think its as item can you reproduce it ?

 
this patch make Extended Vending System to support @AT vendor

but only for those who had already patched 14935.patch

 
attachicon.gif
@at support.patch

 run the below sql command to update your autotrade_merchants table

ALTER TABLE `autotrade_merchants` ADD COLUMN `currency_id` smallint(6) NOT NULL DEFAULT '0' AFTER `title`;
hy Angel about the zeny & cash issue where server think its as item can you reproduce it ?
I just change Aegis name 'Zeny'  to  'IZeny' and  'Cash' to 'ICash' ,I dont get any warning

Code:
{    Id: 30000    AegisName: "IZeny"    Name: "金錢"    Type: 3    Sell: 0    Weight: 1},{    Id: 30001    AegisName: "ICash"    Name: "商城點數"    Type: 3    Sell: 0    Weight: 1},
 
Last edited by a moderator:
Back
Top