RN1986 Posted June 4, 2012 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
plankt Posted June 4, 2012 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
RN1986 Posted June 5, 2012 Author Posted June 5, 2012 thanks...but what i wanna do is when they click close i will automatically pop out Quote
plankt Posted June 5, 2012 Posted June 5, 2012 Something like "npctalk"? 31: close2; : npctalk "your message"; : end; 32: } Quote
_Dynosawr_ Posted June 6, 2012 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
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 RN19864 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.