Jump to content

Extended Vending System [1.8]


Lilith

Recommended Posts


  • Group:  Members
  • Topic Count:  318
  • Topics Per Day:  0.07
  • Content Count:  925
  • Reputation:   32
  • Joined:  12/05/11
  • Last Seen:  

can i have for rA 17442?



bump

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.00
  • Content Count:  56
  • Reputation:   4
  • Joined:  06/20/13
  • Last Seen:  

can i have for rA 17442?

Link to comment
Share on other sites

  • 2 weeks later...

  • Group:  Members
  • Topic Count:  15
  • Topics Per Day:  0.00
  • Content Count:  38
  • Reputation:   1
  • Joined:  07/27/12
  • Last Seen:  

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#

Enjoy.

New:

rAthena only: attachicon.gifExtendedVendingSystem_1.8.1.patch

attachicon.gifExtendedVendingSystem_1.8.patch

Old:

how do i patch it?

Link to comment
Share on other sites

  • 2 weeks later...

  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  4
  • Reputation:   0
  • Joined:  04/01/12
  • Last Seen:  

Add latest rAthena.

 

thereis newes patch ? for latest trunk ?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  19
  • Reputation:   0
  • Joined:  09/04/13
  • Last Seen:  

Add Latest rAthena revision.

Sorry for bumping i wanna know if this works on r17539? 

Edited by JLance
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  75
  • Reputation:   1
  • Joined:  04/14/13
  • Last Seen:  

I cant compile after patching. How come?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  151
  • Topics Per Day:  0.04
  • Content Count:  393
  • Reputation:   3
  • Joined:  09/16/13
  • Last Seen:  

how can add the item like tcg please full guide how can add

i use ExtendedVendingSystem_1.8.9.patch   is work now the problem is i dont know how can add the tcg and poring coin

Edited by Jemz Hamada
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:  

db/item_vending.txt


    
    

Quote

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  21
  • Topics Per Day:  0.01
  • Content Count:  49
  • Reputation:   1
  • Joined:  12/09/12
  • Last Seen:  

I'm can't patch cause i receive error "Rejected Patch Hunk for Skill.c/Skill.h". Help

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:  

lol you conflict some mod.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  140
  • Topics Per Day:  0.03
  • Content Count:  562
  • Reputation:   108
  • Joined:  10/05/12
  • Last Seen:  

any extended vending compatible with rev 17181?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  151
  • Topics Per Day:  0.04
  • Content Count:  393
  • Reputation:   3
  • Joined:  09/16/13
  • Last Seen:  

this is work to latest SVN  17689



i try there are many error i saw in files

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:  

Added git rev 11580.

 

Why git rev?

Because svn is outdated revision.

 

example of this.

 

// @autoloottype
1480: Item type not found.
1481: You're already autolooting this item type.
1482: Your autoloottype list has all item types. You can remove some items with @autoloottype -<type name or ID>.
1483: Autolooting item type: '%s' {%d}
1484: You're currently not autolooting this item type.
1485: Removed item type: '%s' {%d} from your autoloottype list.
1486: To add an item type to the list, use "@aloottype +<type name or ID>". To remove an item type, use "@aloottype -<type name or ID>".
1487: Type List: healing = 0, usable = 2, etc = 3, weapon = 4, armor = 5, card = 6, petegg = 7, petarmor = 8, ammo = 10
1488: "@aloottype reset" will clear your autoloottype list.
1489: Your autoloottype list is empty.
1490: Item types on your autoloottype list:
1491: Your autoloottype list has been reset.

git rev 11580 ExtendedVendingSystem_1.8.10.patch

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  151
  • Topics Per Day:  0.04
  • Content Count:  393
  • Reputation:   3
  • Joined:  09/16/13
  • Last Seen:  

this is work to Latest SVN

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  99
  • Topics Per Day:  0.02
  • Content Count:  623
  • Reputation:   94
  • Joined:  05/11/12
  • Last Seen:  

whenever someone purchases an item zeny, a discount is made in the amount that the seller will receive, how do I remove this function?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  140
  • Topics Per Day:  0.03
  • Content Count:  562
  • Reputation:   108
  • Joined:  10/05/12
  • Last Seen:  

17181

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:  

whenever someone purchases an item zeny, a discount is made in the amount that the seller will receive, how do I remove this function?

do mean tax?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  151
  • Topics Per Day:  0.04
  • Content Count:  393
  • Reputation:   3
  • Joined:  09/16/13
  • Last Seen:  

17689 this extending vending is not working to my server

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  140
  • Topics Per Day:  0.03
  • Content Count:  562
  • Reputation:   108
  • Joined:  10/05/12
  • Last Seen:  

I have issue when compiling in centos!

Visual c in my test server, same version is good, no warnings, no errors, everything is working properly!

d43c.png

 

 

but when doing the same, in my dedicated server, I got errors in this two lines, even using the same files in the same revision, thats weird

 

 

s0zz.png
those lines,  dont know wht to change here to fix it    REV 17181
 
            pc_paycash(sd,(int)z,0, LOG_TYPE_VENDING);
            pc_getcash(vsd,(int)z,0, LOG_TYPE_VENDING);
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  99
  • Topics Per Day:  0.02
  • Content Count:  623
  • Reputation:   94
  • Joined:  05/11/12
  • Last Seen:  

whenever someone purchases an item zeny, a discount is made in the amount that the seller will receive, how do I remove this function?

do mean tax?

 

how do I remove the taxes?

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:  

 

I have issue when compiling in centos!

Visual c in my test server, same version is good, no warnings, no errors, everything is working properly!

d43c.png

 

 

but when doing the same, in my dedicated server, I got errors in this two lines, even using the same files in the same revision, thats weird

 

 

s0zz.png
those lines,  dont know wht to change here to fix it    REV 17181
 
            pc_paycash(sd,(int)z,0, LOG_TYPE_VENDING);
            pc_getcash(vsd,(int)z,0, LOG_TYPE_VENDING);

 

try to add ,vsd on the last part.

        pc_paycash(sd,(int)z,0, LOG_TYPE_VENDING,sd);

            pc_getcash(vsd,(int)z,0, LOG_TYPE_VENDING,vsd);

Edited by solid2005
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  151
  • Topics Per Day:  0.04
  • Content Count:  393
  • Reputation:   3
  • Joined:  09/16/13
  • Last Seen:  

1.8.9 version?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  140
  • Topics Per Day:  0.03
  • Content Count:  562
  • Reputation:   108
  • Joined:  10/05/12
  • Last Seen:  

try to add ,vsd on the last part.

        pc_paycash(sd,(int)z,0, LOG_TYPE_VENDING,sd);

            pc_getcash(vsd,(int)z,0, LOG_TYPE_VENDING,vsd);

 

 

 

Same error, too many arguments.

this only happens in pay_cash and get_cash function and only happen if I compile, the up server, using Putty program

for some reason, sql its not making the object  vending.o

 

dprw.png
Edited by iraciz
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...