Jump to content
  • 0

How to close dressroom?


Foob

Question


  • Group:  Members
  • Topic Count:  46
  • Topics Per Day:  0.02
  • Content Count:  267
  • Reputation:   40
  • Joined:  01/19/17
  • Last Seen:  

Hi guys,

I am using an NPC wherein it opens dressroom and yes it successfully opens but how to close dressroom via NPC? with regards to script_commands only flag 1 is valid.

Regards,

Edited by iAmGnome
updated content
Link to comment
Share on other sites

14 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  46
  • Topics Per Day:  0.02
  • Content Count:  267
  • Reputation:   40
  • Joined:  01/19/17
  • Last Seen:  

Bump.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  34
  • Topics Per Day:  0.01
  • Content Count:  281
  • Reputation:   14
  • Joined:  10/14/13
  • Last Seen:  

2 hours ago, iAmGnome said:

Bump.

I guess they've had removed it even 'opendressroom' command, can no longer find it on script.cpp

 

However have you tried to use this one?

opendressroom(0);

 

Edited by Aureon
adding alternatives
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  46
  • Topics Per Day:  0.02
  • Content Count:  267
  • Reputation:   40
  • Joined:  01/19/17
  • Last Seen:  

22 minutes ago, Aureon said:

I guess they've had removed it even 'opendressroom' command, can no longer find it on script.cpp

 

However have you tried to use this one?


opendressroom(0);

 

yes tried it. didnt close it :(

Link to comment
Share on other sites

  • 0

  • Group:  Content Moderator
  • Topic Count:  55
  • Topics Per Day:  0.02
  • Content Count:  1678
  • Reputation:   704
  • Joined:  12/21/14
  • Last Seen:  

opendressroom(1);

https://github.com/rathena/rathena/blob/2676d05394008288a882c8966a4d6da3865d0eaa/doc/script_commands.txt#L9514

feel free to explore this file

every scripter have this file always open

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  34
  • Topics Per Day:  0.01
  • Content Count:  281
  • Reputation:   14
  • Joined:  10/14/13
  • Last Seen:  

28 minutes ago, sader1992 said:

opendressroom(1);

https://github.com/rathena/rathena/blob/2676d05394008288a882c8966a4d6da3865d0eaa/doc/script_commands.txt#L9514

feel free to explore this file

every scripter have this file always open

Hello there @sader1992, why is it I can't find the command on script.cpp? https://github.com/rathena/rathena/blob/master/src/map/script.cpp

Link to comment
Share on other sites

  • 0

  • Group:  Content Moderator
  • Topic Count:  55
  • Topics Per Day:  0.02
  • Content Count:  1678
  • Reputation:   704
  • Joined:  12/21/14
  • Last Seen:  

7 minutes ago, Aureon said:

Hello there @sader1992, why is it I can't find the command on script.cpp? https://github.com/rathena/rathena/blob/master/src/map/script.cpp

github wont load all the file it's 24280 lines

look at line 22275 or search for it after you download it

dddd.thumb.jpg.c107819f9c08a2934f945ecf2ade5438.jpg

 

Edited by sader1992
  • Love 1
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  46
  • Topics Per Day:  0.02
  • Content Count:  267
  • Reputation:   40
  • Joined:  01/19/17
  • Last Seen:  

1 hour ago, sader1992 said:

opendressroom(1);

https://github.com/rathena/rathena/blob/2676d05394008288a882c8966a4d6da3865d0eaa/doc/script_commands.txt#L9514

feel free to explore this file

every scripter have this file always open

Hi sadder, this doesn't close the dressroom. Already tested it. From the doc, it says it only opens the dressroom. It didn't say on how to close the dressroom automatically after closing the npc dialogue.

Link to comment
Share on other sites

  • 0

  • Group:  Content Moderator
  • Topic Count:  55
  • Topics Per Day:  0.02
  • Content Count:  1678
  • Reputation:   704
  • Joined:  12/21/14
  • Last Seen:  

6 minutes ago, iAmGnome said:

Hi sadder, this doesn't close the dressroom. Already tested it. From the doc, it says it only opens the dressroom. It didn't say on how to close the dressroom automatically after closing the npc dialogue.

drom.thumb.jpg.a8b485f66b9225f696f07167f79e6ab6.jpg

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  46
  • Topics Per Day:  0.02
  • Content Count:  267
  • Reputation:   40
  • Joined:  01/19/17
  • Last Seen:  

Just now, sader1992 said:

drom.thumb.jpg.a8b485f66b9225f696f07167f79e6ab6.jpg

So with this, we can't automatically close the dressroom? We need to click it manually? Its more convenient if it will be closed once you close the NPC dialog. 

Link to comment
Share on other sites

  • 0

  • Group:  Content Moderator
  • Topic Count:  55
  • Topics Per Day:  0.02
  • Content Count:  1678
  • Reputation:   704
  • Joined:  12/21/14
  • Last Seen:  

i don't think you can as i see

you can do something like @refresh so it will close it

Example:

prontera,153,170,5	script	cotin	100,{

	mes "Close this window to open the Dress Room window.";
	next;
	opendressroom(1);
	next;
	mes"close?";
	if(select("yes:no")==1){
		atcommand "@refresh";
	}
	end;

}

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  46
  • Topics Per Day:  0.02
  • Content Count:  267
  • Reputation:   40
  • Joined:  01/19/17
  • Last Seen:  

35 minutes ago, sader1992 said:

i don't think you can as i see

you can do something like @refresh so it will close it

Example:


prontera,153,170,5	script	cotin	100,{

	mes "Close this window to open the Dress Room window.";
	next;
	opendressroom(1);
	next;
	mes"close?";
	if(select("yes:no")==1){
		atcommand "@refresh";
	}
	end;

}

 

How sad then hehe. Maybe someday we can support automatic closing hehe.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  34
  • Topics Per Day:  0.01
  • Content Count:  281
  • Reputation:   14
  • Joined:  10/14/13
  • Last Seen:  

40 minutes ago, iAmGnome said:

How sad then hehe. Maybe someday we can support automatic closing hehe.

@iAmGnome Unless if you tweak 'opendressroom' at src

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  46
  • Topics Per Day:  0.02
  • Content Count:  267
  • Reputation:   40
  • Joined:  01/19/17
  • Last Seen:  

2 minutes ago, Aureon said:

@iAmGnome Unless if you tweak 'opendressroom' at src

I dont want to do some source edit right now since I am having problem with git pulling it causes lots of conflict. Lol or maybe use custom/scripts?

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  477
  • Reputation:   269
  • Joined:  06/13/17
  • Last Seen:  

on npc talk. add timer.. save coordinates. once the coordinates are not equal to your coordinates.. it will automatically use atcommand "@refresh" to close it. :P

i wonder if you will like that idea. its kinda complicated.

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