Jump to content
quesoph

Extended Vending System UPDATED rev14395! by Lilith

Recommended Posts

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?

Share this post


Link to post
Share on other sites

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, 

Share this post


Link to post
Share on other sites

 

 

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.gif5.PNG

 

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

 

attachicon.gif2.PNG

 

Version 1.8 preview:

attachicon.gif3.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.gifExtended Vending System Hercules Rev 14041.patch

 

sir is this ok for revision 14359M??

Share this post


Link to post
Share on other sites

 

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 ;)

Share this post


Link to post
Share on other sites

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 

 

    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.
Edited by Meigan

Share this post


Link to post
Share on other sites

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.

Edited by Meigan

Share this post


Link to post
Share on other sites

item_vend undeclared identifier.

 

Plz need halp.

 


 

int item_vend dont halp me ;(

Edited by jaBote
Merged double post

Share this post


Link to post
Share on other sites

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

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

 

 

 

Edited by Angelmelody

Share this post


Link to post
Share on other sites

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 ?

Share this post


Link to post
Share on other sites

 

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

 

{    Id: 30000    AegisName: "IZeny"    Name: "金錢"    Type: 3    Sell: 0    Weight: 1},{    Id: 30001    AegisName: "ICash"    Name: "商城點數"    Type: 3    Sell: 0    Weight: 1},
Edited by Angelmelody

Share this post


Link to post
Share on other sites

@Angelmelody it isn't the error but if i open shop with zeny and vend aple with price 1.000 z even i have 1 Billion zeny

I tested  opening shop with Zeny but dont get any error and the dealing money works as my intended

 

 

 

before purchase

 

 

6lcvmCz5.png

 

 

 

done deal

 

 

qAc93nQq.png

 

 

 

 

 

 

Share this post


Link to post
Share on other sites

Plugin support please? :)

Plugin seems to be possible for it now (have few bugs on my plugin, that I would be able to solve in my upcoming days)

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.