Jump to content

Extended Vending System [1.9] cleanup & fix


Napster

Recommended Posts


  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.00
  • Content Count:  235
  • Reputation:   55
  • Joined:  12/02/11
  • Last Seen:  

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

  • 3 weeks later...

  • Group:  Members
  • Topic Count:  23
  • Topics Per Day:  0.01
  • Content Count:  112
  • Reputation:   4
  • Joined:  08/28/14
  • Last Seen:  

Can this be updated for latest git? would be really appreciated thanks..

will be usefull for highrate server.

Link to comment
Share on other sites

  • 3 weeks later...

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

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

  • 3 weeks later...

  • Group:  Members
  • Topic Count:  30
  • Topics Per Day:  0.01
  • Content Count:  149
  • Reputation:   35
  • Joined:  04/01/13
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  27
  • Topics Per Day:  0.01
  • Content Count:  505
  • Reputation:   126
  • Joined:  04/04/16
  • Last Seen:  

4 minutes ago, M4karov said:

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

Error: http://prntscr.com/g8toc7

Have you tried to import the sql?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  30
  • Topics Per Day:  0.01
  • Content Count:  149
  • Reputation:   35
  • Joined:  04/01/13
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  27
  • Topics Per Day:  0.01
  • Content Count:  505
  • Reputation:   126
  • Joined:  04/04/16
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  30
  • Topics Per Day:  0.01
  • Content Count:  149
  • Reputation:   35
  • Joined:  04/01/13
  • Last Seen:  

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

  • 3 weeks later...

  • Group:  Members
  • Topic Count:  84
  • Topics Per Day:  0.02
  • Content Count:  309
  • Reputation:   82
  • Joined:  11/15/11
  • Last Seen:  

UOWNux_Mp_R4m_KG1_Vm7_HQOnw.png

With me it is giving this error: I use SQL item_db_re

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  23
  • Topics Per Day:  0.01
  • Content Count:  112
  • Reputation:   4
  • Joined:  08/28/14
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  30
  • Topics Per Day:  0.01
  • Content Count:  149
  • Reputation:   35
  • Joined:  04/01/13
  • Last Seen:  

@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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  27
  • Topics Per Day:  0.01
  • Content Count:  505
  • Reputation:   126
  • Joined:  04/04/16
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  30
  • Topics Per Day:  0.01
  • Content Count:  149
  • Reputation:   35
  • Joined:  04/01/13
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  27
  • Topics Per Day:  0.01
  • Content Count:  505
  • Reputation:   126
  • Joined:  04/04/16
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  65
  • Reputation:   38
  • Joined:  11/15/11
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  41
  • Topics Per Day:  0.01
  • Content Count:  164
  • Reputation:   16
  • Joined:  03/15/12
  • Last Seen:  

Can anyone provide a working diff? =) that would be appreciated.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  65
  • Reputation:   38
  • Joined:  11/15/11
  • Last Seen:  

8 hours ago, Elysium said:

Can anyone provide a working diff? =) that would be appreciated.

Update your emulator for the latest version of Git.

version 1.9.5 [08-09-2017].diff

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  23
  • Topics Per Day:  0.01
  • Content Count:  112
  • Reputation:   4
  • Joined:  08/28/14
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  27
  • Topics Per Day:  0.01
  • Content Count:  505
  • Reputation:   126
  • Joined:  04/04/16
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  84
  • Topics Per Day:  0.02
  • Content Count:  309
  • Reputation:   82
  • Joined:  11/15/11
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  23
  • Topics Per Day:  0.01
  • Content Count:  112
  • Reputation:   4
  • Joined:  08/28/14
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  27
  • Topics Per Day:  0.01
  • Content Count:  505
  • Reputation:   126
  • Joined:  04/04/16
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  23
  • Topics Per Day:  0.01
  • Content Count:  112
  • Reputation:   4
  • Joined:  08/28/14
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  23
  • Topics Per Day:  0.01
  • Content Count:  112
  • Reputation:   4
  • Joined:  08/28/14
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.00
  • Content Count:  36
  • Reputation:   2
  • Joined:  06/06/13
  • Last Seen:  

have error on skill.c

 

skill.c: In function ‘skill_castend_nodamage_id’:
skill.c:7521:17: warning: declaration of ‘i’ shadows a previous local [-Wshadow]
      int c = 0, i, d = 0;
                 ^
skill.c:6072:6: warning: shadowed declaration is here [-Wshadow]
  int i = 0;
      ^

 

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