Jump to content
  • 0

Increasing Max Vending Slot


Xephyras

Question


  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  51
  • Reputation:   0
  • Joined:  06/16/12
  • Last Seen:  

Hello,

 

Does anyone know how to increase the maximum vending slots from 12 to XX number, so that people can sell more than 12 different items?

 

Thanks in advance!

Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

try src/map/map.h#L50

#define MAX_VENDING 12 

 

not sure if there is other place you need to edit too...

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  51
  • Reputation:   0
  • Joined:  06/16/12
  • Last Seen:  

Thanks for the reply.
 
I tried that including some other changes in the source file, but I am stuck at 13 slots maximum no matter what I do.

 

How do I change the following in such a way that it can exceed 13 slots?

 

https://github.com/rathena/rathena/blob/master/src/map/clif.c#L6146

/// Opens the shop creation menu (ZC_OPENSTORE).
/// 012d <num>.W
/// num:
///     number of allowed item slots
void clif_openvendingreq(struct map_session_data* sd, int num)
{
	int fd;

	nullpo_retv(sd);

	fd = sd->fd;
	WFIFOHEAD(fd,packet_len(0x12d));
	WFIFOW(fd,0) = 0x12d;
	WFIFOW(fd,2) = num;
	WFIFOSET(fd,packet_len(0x12d));
}

 



 

Edited by Xephyras
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...