Foob Posted September 30, 2017 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
0 Aureon Posted October 6, 2017 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
0 Foob Posted October 6, 2017 Author 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
0 sader1992 Posted October 6, 2017 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
0 Aureon Posted October 6, 2017 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
0 sader1992 Posted October 6, 2017 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
0 Foob Posted October 6, 2017 Author 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
0 sader1992 Posted October 6, 2017 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
0 Foob Posted October 6, 2017 Author 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
0 sader1992 Posted October 6, 2017 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
0 Foob Posted October 6, 2017 Author 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
0 Aureon Posted October 6, 2017 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
0 Foob Posted October 6, 2017 Author 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
0 Haruka Mayumi Posted October 10, 2017 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
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
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.