Xephyras Posted September 11, 2013 Posted September 11, 2013 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! Quote
Emistry Posted September 11, 2013 Posted September 11, 2013 try src/map/map.h#L50 #define MAX_VENDING 12 not sure if there is other place you need to edit too... Quote
Xephyras Posted September 12, 2013 Author Posted September 12, 2013 (edited) 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 September 12, 2013 by Xephyras Quote
Question
Xephyras
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!
2 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.