RN1986 Posted June 4, 2012 Group: Members Topic Count: 153 Topics Per Day: 0.03 Content Count: 439 Reputation: 2 Joined: 05/04/12 Last Seen: June 10, 2013 Share Posted June 4, 2012 (edited) here's the code i'm using http://pastebin.com/kXwu0ECv i want to put msg... -> come back here when you collected all the requirements. thanks in advance Edited June 4, 2012 by RN1986 Quote Link to comment Share on other sites More sharing options...
plankt Posted June 4, 2012 Group: Members Topic Count: 7 Topics Per Day: 0.00 Content Count: 130 Reputation: 43 Joined: 12/11/11 Last Seen: July 16, 2017 Share Posted June 4, 2012 (edited) You can put that message above: Line 31: close; Here's simplified what lines 21 -> 33 does: 21: for( each item ){ 22: if( you dont have enough of an item ){ 23: mes "Reward : <item id> x <item amount>"; 24: <filler line> 25: mes "then bring me those items :"; 26: <filler line> 27: mes < zeny required > 28: for( each required item ){ 29: mes < items required > 30: } : // Here you want to print your message 31: close; 32: } 33: } Edited June 4, 2012 by plankt Quote Link to comment Share on other sites More sharing options...
RN1986 Posted June 5, 2012 Group: Members Topic Count: 153 Topics Per Day: 0.03 Content Count: 439 Reputation: 2 Joined: 05/04/12 Last Seen: June 10, 2013 Author Share Posted June 5, 2012 thanks...but what i wanna do is when they click close i will automatically pop out Quote Link to comment Share on other sites More sharing options...
plankt Posted June 5, 2012 Group: Members Topic Count: 7 Topics Per Day: 0.00 Content Count: 130 Reputation: 43 Joined: 12/11/11 Last Seen: July 16, 2017 Share Posted June 5, 2012 Something like "npctalk"? 31: close2; : npctalk "your message"; : end; 32: } Quote Link to comment Share on other sites More sharing options...
_Dynosawr_ Posted June 6, 2012 Group: Members Topic Count: 11 Topics Per Day: 0.00 Content Count: 69 Reputation: 10 Joined: 05/14/12 Last Seen: June 26, 2012 Share Posted June 6, 2012 (edited) Just put a 'close2;' command there, then type the code of what you want done after that command. Close2 will close the window without ending the script. But make sure you use an 'end;' command to end the script, so that it doesn't mess anything up. Example: prontera,150,150,3<TAB>script<TAB>TestNPC123<TAB>70,{ mes "Close this window."; close2; npctalk "What? What is this? I'm still talking??"; end; } Replace all the <TAB>'s with actual tabs. Edited June 6, 2012 by Joey Quote Link to comment Share on other sites More sharing options...
Question
RN1986
here's the code i'm using http://pastebin.com/kXwu0ECv
i want to put msg... -> come back here when you collected all the requirements.
thanks in advance
Edited by RN1986Link to comment
Share on other sites
4 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.