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
  On 7/11/2014 at 2:58 AM, jaBote said:

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
  On 7/17/2013 at 11:10 AM, quesoph said:

 

  On 3/26/2012 at 6:15 PM, Lilith said:

 

Original topic and code here: link

Idea: link

 

  Quote

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

  Reveal hidden contents

Modify your client data files:

 

idnum2itemdisplaynametable.txt

 

  Reveal hidden contents

idnum2itemresnametable.txt

 

  Reveal hidden contents

Ragexe 2013 ( haven't tested it with Ragexe 2012 )

System/Iteminfo.lub

or

System/Iteminfo.lua

 

  Reveal hidden contents

 

Update:

item_db2.txt should be:

 

  Reveal hidden contents

 

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
  On 7/11/2014 at 4:17 AM, Dastgir said:

 

  On 7/11/2014 at 2:58 AM, jaBote said:

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
 

 

  Reveal hidden contents

 

Edited by Angelmelody

Share this post


Link to post
Share on other sites
  On 9/22/2014 at 3:05 PM, Angelmelody said:

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

 

 

  Reveal hidden contents

 

 

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
  On 9/23/2014 at 1:18 AM, Litro said:

 

  On 9/22/2014 at 3:05 PM, Angelmelody said:

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

 

 

  Reveal hidden contents

 

 

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
  On 9/23/2014 at 10:04 AM, Litro said:

@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

 

 

  Reveal hidden contents

 

Share this post


Link to post
Share on other sites
  On 10/7/2014 at 3:32 AM, Snaehild said:

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
  On 10/7/2014 at 4:45 AM, Dastgir said:

 

  On 10/7/2014 at 3:32 AM, Snaehild said:

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)

 

Thanks!!!!

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.


×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.