Jump to content
Napster

Extended Vending System [1.9] cleanup & fix

Recommended Posts

On 6/21/2017 at 4:41 AM, almer said:

is this working on 17704 SVN?>>

For godsake, please stop using SVN. and i would say "NO" it does not work on "SVN"

Link to comment
Share on other sites

i made some update code from rathena maybe this should be help. i didn't test it cause i don't have time =P

WARNING Backup first and use a test server if stable,

Note : Update for newer GIT NO (bug fix and add on).

 

version 1.9.5.diff

  • Like 1
Link to comment
Share on other sites

On 28/07/2017 at 5:42 AM, solid2005 said:

Eu fiz um código de atualização da Rathena talvez isso venha a ser de ajuda. Eu não testei porque eu não tenho tempo = P

AVISO Faça o backup primeiro e use um servidor de teste se estável,

Nota: Atualize para GIT NO mais recente  (correção de bugs e add on).

 

Versão 1.9.5.diff

The system worked perfectly, but I noticed these errors on my map-server.

Error: http://prntscr.com/g8toc7

Link to comment
Share on other sites

2 minutes ago, Technoken said:

Você tentou importar o sql?

I minded this one:

ALTER TABLE `vendings` ADD COLUMN `extended_vending_item` smallint(5) unsigned NOT NULL DEFAULT '0' AFTER `sit`;

 

Link to comment
Share on other sites

6 minutes ago, M4karov said:

I minded this one:

ALTER TABLE `vendings` ADD COLUMN `extended_vending_item` smallint(5) unsigned NOT NULL DEFAULT '0' AFTER `sit`;

 

On vending.c 
find

"VALUES( %d, %d, %d, '%c', '%s', %d, %d, '%s', %d, '%d', '%d', '%d' );",

replace

"VALUES( %d, %d, %d, '%c', '%s', %d, %d, '%s', %d, '%d', '%d', '%d', '%hu' );",

solid2005 might have forgotten to update his part on his diff.

  • Love 1
  • Like 1
Link to comment
Share on other sites

4 minutes ago, Technoken said:

On vending.c 
find

"VALUES( %d, %d, %d, '%c', '%s', %d, %d, '%s', %d, '%d', '%d', '%d' );",

replace

"VALUES( %d, %d, %d, '%c', '%s', %d, %d, '%s', %d, '%d', '%d', '%d', '%hu' );",

solid2005 might have forgotten to update his part on his diff.

Perfect! Thank you for your help.

Link to comment
Share on other sites

Hi i successfully patch the diff but my problem when i try to buy the vended item it always says " you dont have enough PODS" even tho i have all the requirment 

Link to comment
Share on other sites

4 hours ago, M4karov said:

@Technoken After applying the last commits of github changing my script.c to script.cpp I have these errors in the compilation, could give me a direction of how to solve?

image.png.cdb5249b208e07222cb3c9f85b55ce76.png

Can you try this one if it would work. I can't test it right now.
On itemdb.h
find

struct s_item_vend item_vend[MAX_INVENTORY];

replace with

extern struct s_item_vend item_vend[MAX_INVENTORY];

 

  • Like 1
Link to comment
Share on other sites

1 minute ago, Technoken said:

Você pode tentar isso se ele funcionasse. Não posso testá-lo agora mesmo.
No itemdb.h
encontrar

substituir com

 

I had tried it that way, but it did not work.

Link to comment
Share on other sites

on itemdb.c apply this
 

	static DBMap *itemdb_randomopt_group; /// Random option group DB

	struct item_data *dummy_item; /// This is the default dummy item used for non-existant items. [Skotlex]

	struct s_roulette_db rd;

+	struct s_item_vend item_vend[MAX_INVENTORY];

	/**
	* Check if combo exists

If it still doesn't work. I'll just update here whenever I got mine working. Can't do it right now since im not at home.

  • Like 1
Link to comment
Share on other sites

On 28/07/2017 at 5:42 AM, solid2005 said:

i made some update code from rathena maybe this should be help. i didn't test it cause i don't have time =P

WARNING Backup first and use a test server if stable,

Note : Update for newer GIT NO (bug fix and add on).

 

version 1.9.5.diff

Thx @solid2005 and @Technoken thanks you guys to make it work.

<3

Link to comment
Share on other sites

seems no to be working.. Pixel

undefined reference to "item_vend" rathena

=====================================

I successfully patch the one that provided by solid2005

but problem is i cant buy the item that is on vend..

" You dont have enought Items" even tho i have all the requirement like pods..

 

help.png

Link to comment
Share on other sites

9 hours ago, mhielo12 said:

undefined reference to "item_vend" rathena

On itemdb.h
find: struct s_item_vend item_vend[MAX_INVENTORY];
replace: extern struct s_item_vend item_vend[MAX_INVENTORY];

On itemdb.c
find: 
struct s_roulette_db rd;
add below: struct s_item_vend item_vend[MAX_INVENTORY];

  • Like 1
Link to comment
Share on other sites

2 hours ago, Technoken said:

On itemdb.h
find: struct s_item_vend item_vend[MAX_INVENTORY];
replace: extern struct s_item_vend item_vend[MAX_INVENTORY];

On itemdb.c
find: 
struct s_roulette_db rd;
add below: struct s_item_vend item_vend[MAX_INVENTORY];

100% work! thanks

  • Upvote 1
Link to comment
Share on other sites

6 hours ago, Technoken said:

On itemdb.h
find: struct s_item_vend item_vend[MAX_INVENTORY];
replace: extern struct s_item_vend item_vend[MAX_INVENTORY];

On itemdb.c
find: 
struct s_roulette_db rd;
add below: struct s_item_vend item_vend[MAX_INVENTORY];

Hi manage to make it work but my problem regarding "you dont have enough items" still there :(

cant buy the item on the vend.. although i have all requirement..

Link to comment
Share on other sites

9 minutes ago, mhielo12 said:

Hi manage to make it work but my problem regarding "you dont have enough items" still there :(

cant buy the item on the vend.. although i have all requirement..

Try to double check the codes that you applied. It's working fine on me.

Link to comment
Share on other sites

4 hours ago, Technoken said:

Try to double check the codes that you applied. It's working fine on me.

No error on map server :( im really lost.. 

you have a working sql for this? ill try to delete my sql..

EDIT:

Hi Technoken

I check the previous version and compare to the new version

in the old diff there is this line in item_vending.txt

Index: db/item_vending.txt
===================================================================
--- db/item_vending.txt    (nonexistent)
+++ db/item_vending.txt    (working copy)
@@ -0,0 +1,12 @@
+// 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

Should I remove this on the new patch?

Edited by mhielo12
Link to comment
Share on other sites

1 hour ago, mhielo12 said:

No error on map server :( im really lost.. 

you have a working sql for this? ill try to delete my sql..

EDIT:

Hi Technoken

I check the previous version and compare to the new version

in the old diff there is this line in item_vending.txt

Index: db/item_vending.txt
===================================================================
--- db/item_vending.txt    (nonexistent)
+++ db/item_vending.txt    (working copy)
@@ -0,0 +1,12 @@
+// 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

Should I remove this on the new patch?

I removed this in the new patch still not work.. :( help im lost.. :( is it zeny cash only 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...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.