Jump to content
  • 0

Barter Shop (increase item req limit from 5 to 10?)


Nullifier

Question


  • Group:  Members
  • Topic Count:  45
  • Topics Per Day:  0.01
  • Content Count:  140
  • Reputation:   11
  • Joined:  09/28/14
  • Last Seen:  

Hi, would like to ask, is there a way I can increase the barters hop item requirements to buy a certain item from 5 to 10?

image.png.00fc347ebb7e994d2fbc71e88ea2df6a.png

As you can see, I tried adding more than 5 items and I got this error.

I plan to use it as a replacement of the traditional Quest NPC that we are used to.

 

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  232
  • Reputation:   86
  • Joined:  06/30/18
  • Last Seen:  

The errormessage already tells you what is wrong. The Barters don't support more than 5 items.

I am not sure why the limit is hard-coded to five, if it is because the original behavior is like this or because the client doesn't support more than five.

What you could try though is to raise the limit and recompile rathena. You can find the definition of the limit in the mmo.hpp on line 117.
 

#define MAX_BARTER_REQUIREMENTS 5

 

Edited by Winterfox
  • MVP 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.01
  • Content Count:  39
  • Reputation:   29
  • Joined:  06/08/23
  • Last Seen:  

curious to the result of this, is it client limitation or can be increased? if can be increased did you test the limit?

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  45
  • Topics Per Day:  0.01
  • Content Count:  140
  • Reputation:   11
  • Joined:  09/28/14
  • Last Seen:  

46 minutes ago, Harvin said:

curious to the result of this, is it client limitation or can be increased? if can be increased did you test the limit?

it can be increased but I don't know on the client side since whenever I tried to add item from 5 to 6 the other item requirement will exceed the shop window limit.

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
Answer this question...

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