Jump to content
  • 0

How to close dressroom?


Question

Posted (edited)

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

14 answers to this question

Recommended Posts

  • 0
Posted (edited)
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
  • 0
Posted
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 :(

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

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

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

  • 0
Posted

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;

}

 

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

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

  • 0
Posted

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.

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