It removed this part??
Index: db/item_vending.txt
===================================================================
--- db/item_vending.txt (revision 0)
+++ db/item_vending.txt (working copy)
@@ -0,0 +1,12 @@
+// 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
\ No newline at end of file
And why changed this part :
Old:
for( i = 0; i < count; i++ ) {
short amount = *(uint16*)(data + 4*i + 0);
short idx = *(uint16*)(data + 4*i + 2);
+ const char *item_name;
+ double rev = 0.;
idx -= 2;
+ /**
+ * Extended Vending system [Lilith]
+ **/
+ if(battle_config.ex_vending_info){
+ item_name = itemdb_jname(vsd->status.cart[idx].nameid);
+ rev = ((double)vsd->vending[vend_list[i]].value * (double)amount);
+ }
+
// vending item
pc_additem(sd, &vsd->status.cart[idx], amount, LOG_TYPE_VENDING);
vsd->vending[vend_list[i]].amount -= amount;
@@ -252,11 +346,20 @@
//print buyer's name
if( battle_config.buyer_name ) {
char temp[256];
- sprintf(temp, msg_txt(sd,265), sd->status.name);
+ if(battle_config.ex_vending_info) // Extended Vending system [Lilith]
+ sprintf(temp, msg_txt(sd,1597), sd->status.name, item_name, amount, (int)(rev -= rev * (battle_config.vending_tax/10000.)), vsd->vend_loot?itemdb_jname(vsd->vend_loot):"Zeny");
+ else
+ sprintf(temp, msg_txt(sd,265), sd->status.name);
clif_disp_onlyself(vsd,temp,strlen(temp));
}
}
to new:
for( i = 0; i < count; i++ ) {
short amount = *(uint16*)(data + 4*i + 0);
@@ -250,11 +337,23 @@
//print buyer's name
if( battle_config.buyer_name ) {
char temp[256];
- sprintf(temp, msg_txt(sd,265), sd->status.name);
+ if(battle_config.ex_vending_info) {// Extended Vending system [Lilith]
+ const char *item_name = itemdb_jname(vsd->status.cart[idx].nameid);
+ double rev = ((double)vsd->vending[vend_list[i]].value * (double)amount);
+
+ sprintf(temp, msg_txt(sd,1597), sd->status.name, item_name, amount, (int)(rev -= rev * (battle_config.vending_tax/10000.)), vsd->vend_loot?itemdb_jname(vsd->vend_loot):"Zeny");
+ } else
+ sprintf(temp, msg_txt(sd,265), sd->status.name);
clif_disp_onlyself(vsd,temp,strlen(temp));
}
}
should I use the new one? or the old one is okay(well) to use?
What is different?