Jump to content


Photo

Extended Vending System UPDATED rev14395! by Lilith

Skill

  • Please log in to reply
148 replies to this topic

#1 quesoph

quesoph

    Advanced Member

  • Members
  • PipPipPip
  • 565 posts
  • LocationPhilippines
  • Emulator:Hercules

Posted 17 July 2013 - 11:10 AM

[font="verdana, geneva, sans-serif;"]Original topic and code here: link
Idea: link[/font]


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

[font="verdana, geneva, sans-serif;"]Posted Image[/font]5.PNG

[font="verdana, geneva, sans-serif;"]Vending title can be looks like: "[ITEM_ID] name"

Posted Image[/font]2.PNG

[font="verdana, geneva, sans-serif;"]Version 1.8 preview:[/font]
Posted Image3.PNG
[font="verdana, geneva, sans-serif;"]db/item_vending.txt[/font][font="verdana, geneva, sans-serif;"]
Spoiler
[/font]
[font="verdana, geneva, sans-serif;"]Modify your client data files:

idnum2itemdisplaynametable.txt[/font]
[font="verdana, geneva, sans-serif;"]
Spoiler
[/font]
[font="verdana, geneva, sans-serif;"]idnum2itemresnametable.txt[/font]
[font="verdana, geneva, sans-serif;"]
Spoiler
[/font]
[font="verdana, geneva, sans-serif;"]Ragexe 2013[/font] ( haven't tested it with Ragexe 2012 )
[font="verdana, geneva, sans-serif;"]System/Iteminfo.lub[/font]
[font="verdana, geneva, sans-serif;"]or[/font]
[font="verdana, geneva, sans-serif;"]System/Iteminfo.lua[/font]
Spoiler

Update:
item_db2.txt should be:
Spoiler

Creator: Lilith
Modified by: dastgir and quesoph

*Warning: It will not work with auto trade persistency.

Hercules Rev 14041.
Attached File  Extended Vending System Hercules Rev 14041.patch   17.99K   166 downloads

Hercules Rev 14395.
Attached File  Extended Vending System Hercules Rev 14395.patch   17.79K   245 downloads

Edited by Dastgir, 06 August 2015 - 04:26 PM.


#2 kyeme

kyeme

    Advanced Member

  • High Council
  • 493 posts
  • Emulator:Hercules

Posted 17 July 2013 - 12:14 PM

Thanks for this!  :D



2ro0olu.jpg


#3 Jezu

Jezu

    Advanced Member

  • Members
  • PipPipPip
  • 217 posts

Posted 18 July 2013 - 06:35 AM

Thank you for this! 

 

This is really important to me since I'm using different items to buy and sell on my server! 

 

** Please always update this patch so anyone can use this w/o problem! /no1


6sum80.gif


#4 pr3p

pr3p

    Advanced Member

  • Members
  • PipPipPip
  • 279 posts
  • LocationUnited States
  • Emulator:Hercules

Posted 18 July 2013 - 06:49 AM

Thanks awesome update



#5 quesoph

quesoph

    Advanced Member

  • Members
  • PipPipPip
  • 565 posts
  • LocationPhilippines
  • Emulator:Hercules

Posted 18 July 2013 - 03:20 PM

Post updated.



#6 Lelouch

Lelouch

    Advanced Member

  • Members
  • PipPipPip
  • 68 posts
  • LocationArea 11
  • Emulator:Hercules
  • Github:lelouch22

Posted 20 July 2013 - 09:29 PM

Wow thanks for the update.


Edited by Lelouch, 20 July 2013 - 09:52 PM.


#7 quesoph

quesoph

    Advanced Member

  • Members
  • PipPipPip
  • 565 posts
  • LocationPhilippines
  • Emulator:Hercules

Posted 20 July 2013 - 09:47 PM

Check your battle config.

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


#8 kyeme

kyeme

    Advanced Member

  • High Council
  • 493 posts
  • Emulator:Hercules

Posted 01 August 2013 - 05:39 AM

R> Please update to the @latest thankkkkssssssssss :)


Edited by kyeme, 01 August 2013 - 06:05 AM.


2ro0olu.jpg


#9 quesoph

quesoph

    Advanced Member

  • Members
  • PipPipPip
  • 565 posts
  • LocationPhilippines
  • Emulator:Hercules

Posted 01 August 2013 - 07:06 AM

Tested on revision: 12168



#10 kyeme

kyeme

    Advanced Member

  • High Council
  • 493 posts
  • Emulator:Hercules

Posted 01 August 2013 - 10:07 AM

Tested on revision: 12168

Are you experiencing this?

Posted Image

 

item_vending.txt

// KyemeRO Event Ticket30001// Midgard Coin6242

 

No console error/warning


Edited by kyeme, 01 August 2013 - 10:08 AM.


2ro0olu.jpg


#11 quesoph

quesoph

    Advanced Member

  • Members
  • PipPipPip
  • 565 posts
  • LocationPhilippines
  • Emulator:Hercules

Posted 01 August 2013 - 11:32 AM

No I am not sir.

 

Attached File  screenimmortal007.jpg   10.7K   67 downloads

battle.conf

/*--------------------------------------------------------------* * Enable or disable extended vending system? (Yes / No)	    * *--------------------------------------------------------------*/extended_vending: yes/*--------------------------------------------------------------* * Show currency's name in vending board? (Yes / No)	         * *--------------------------------------------------------------*/show_item_vending: yes/*--------------------------------------------------------------* * Show more info about buying? (Yes / No)                        * *--------------------------------------------------------------*/ex_vending_info: yes/*--------------------------------------------------------------* * Item ID for Zeny. Set to 0 if you don't want use Zeny.        * *--------------------------------------------------------------*/item_zeny: 24998/*--------------------------------------------------------------* * Item ID for Cash. Set to 0 if you don't want use Cash.        * *--------------------------------------------------------------*/item_cash: 24999

 

item_vending.txt

// Specific items for Vending System// Format: ItemID// Max items is equal MAX_INVENTORY ( 100 by default )// TCG Card7227501502

Mine works fine..



#12 kyeme

kyeme

    Advanced Member

  • High Council
  • 493 posts
  • Emulator:Hercules

Posted 01 August 2013 - 02:27 PM

No I am not sir.

 

Posted Imagescreenimmortal007.jpg

battle.conf

 

/*--------------------------------------------------------------* * Enable or disable extended vending system? (Yes / No)	    * *--------------------------------------------------------------*/extended_vending: yes/*--------------------------------------------------------------* * Show currency's name in vending board? (Yes / No)	         * *--------------------------------------------------------------*/show_item_vending: yes/*--------------------------------------------------------------* * Show more info about buying? (Yes / No)                        * *--------------------------------------------------------------*/ex_vending_info: yes/*--------------------------------------------------------------* * Item ID for Zeny. Set to 0 if you don't want use Zeny.        * *--------------------------------------------------------------*/item_zeny: 24998/*--------------------------------------------------------------* * Item ID for Cash. Set to 0 if you don't want use Cash.        * *--------------------------------------------------------------*/item_cash: 24999
 

item_vending.txt

 

// Specific items for Vending System// Format: ItemID// Max items is equal MAX_INVENTORY ( 100 by default )// TCG Card7227501502

Mine works fine..

Its working fine now, weird problem  :(  

Thanks again. :)



2ro0olu.jpg


#13 EriNa_KillerSoul

EriNa_KillerSoul

    Advanced Member

  • Members
  • PipPipPip
  • 120 posts
  • LocationEFOM - The World Of Andelinia and Luminous
  • Emulator:3CeAM
  • Github:EriN_KillerSoul

Posted 01 August 2013 - 02:45 PM

Thanks!I'm waiting for this one :D

 

EDIT

 

I got this when compile

 

vending.c: In function 'vending_purchasereq':vending.c:255: warning: 'item_name' may be used uninitialized in this function

Edited by EriN_KillerSoul, 02 August 2013 - 02:22 AM.

axgg7bu0f2.png

6zpDJ4E.gif


#14 quesoph

quesoph

    Advanced Member

  • Members
  • PipPipPip
  • 565 posts
  • LocationPhilippines
  • Emulator:Hercules

Posted 10 August 2013 - 09:13 AM

^ doesn't show up on MSVC.



#15 Kas

Kas

    Newbie

  • Members
  • Pip
  • 5 posts

Posted 16 August 2013 - 11:08 PM

how to use this file ?

i have folder server like this " root/server/trunk " and how to command in linux for patch ?

 

 

sorry for my bad english.

 

thx



#16 Myth

Myth

    Advanced Member

  • Members
  • PipPipPip
  • 130 posts

Posted 17 August 2013 - 03:02 AM

cool source release quesoph :)



#17 mrlongshen

mrlongshen

    Noobies

  • Members
  • PipPipPip
  • 1133 posts
  • Locationlocalhost 127.0.0.1
  • Emulator:Hercules

Posted 21 August 2013 - 12:00 AM

i try on latest svn.

and got this error.

Error	12	error C2065: 'c' : undeclared identifier	e:1.ragnarokherculeshercules.gittrunksrcmapclif.c	17036	1	map-serverError	25	error C2065: 'c' : undeclared identifier	e:1.ragnarokherculeshercules.gittrunksrcmapclif.c	17039	1	map-serverError	28	error C2065: 'c' : undeclared identifier	e:1.ragnarokherculeshercules.gittrunksrcmapclif.c	17040	1	map-serverError	29	error C2065: 'c' : undeclared identifier	e:1.ragnarokherculeshercules.gittrunksrcmapclif.c	17043	1	map-serverError	35	error C2065: 'c' : undeclared identifier	e:1.ragnarokherculeshercules.gittrunksrcmapclif.c	17046	1	map-serverError	41	error C2065: 'clif_vend' : undeclared identifier	e:1.ragnarokherculeshercules.gittrunksrcmapclif.c	18186	1	map-serverError	8	error C2065: 'd' : undeclared identifier	e:1.ragnarokherculeshercules.gittrunksrcmapclif.c	17029	1	map-serverError	9	error C2065: 'd' : undeclared identifier	e:1.ragnarokherculeshercules.gittrunksrcmapclif.c	17030	1	map-serverError	10	error C2065: 'd' : undeclared identifier	e:1.ragnarokherculeshercules.gittrunksrcmapclif.c	17033	1	map-serverError	11	error C2065: 'd' : undeclared identifier	e:1.ragnarokherculeshercules.gittrunksrcmapclif.c	17034	1	map-serverError	13	error C2065: 'd' : undeclared identifier	e:1.ragnarokherculeshercules.gittrunksrcmapclif.c	17036	1	map-serverError	14	error C2065: 'i' : undeclared identifier	e:1.ragnarokherculeshercules.gittrunksrcmapclif.c	17036	1	map-serverError	15	error C2065: 'i' : undeclared identifier	e:1.ragnarokherculeshercules.gittrunksrcmapclif.c	17036	1	map-serverError	16	error C2065: 'i' : undeclared identifier	e:1.ragnarokherculeshercules.gittrunksrcmapclif.c	17036	1	map-serverError	18	error C2065: 'i' : undeclared identifier	e:1.ragnarokherculeshercules.gittrunksrcmapclif.c	17037	1	map-serverError	17	error C2065: 'item' : undeclared identifier	e:1.ragnarokherculeshercules.gittrunksrcmapclif.c	17037	1	map-serverError	21	error C2065: 'item' : undeclared identifier	e:1.ragnarokherculeshercules.gittrunksrcmapclif.c	17038	1	map-serverError	23	error C2065: 'item' : undeclared identifier	e:1.ragnarokherculeshercules.gittrunksrcmapclif.c	17038	1	map-serverError	26	error C2065: 'item' : undeclared identifier	e:1.ragnarokherculeshercules.gittrunksrcmapclif.c	17039	1	map-serverError	4	error C2065: 'sd' : undeclared identifier	e:1.ragnarokherculeshercules.gittrunksrcmapclif.c	17024	1	map-serverError	6	error C2065: 'sd' : undeclared identifier	e:1.ragnarokherculeshercules.gittrunksrcmapclif.c	17025	1	map-serverError	30	error C2065: 'sd' : undeclared identifier	e:1.ragnarokherculeshercules.gittrunksrcmapclif.c	17044	1	map-serverError	32	error C2065: 'sd' : undeclared identifier	e:1.ragnarokherculeshercules.gittrunksrcmapclif.c	17045	1	map-serverError	36	error C2065: 'sd' : undeclared identifier	e:1.ragnarokherculeshercules.gittrunksrcmapclif.c	17049	1	map-serverError	34	error C2065: 'skill_lv' : undeclared identifier	e:1.ragnarokherculeshercules.gittrunksrcmapclif.c	17045	1	map-serverError	43	error C2065: 'VEND_COLOR' : undeclared identifier	e:1.ragnarokherculeshercules.gittrunksrcmapskill.c	6352	1	map-serverError	44	error C2065: 'VEND_COLOR' : undeclared identifier	e:1.ragnarokherculeshercules.gittrunksrcmapskill.c	15569	1	map-serverError	45	error C2065: 'VEND_COLOR' : undeclared identifier	e:1.ragnarokherculeshercules.gittrunksrcmapvending.c	65	1	map-serverError	46	error C2065: 'VEND_COLOR' : undeclared identifier	e:1.ragnarokherculeshercules.gittrunksrcmapvending.c	145	1	map-serverError	47	error C2065: 'VEND_COLOR' : undeclared identifier	e:1.ragnarokherculeshercules.gittrunksrcmapvending.c	156	1	map-serverError	48	error C2065: 'VEND_COLOR' : undeclared identifier	e:1.ragnarokherculeshercules.gittrunksrcmapvending.c	161	1	map-serverError	49	error C2065: 'VEND_COLOR' : undeclared identifier	e:1.ragnarokherculeshercules.gittrunksrcmapvending.c	167	1	map-serverError	1	error C2143: syntax error : missing ';' before 'type'	e:1.ragnarokherculeshercules.gittrunksrcmapclif.c	17020	1	map-serverError	2	error C2143: syntax error : missing ';' before 'type'	e:1.ragnarokherculeshercules.gittrunksrcmapclif.c	17022	1	map-serverError	3	error C2143: syntax error : missing ';' before 'type'	e:1.ragnarokherculeshercules.gittrunksrcmapclif.c	17023	1	map-serverError	7	error C2223: left of '->fd' must point to struct/union	e:1.ragnarokherculeshercules.gittrunksrcmapclif.c	17025	1	map-serverError	31	error C2223: left of '->menuskill_id' must point to struct/union	e:1.ragnarokherculeshercules.gittrunksrcmapclif.c	17044	1	map-serverError	33	error C2223: left of '->menuskill_val' must point to struct/union	e:1.ragnarokherculeshercules.gittrunksrcmapclif.c	17045	1	map-serverError	22	error C2223: left of '->nameid' must point to struct/union	e:1.ragnarokherculeshercules.gittrunksrcmapclif.c	17038	1	map-serverError	24	error C2223: left of '->nameid' must point to struct/union	e:1.ragnarokherculeshercules.gittrunksrcmapclif.c	17038	1	map-serverError	27	error C2223: left of '->nameid' must point to struct/union	e:1.ragnarokherculeshercules.gittrunksrcmapclif.c	17039	1	map-server	56	IntelliSense: expected a ';'	e:1.ragnarokherculeshercules.gittrunksrcmapclif.c	17020	58	map-server	50	IntelliSense: expected an identifier	e:1.ragnarokherculeshercules.gittrunksrcmapstorage.h	37	8	map-server	51	IntelliSense: expected an identifier	e:1.ragnarokherculeshercules.gittrunksrcmaphomunculus.h	99	8	map-server	52	IntelliSense: expected an identifier	e:1.ragnarokherculeshercules.gittrunksrcmapmercenary.h	63	9	map-server	53	IntelliSense: expected an identifier	e:1.ragnarokherculeshercules.gittrunksrcmapmercenary.h	73	8	map-server	54	IntelliSense: expected an identifier	e:1.ragnarokherculeshercules.gittrunksrcmapelemental.h	71	9	map-server	55	IntelliSense: expected an identifier	e:1.ragnarokherculeshercules.gittrunksrcmapelemental.h	84	8	map-serverWarning	38	warning C4024: 'function through pointer' : different types for formal and actual parameter 1	e:1.ragnarokherculeshercules.gittrunksrcmapclif.c	17049	1	map-serverWarning	20	warning C4047: '!=' : 'int' differs in levels of indirection from 'void *'	e:1.ragnarokherculeshercules.gittrunksrcmapclif.c	17037	1	map-serverWarning	19	warning C4047: '=' : 'int' differs in levels of indirection from 'item_data *'	e:1.ragnarokherculeshercules.gittrunksrcmapclif.c	17037	1	map-serverWarning	42	warning C4047: '=' : 'int (__cdecl *)(map_session_data *,int)' differs in levels of indirection from 'int'	e:1.ragnarokherculeshercules.gittrunksrcmapclif.c	18186	1	map-serverWarning	37	warning C4047: 'function' : 'map_session_data *' differs in levels of indirection from 'int'	e:1.ragnarokherculeshercules.gittrunksrcmapclif.c	17049	1	map-serverWarning	5	warning C4098: 'clif_msgtable_num' : 'void' function returning a value	e:1.ragnarokherculeshercules.gittrunksrcmapclif.c	17024	1	map-serverWarning	39	warning C4098: 'clif_msgtable_num' : 'void' function returning a value	e:1.ragnarokherculeshercules.gittrunksrcmapclif.c	17050	1	map-serverWarning	40	warning C4098: 'clif_msgtable_num' : 'void' function returning a value	e:1.ragnarokherculeshercules.gittrunksrcmapclif.c	17053	1	map-server

Long live Hercules emulator


#18 quesoph

quesoph

    Advanced Member

  • Members
  • PipPipPip
  • 565 posts
  • LocationPhilippines
  • Emulator:Hercules

Posted 21 August 2013 - 03:41 PM

^ I will test it on the latest Rev soon. Thanks!

 

@edit

 

have you tried to manually patch it?


Edited by quesoph, 21 August 2013 - 03:47 PM.


#19 mrlongshen

mrlongshen

    Noobies

  • Members
  • PipPipPip
  • 1133 posts
  • Locationlocalhost 127.0.0.1
  • Emulator:Hercules

Posted 21 August 2013 - 08:39 PM

^ I will test it on the latest Rev soon. Thanks!

 

@edit

 

have you tried to manually patch it?

 

this is manually patch sir.


Long live Hercules emulator


#20 quesoph

quesoph

    Advanced Member

  • Members
  • PipPipPip
  • 565 posts
  • LocationPhilippines
  • Emulator:Hercules

Posted 23 August 2013 - 12:15 PM

Compiled and tested with Hercules Rev 12352.







Also tagged with one or more of these keywords: Skill

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users


This topic has been visited by 891 user(s)