Jump to content
  • 0

Question

Posted (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 by KRMizu

5 answers to this question

Recommended Posts

  • 0
Posted

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

  • Like 1
  • 0
Posted

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

 

  • 0
Posted
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

  • 0
Posted

 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:

Sem-t-tulo.png

 

 

 

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...