Jump to content
  • 0

Help on this NPC


RN1986

Question


  • Group:  Members
  • Topic Count:  153
  • Topics Per Day:  0.03
  • Content Count:  439
  • Reputation:   2
  • Joined:  05/04/12
  • Last Seen:  

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 RN1986
Link to comment
Share on other sites

4 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  130
  • Reputation:   43
  • Joined:  12/11/11
  • Last Seen:  

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
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  153
  • Topics Per Day:  0.03
  • Content Count:  439
  • Reputation:   2
  • Joined:  05/04/12
  • Last Seen:  

thanks...but what i wanna do is when they click close i will automatically pop out :)

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  130
  • Reputation:   43
  • Joined:  12/11/11
  • Last Seen:  

Something like "npctalk"?

31:    close2;
 :    npctalk "your message";
 :    end;
32:  }

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  69
  • Reputation:   10
  • Joined:  05/14/12
  • Last Seen:  

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
Link to comment
Share on other sites

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.

×
×
  • Create New...