Jump to content

Recommended Posts

Posted

We go to

battle.h

Find the line

extern struct Battle_Config
{

After they add

int item_cash;
int extended_vending;
int item_zeny;

And problems with the compilation will not be

I apologize for my English...

  • 2 weeks later...
Posted (edited)

i think all ppl just know use dunno give vote and star for this post. lilith dun want update already xD!

edit:

anyone using this on latest revision? how ? working? mind telling me? i was planing update but scare not working for latest revision.

Edited by manabeast
Posted (edited)

@solid2005, someone already do that

hi Lilith.. im trying to patch this on CentOS 5.8 VPS.. and it fails.. using this command /oops

[onizame2823@localhost ~]$ patch -Np1 -d trunk/ < ExtendedVendingSystem_1.8.1.patch
(Stripping trailing CRs from patch.)
can't find file to patch at input line 5
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|Index: conf/battle/feature.conf
|===================================================================
|--- conf/battle/feature.conf   (revision 16070)
|+++ conf/battle/feature.conf   (working copy)
--------------------------
File to patch:

then i try to put it manually /panic become like this.. rAthena SVN 16462

In file included from pc.h:12,
			 from clif.c:17:
itemdb.h:233:24: warning: no newline at end of file
clif.c: In function âclif_parse_OpenVendingâ:
clif.c:11850: error: âstruct Battle_Configâ has no member named âmin_npc_vending_distanceâ
make[1]: *** [obj_sql/clif.o] Error 1
make[1]: Leaving directory `/home/onizame2823/trunk/src/map'
make: *** [map_sql] Error 2

hope u can help me.. bcuz this script so great /no1 and i want to use it on my server /pat

Edited by Mr BrycE
  • Upvote 1
  • 2 weeks later...
Posted

Please Help me here

1>c:\documents and settings\administrator\desktop\rathena\src\map\itemdb.c(1261): error C2065: 'itemdb_read_vending' : undeclared identifier

1>c:\documents and settings\administrator\desktop\rathena\src\map\itemdb.c(1261): warning C4047: 'function' : 'bool (__cdecl *)(char **,int,int)' differs in levels of indirection from 'int *'

1>c:\documents and settings\administrator\desktop\rathena\src\map\itemdb.c(1261): warning C4024: 'sv_readdb' : different types for formal and actual parameter 7

1

my source

else

itemdb_readdb();

itemdb_read_combos();

itemdb_read_itemgroup();

sv_readdb(db_path, "item_avail.txt", ',', 2, 2, -1, &itemdb_read_itemavail);

sv_readdb(db_path, DBPATH"item_noequip.txt", ',', 2, 2, -1, &itemdb_read_noequip);

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);

sv_readdb(db_path, "item_stack.txt", ',', 3, 3, -1, &itemdb_read_stack);

sv_readdb(db_path, DBPATH"item_buyingstore.txt", ',', 1, 1, -1, &itemdb_read_buyingstore);

sv_readdb(db_path, "item_vending.txt", ',', 1, 1, ARRAYLENGTH(item_vend), &itemdb_read_vending); // Extended Vending system [Lilith]

}

  • 3 weeks later...
Posted

^

just double check what have you done in it,

this system perfectly working in latest svn

Thank you.

After checking.. when map-server going to compile vending.c, this happen :

b6Me6.jpg

But I use original/backup vending.c file, error like this is not appear.

vending.txt << My vending.c (I've upload as .txt because I can't upload .c file)

Posted (edited)

How to add this patch? any guides?

You can try this.

@all

I've updated the diff to r16857. I did not test.

Here: extending_vending_16857.patch

Thank you so much! :), one more question is this compatible only with rAthena? Found the answer already at the start of this topic. sorry XD

Thanks! Works fine with my eAthena :D

Edited by Mang-Berto
Posted (edited)

How to add Kafrapoints vending or other account base variable?

so the menu will be:

~Zeny

~Cash Points

~Kafra Points

~Variable(Ex: #VOTEPOINTS)

~ITEM ID's

Edited by Lanz

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...