Foob Posted September 30, 2017 Group: Members Topic Count: 46 Topics Per Day: 0.02 Content Count: 267 Reputation: 40 Joined: 01/19/17 Last Seen: 22 hours ago Share Posted September 30, 2017 (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 October 6, 2017 by iAmGnome updated content Quote Link to comment Share on other sites More sharing options...
0 Foob Posted October 6, 2017 Group: Members Topic Count: 46 Topics Per Day: 0.02 Content Count: 267 Reputation: 40 Joined: 01/19/17 Last Seen: 22 hours ago Author Share Posted October 6, 2017 Bump. Quote Link to comment Share on other sites More sharing options...
0 Aureon Posted October 6, 2017 Group: Members Topic Count: 34 Topics Per Day: 0.01 Content Count: 281 Reputation: 14 Joined: 10/14/13 Last Seen: October 9, 2017 Share Posted October 6, 2017 (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 October 6, 2017 by Aureon adding alternatives Quote Link to comment Share on other sites More sharing options...
0 Foob Posted October 6, 2017 Group: Members Topic Count: 46 Topics Per Day: 0.02 Content Count: 267 Reputation: 40 Joined: 01/19/17 Last Seen: 22 hours ago Author Share Posted October 6, 2017 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 Quote Link to comment Share on other sites More sharing options...
0 sader1992 Posted October 6, 2017 Group: Content Moderator Topic Count: 55 Topics Per Day: 0.01 Content Count: 1691 Reputation: 716 Joined: 12/21/14 Last Seen: Tuesday at 07:50 PM Share Posted October 6, 2017 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 Quote Link to comment Share on other sites More sharing options...
0 Aureon Posted October 6, 2017 Group: Members Topic Count: 34 Topics Per Day: 0.01 Content Count: 281 Reputation: 14 Joined: 10/14/13 Last Seen: October 9, 2017 Share Posted October 6, 2017 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 Quote Link to comment Share on other sites More sharing options...
0 sader1992 Posted October 6, 2017 Group: Content Moderator Topic Count: 55 Topics Per Day: 0.01 Content Count: 1691 Reputation: 716 Joined: 12/21/14 Last Seen: Tuesday at 07:50 PM Share Posted October 6, 2017 (edited) 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 Edited October 6, 2017 by sader1992 1 Quote Link to comment Share on other sites More sharing options...
0 Foob Posted October 6, 2017 Group: Members Topic Count: 46 Topics Per Day: 0.02 Content Count: 267 Reputation: 40 Joined: 01/19/17 Last Seen: 22 hours ago Author Share Posted October 6, 2017 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. Quote Link to comment Share on other sites More sharing options...
0 sader1992 Posted October 6, 2017 Group: Content Moderator Topic Count: 55 Topics Per Day: 0.01 Content Count: 1691 Reputation: 716 Joined: 12/21/14 Last Seen: Tuesday at 07:50 PM Share Posted October 6, 2017 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. Quote Link to comment Share on other sites More sharing options...
0 Foob Posted October 6, 2017 Group: Members Topic Count: 46 Topics Per Day: 0.02 Content Count: 267 Reputation: 40 Joined: 01/19/17 Last Seen: 22 hours ago Author Share Posted October 6, 2017 Just now, sader1992 said: 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. Quote Link to comment Share on other sites More sharing options...
0 sader1992 Posted October 6, 2017 Group: Content Moderator Topic Count: 55 Topics Per Day: 0.01 Content Count: 1691 Reputation: 716 Joined: 12/21/14 Last Seen: Tuesday at 07:50 PM Share Posted October 6, 2017 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; } Quote Link to comment Share on other sites More sharing options...
0 Foob Posted October 6, 2017 Group: Members Topic Count: 46 Topics Per Day: 0.02 Content Count: 267 Reputation: 40 Joined: 01/19/17 Last Seen: 22 hours ago Author Share Posted October 6, 2017 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. Quote Link to comment Share on other sites More sharing options...
0 Aureon Posted October 6, 2017 Group: Members Topic Count: 34 Topics Per Day: 0.01 Content Count: 281 Reputation: 14 Joined: 10/14/13 Last Seen: October 9, 2017 Share Posted October 6, 2017 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 Quote Link to comment Share on other sites More sharing options...
0 Foob Posted October 6, 2017 Group: Members Topic Count: 46 Topics Per Day: 0.02 Content Count: 267 Reputation: 40 Joined: 01/19/17 Last Seen: 22 hours ago Author Share Posted October 6, 2017 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? Quote Link to comment Share on other sites More sharing options...
0 Haruka Mayumi Posted October 10, 2017 Group: Members Topic Count: 9 Topics Per Day: 0.00 Content Count: 485 Reputation: 271 Joined: 06/13/17 Last Seen: April 14 Share Posted October 10, 2017 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. i wonder if you will like that idea. its kinda complicated. Quote Link to comment Share on other sites More sharing options...
Question
Foob
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 iAmGnomeupdated content
Link to comment
Share on other sites
14 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.