Jump to content

Extended Vending System [1.8]


Lilith

Recommended Posts


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

try to 

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

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

Edited by solid2005
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:  

Solved!

thank you so much for your support, this is perfect

everything is woring properly now!

 

82yz.png
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  7
  • Reputation:   4
  • Joined:  11/23/11
  • Last Seen:  

For the life of me i have no idea how to patch this in my own git branch with svn's patch so i manually edited my source and here's the patch for git based if anyone interested.

 

Current Head: 667f890c35f8fb04d73ac4b7f607269059ba4a16 (27 October 2013)

Revision: r17690?

Patch Version: 1.8.10

The patch: 0003-Added-Extended-Vending-System-by-Lilith.patch

Edited by bits
Link to comment
Share on other sites

  • 2 weeks later...

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

any one ??? this SCR files has not working

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  3
  • Reputation:   0
  • Joined:  08/21/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

30000#Zeny#

30001#Cash#

idnum2itemresnametable.txt

30000#±ÝÈ#

30001#¹Ì½º¸±È­#

Enjoy.

New:

rAthena only: attachicon.gifExtendedVendingSystem_1.8.1.patch

attachicon.gifExtendedVendingSystem_1.8.patch

Old:

 

 

Tengo Un Error con Clif.c 

\src\map\clif.c(15985): error C2143: error de sintaxis : falta ';' delante de 'tipo'
..\src\map\clif.c(15987): error C2143: error de sintaxis : falta ';' delante de 'tipo'
..\src\map\clif.c(15988): error C2143: error de sintaxis : falta ';' delante de 'tipo'
..\src\map\clif.c(15990): error C2065: 'sd' : identificador no declarado
..\src\map\clif.c(15992): error C2065: 'sd' : identificador no declarado
..\src\map\clif.c(15992): error C2223: el operando izquierdo de '->fd' debe señalar a struct/union
..\src\map\clif.c(15996): error C2065: 'd' : identificador no declarado
..\src\map\clif.c(15997): error C2065: 'd' : identificador no declarado
..\src\map\clif.c(16000): error C2065: 'd' : identificador no declarado
..\src\map\clif.c(16001): error C2065: 'd' : identificador no declarado
..\src\map\clif.c(16003): error C2065: 'c' : identificador no declarado
..\src\map\clif.c(16003): error C2065: 'd' : identificador no declarado
..\src\map\clif.c(16003): error C2065: 'i' : identificador no declarado
..\src\map\clif.c(16003): error C2065: 'i' : identificador no declarado
..\src\map\clif.c(16003): error C2065: 'i' : identificador no declarado
..\src\map\clif.c(16004): error C2065: 'item' : identificador no declarado
..\src\map\clif.c(16004): error C2065: 'i' : identificador no declarado
..\src\map\clif.c(16004): warning C4047: '=' : 'int' es distinto en los niveles de direccionamiento indirecto de 'item_data *'
..\src\map\clif.c(16004): warning C4047: '!=' : 'int' es distinto en los niveles de direccionamiento indirecto de 'void *'
..\src\map\clif.c(16005): error C2065: 'item' : identificador no declarado
..\src\map\clif.c(16005): error C2223: el operando izquierdo de '->nameid' debe señalar a struct/union
..\src\map\clif.c(16005): error C2065: 'item' : identificador no declarado
..\src\map\clif.c(16005): error C2223: el operando izquierdo de '->nameid' debe señalar a struct/union
..\src\map\clif.c(16006): error C2065: 'c' : identificador no declarado
..\src\map\clif.c(16006): error C2065: 'item' : identificador no declarado
..\src\map\clif.c(16006): error C2223: el operando izquierdo de '->nameid' debe señalar a struct/union
..\src\map\clif.c(16007): error C2065: 'c' : identificador no declarado
..\src\map\clif.c(16010): error C2065: 'c' : identificador no declarado
..\src\map\clif.c(16011): error C2065: 'sd' : identificador no declarado
..\src\map\clif.c(16011): error C2223: el operando izquierdo de '->menuskill_id' debe señalar a struct/union
..\src\map\clif.c(16012): error C2065: 'sd' : identificador no declarado
..\src\map\clif.c(16012): error C2223: el operando izquierdo de '->menuskill_val' debe señalar a struct/union
..\src\map\clif.c(16012): error C2065: 'skill_lv' : identificador no declarado
..\src\map\clif.c(16013): error C2065: 'c' : identificador no declarado
..\src\map\clif.c(16016): error C2065: 'sd' : identificador no declarado
..\src\map\clif.c(16016): warning C4047: 'función' : 'map_session_data *' es distinto en los niveles de direccionamiento indirecto de 'int'
..\src\map\clif.c(16016): warning C4024: 'clif_skill_fail' : tipos distintos para el parámetro formal y el parámetro real 1
..\src\map\clif.c(16017): warning C4098: 'clif_msgtable_num' : función 'void' que devuelve un valor
..\src\map\clif.c(16020): warning C4098: 'clif_msgtable_num' : función 'void' que devuelve un valor
 
Ayuda por favor como resolverlo???
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:  

This patch working on tortoise svn.

Fix  error centos.

Add version compatible 11682.

ExtendedVendingSystem_11682.patch

Edited by solid2005
  • Upvote 1
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:  

you have working files 100%  i use latest

 

This patch working on tortoise svn.

Fix  error centos.

Add version compatible 11682.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  3
  • Reputation:   0
  • Joined:  08/21/12
  • Last Seen:  

Tengo Un Pequeño Error ahora con la rAthena V. 17690 "0003-Added-Extended-Vending-System-by-Lilith" /omg

/wah

..\src\map\skill.c(6370): warning C4013: 'clif_vend' sin definir; se supone que extern devuelve como resultado int
..\src\map\skill.c(6377): warning C4013: 'clif_displaymessagecolor' sin definir; se supone que extern devuelve como resultado int
..\src\map\skill.c(6377): error C2065: 'VEND_COLOR' : identificador no declarado
..\src\map\skill.c(16150): error C2065: 'VEND_COLOR' : identificador no declarado /hum
 
...\src\map\vending.c(74): warning C4013: 'clif_displaymessagecolor' sin definir; se supone que extern devuelve como resultado int
..\src\map\vending.c(74): error C2065: 'VEND_COLOR' : identificador no declarado
..\src\map\vending.c(153): error C2065: 'VEND_COLOR' : identificador no declarado
..\src\map\vending.c(164): error C2065: 'VEND_COLOR' : identificador no declarado
..\src\map\vending.c(169): error C2065: 'VEND_COLOR' : identificador no declarado
..\src\map\vending.c(175): error C2065: 'VEND_COLOR' : identificador no declarado /hum

 

NO se que poner ay o como resolverlo que debo de hacer?? /sob

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:  

rAthena 17690 on svn already drop out.

the latest revision on git is 11688.

 

ExtendedVendingSystem_11688.patch.patch

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:  

you have Eathena working??

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:  

Tengo Un Pequeño Error ahora con la rAthena V. 17690 "0003-Added-Extended-Vending-System-by-Lilith" /omg

/wah

..\src\map\skill.c(6370): warning C4013: 'clif_vend' sin definir; se supone que extern devuelve como resultado int
..\src\map\skill.c(6377): warning C4013: 'clif_displaymessagecolor' sin definir; se supone que extern devuelve como resultado int
..\src\map\skill.c(6377): error C2065: 'VEND_COLOR' : identificador no declarado
..\src\map\skill.c(16150): error C2065: 'VEND_COLOR' : identificador no declarado /hum
 
...\src\map\vending.c(74): warning C4013: 'clif_displaymessagecolor' sin definir; se supone que extern devuelve como resultado int
..\src\map\vending.c(74): error C2065: 'VEND_COLOR' : identificador no declarado
..\src\map\vending.c(153): error C2065: 'VEND_COLOR' : identificador no declarado
..\src\map\vending.c(164): error C2065: 'VEND_COLOR' : identificador no declarado
..\src\map\vending.c(169): error C2065: 'VEND_COLOR' : identificador no declarado
..\src\map\vending.c(175): error C2065: 'VEND_COLOR' : identificador no declarado /hum

 

NO se que poner ay o como resolverlo que debo de hacer?? /sob

 

Estas usando un parche para una version muy nueva o muy vieja de emulador, tienes que chequear primero la version de tu emulador, con la version del parche del vending extended, este vending es par emulador rathena obvio, 

version 17690, que parche de vending estas metiendole?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  45
  • Reputation:   10
  • Joined:  09/14/12
  • Last Seen:  

Can i Request Extended Vending System For rAthena Latest 17694?

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 only update git version svn is out to date version.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  45
  • Reputation:   10
  • Joined:  09/14/12
  • Last Seen:  

Yeah i mean git version i think all latest rathena is git version
can i have updated exteded vending sytem?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  27
  • Topics Per Day:  0.01
  • Content Count:  120
  • Reputation:   3
  • Joined:  07/04/13
  • Last Seen:  

updates on  exteded vending sytem?

Link to comment
Share on other sites

  • 2 weeks later...

  • Group:  Members
  • Topic Count:  69
  • Topics Per Day:  0.02
  • Content Count:  200
  • Reputation:   1
  • Joined:  09/25/13
  • Last Seen:  

Is this working in latest rAthena ? rAthena17689 ?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  153
  • Topics Per Day:  0.04
  • Content Count:  567
  • Reputation:   18
  • Joined:  04/15/13
  • Last Seen:  

I got this error :( Im using the latest Revision now

1>..\src\map\vending.c(240): warning C4020: 'pc_paycash' : too many actual parameters
1>..\src\map\vending.c(241): warning C4020: 'pc_getcash' : too many actual parameters
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  141
  • Topics Per Day:  0.03
  • Content Count:  444
  • Reputation:   22
  • Joined:  06/18/12
  • Last Seen:  

I am using the latest rev of SVN. And I am currently using this one without error.

http://rathena.org/board/topic/60817-extended-vending-system-18/?p=199710

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  153
  • Topics Per Day:  0.04
  • Content Count:  567
  • Reputation:   18
  • Joined:  04/15/13
  • Last Seen:  

I am using the latest rev of SVN. And I am currently using this one without error.

http://rathena.org/board/topic/60817-extended-vending-system-18/?p=199710

Thanks! it works!

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:  

Fix compile error.

11764 rev svn patch.

 

ExtendedVendingSystem_11764.patch

Edited by solid2005
  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  27
  • Topics Per Day:  0.01
  • Content Count:  120
  • Reputation:   3
  • Joined:  07/04/13
  • Last Seen:  

 It Works.. got no error

Edited by Mau
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:  

please post SVN rathena

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.00
  • Content Count:  80
  • Reputation:   1
  • Joined:  09/13/13
  • Last Seen:  

Guys,

 

when i'm trying to use the Zeny and Cash for vending

 

the vend says " Sales carrie out : Zeny

 

when i try to buy it says

"you don't have enough items" *i guess its detecting that zeny and cash i an item*

 

but i have zeny in my char

 

i'm using item_db2 on sql

'30000', 'Zeny', 'Zeny', '3', '0', '10', '10', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', NULL, NULL, NULL
'30001', 'Cash', 'Cash', '3', '0', '10', '10', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', NULL, NULL, NULL

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  141
  • Topics Per Day:  0.03
  • Content Count:  444
  • Reputation:   22
  • Joined:  06/18/12
  • Last Seen:  

Guys,

 

when i'm trying to use the Zeny and Cash for vending

 

the vend says " Sales carrie out : Zeny

 

when i try to buy it says

"you don't have enough items" *i guess its detecting that zeny and cash i an item*

 

but i have zeny in my char

 

i'm using item_db2 on sql

'30000', 'Zeny', 'Zeny', '3', '0', '10', '10', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', NULL, NULL, NULL

'30001', 'Cash', 'Cash', '3', '0', '10', '10', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', NULL, NULL, NULL

 

 

 

did you put this in your item_db2.txt?

// Vending system
30000,Zeny,Zeny,3,,10,10,,,,,,,,,,,,,{},{},{}
30001,Cash,Cash,3,,10,10,,,,,,,,,,,,,{},{},{}
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.00
  • Content Count:  80
  • Reputation:   1
  • Joined:  09/13/13
  • Last Seen:  

 

Guys,

 

when i'm trying to use the Zeny and Cash for vending

 

the vend says " Sales carrie out : Zeny

 

when i try to buy it says

"you don't have enough items" *i guess its detecting that zeny and cash i an item*

 

but i have zeny in my char

 

i'm using item_db2 on sql

'30000', 'Zeny', 'Zeny', '3', '0', '10', '10', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', NULL, NULL, NULL

'30001', 'Cash', 'Cash', '3', '0', '10', '10', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', NULL, NULL, NULL

 

 

 

did you put this in your item_db2.txt?

// Vending system
30000,Zeny,Zeny,3,,10,10,,,,,,,,,,,,,{},{},{}
30001,Cash,Cash,3,,10,10,,,,,,,,,,,,,{},{},{}

 

 

no , because i'm using sql for item_db2

 

it even says "  Conflicting item/script var 'Zeny', prioritising the script var "

 

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