Jump to content

Extended Vending System [1.8]


Lilith

Recommended Posts


  • Group:  Members
  • Topic Count:  90
  • Topics Per Day:  0.02
  • Content Count:  361
  • Reputation:   18
  • Joined:  01/09/13
  • Last Seen:  

 

@suyothegreat

Another Scene, 
Char 1 Sells Banana for 1 cash
Char 2 buy the banana
on the side of Char 1
on the Chatbox says; Revenue from "Char2" is: 0 but the item is sold and cash is reduce from char 2

what would be the possible problem for this ? 

 

Tax

 

Kadze already fix that.

 

 

in vending.c

 

rewrite

 

 



pc_payzeny(sd, (int)z, LOG_TYPE_VENDING, vsd);
if( battle_config.vending_tax )
z -= z * (battle_config.vending_tax/10000.);
pc_getzeny(vsd, (int)z, LOG_TYPE_VENDING, sd);
 

to 

else
{
pc_payzeny(sd, (int)z, LOG_TYPE_VENDING, vsd);
if( battle_config.vending_tax )
z -= z * (battle_config.vending_tax/10000.);
pc_getzeny(vsd, (int)z, LOG_TYPE_VENDING, sd);
}

 

 

Fix for 1.8.3

-Added new rev 17288

-Fix Tax Credit to @kadze

 

[Note]

Always have a backup and use first on test server.

 

attachicon.gifExtendedVendingSystem_1.8.3.patch

Thanks You ROCK ! Solid2005

@Soild2005 would you please update this to 17433 SVN ?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  51
  • Reputation:   2
  • Joined:  02/18/12
  • Last Seen:  

It works on my ~ :)

Link to comment
Share on other sites

  • 3 weeks later...

  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  187
  • Reputation:   7
  • Joined:  09/04/12
  • Last Seen:  

Add Latest rAthena 17433.

why not use this part of code  to fix the bug?

 

else

{

pc_payzeny(sd, (int)z, LOG_TYPE_VENDING, vsd);

if( battle_config.vending_tax )

z -= z * (battle_config.vending_tax/10000.);

pc_getzeny(vsd, (int)z, LOG_TYPE_VENDING, sd);

}

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  34
  • Reputation:   1
  • Joined:  06/14/12
  • Last Seen:  

Please update to r17362. Thank you!

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  20
  • Topics Per Day:  0.00
  • Content Count:  145
  • Reputation:   15
  • Joined:  01/06/12
  • Last Seen:  

Add new rAthena revision 17373.

Backup your server before apply this.

ExtendedVendingSystem_1.8.5.patch

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  20
  • Topics Per Day:  0.00
  • Content Count:  74
  • Reputation:   1
  • Joined:  12/31/11
  • Last Seen:  

Greetings to all, but will not have a patch for hercules because I really like this system and I have rathena already and would like for the 11950 version of hercules.

 

PD: If there is no or no material for this emulator work well thanks for the EVS.

 

PD2: Google tranlator XD

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  68
  • Topics Per Day:  0.02
  • Content Count:  436
  • Reputation:   31
  • Joined:  02/19/12
  • Last Seen:  

v e n d i n g . c : I n f u n c t i o n ' v e n d i n g _ p u r c h a s e r e q ' : v e n d i n g . c : 2 6 7 : w a r n i n g : ' i t e m_ n a me ' ma y b e u s e d u n i n i t i a l i z e d i n t h i s f u n c t i o

how to fix thisz pls help thanks

Link to comment
Share on other sites

  • 4 weeks later...

  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  20
  • Reputation:   0
  • Joined:  12/01/12
  • Last Seen:  

I almost follow the guides and read until page 11. And then, I got this error

 td7d.png

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  20
  • Topics Per Day:  0.00
  • Content Count:  145
  • Reputation:   15
  • Joined:  01/06/12
  • Last Seen:  

Add new rAthena revision 17420.

Backup your server before apply this.

ExtendedVendingSystem_1.8.6.patch

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  15
  • Topics Per Day:  0.00
  • Content Count:  318
  • Reputation:   13
  • Joined:  11/21/11
  • Last Seen:  

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  29
  • Topics Per Day:  0.01
  • Content Count:  566
  • Reputation:   34
  • Joined:  11/17/11
  • Last Seen:  

Super thanks @solid2005 ! <3 

 

/no1

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  37
  • Reputation:   1
  • Joined:  06/26/13
  • Last Seen:  

This is an exellent work, but its works with revision 17425?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  20
  • Topics Per Day:  0.00
  • Content Count:  145
  • Reputation:   15
  • Joined:  01/06/12
  • Last Seen:  

Add new rAthena revision 17425.


Backup your server before apply this.

 

ExtendedVendingSystem_1.8.7.patch

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  55
  • Topics Per Day:  0.01
  • Content Count:  216
  • Reputation:   9
  • Joined:  07/12/12
  • Last Seen:  

Lilith , i have a many errors in idathena svn,

can you help me?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  1
  • Reputation:   0
  • Joined:  07/25/13
  • Last Seen:  

for the revision 17435 exist  patch?

Link to comment
Share on other sites

  • 2 weeks later...

  • Group:  Members
  • Topic Count:  56
  • Topics Per Day:  0.01
  • Content Count:  224
  • Reputation:   4
  • Joined:  02/09/12
  • Last Seen:  

On my latest svn it's patch successfully but when i run the server there are warning that say unknown settings extended_vending in conf/battle/deature.conf

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  84
  • Topics Per Day:  0.02
  • Content Count:  550
  • Reputation:   9
  • Joined:  11/06/12
  • Last Seen:  

Having a problem after i apply the diff..

i am having this warning though nothing happens in my server.. but still the Warning upon compilation distracts me

 

here is the warning:

Warning	1	warning C4305: 'function' : truncation from 'int' to 'char'	D:\Gaming\revision17049\src\map\itemdb.c	1287	1	map-server_sql (Visual Studio 2010)
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  49
  • Reputation:   1
  • Joined:  08/03/13
  • Last Seen:  

hi!

 

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

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


idnum2itemresnametable.txt

30000#Zeny#
30001#Cash#


>>>

30000#±ÝÈ#
30001#¹Ì½º¸±È­#



Enjoy.

New:
rAthena only: attachicon.gifExtendedVendingSystem_1.8.1.patch
attachicon.gifExtendedVendingSystem_1.8.patch

Old:

 

HI! i have downloaded your extendedvendingsystem 1.8.1patch, will this resolve my issue?

i dont know where to put this file and the problem that im having is i cant VEND, when i try to use skill and put name the game crashes, i hope you can help me thanks!

im using rathena as server 20130703 as client.

 

can you please tell me where to put the file and what should be the name of the file thanks!

Edited by euliesces
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  15
  • Topics Per Day:  0.00
  • Content Count:  318
  • Reputation:   13
  • Joined:  11/21/11
  • Last Seen:  

no new patch ?  :(

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  28
  • Topics Per Day:  0.01
  • Content Count:  153
  • Reputation:   14
  • Joined:  07/07/12
  • Last Seen:  

How to fix sale of costume equipment?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  19
  • Reputation:   0
  • Joined:  06/29/13
  • Last Seen:  

any patch for 17459?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  19
  • Reputation:   0
  • Joined:  06/29/13
  • Last Seen:  

thanks sir its working

Link to comment
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.   Paste as plain text instead

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