Jump to content
  • 0

Question

4 answers to this question

Recommended Posts

Posted (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 by plankt
Posted (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 by Joey

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