KRMizu Posted April 23, 2020 Posted April 23, 2020 (edited) Is it possible to open two different dressrooms? For example if it is a class x opens dressroom x, if it is class y opens dressroom y. I wonder where I need to go to add a second dressroom Edited April 23, 2020 by KRMizu Quote
0 Naruto Posted April 23, 2020 Posted April 23, 2020 Well there might be an easier way but if your using this script command to access the dress room "opendressroom" then you can try looking at this script.c */ BUILDIN_FUNC(opendressroom) { #if PACKETVER >= 20150513 int flag = 1; TBL_PC* sd; if( script_hasdata(st,2) ) flag = script_getnum(st,2); if (!script_charid2sd(3, sd)) return SCRIPT_CMD_FAILURE; clif_dressing_room(sd, flag); return SCRIPT_CMD_SUCCESS; #else return SCRIPT_CMD_FAILURE; #endif } and now you see the function through clif_ clif.c void clif_dressing_room(struct map_session_data *sd, int flag) { #if PACKETVER >= 20150513 int fd = sd->fd; nullpo_retv(sd); WFIFOHEAD(fd, packet_len(0xa02)); WFIFOW(fd,0) = 0xa02; WFIFOW(fd,2) = flag; WFIFOSET(fd, packet_len(0xa02)); #endif } I would just make a second one if i had no choice . . . 1 Quote
0 KRMizu Posted April 24, 2020 Author Posted April 24, 2020 If I run a second case, the player will not be able to use a color, but that window will continue showing the available colors and showing all black sprites Quote
0 KRMizu Posted April 24, 2020 Author Posted April 24, 2020 6 hours ago, Naruto said: Well there might be an easier way but if your using this script command to access the dress room "opendressroom" then you can try looking at this script.c */ BUILDIN_FUNC(opendressroom) { #if PACKETVER >= 20150513 int flag = 1; TBL_PC* sd; if( script_hasdata(st,2) ) flag = script_getnum(st,2); if (!script_charid2sd(3, sd)) return SCRIPT_CMD_FAILURE; clif_dressing_room(sd, flag); return SCRIPT_CMD_SUCCESS; #else return SCRIPT_CMD_FAILURE; #endif } and now you see the function through clif_ clif.c void clif_dressing_room(struct map_session_data *sd, int flag) { #if PACKETVER >= 20150513 int fd = sd->fd; nullpo_retv(sd); WFIFOHEAD(fd, packet_len(0xa02)); WFIFOW(fd,0) = 0xa02; WFIFOW(fd,2) = flag; WFIFOSET(fd, packet_len(0xa02)); #endif } I would just make a second one if i had no choice . . . I'll take a look, thank you very much Quote
0 KRMizu Posted April 24, 2020 Author Posted April 24, 2020 I just didn't want it to show the available examples . For example, in this case, I would like to show only the 3 colors available: Quote
0 Naruto Posted April 24, 2020 Posted April 24, 2020 I dont think you can, beyond my knowledge anyways you can try playing with the values but it wont do anything Quote
Question
KRMizu
Is it possible to open two different dressrooms? For example if it is a class x opens dressroom x, if it is class y opens dressroom y.
I wonder where I need to go to add a second dressroom
Edited by KRMizu5 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.