Jump to content
  • 0

need help with a script command


dtw0420

Question


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  4
  • Reputation:   0
  • Joined:  03/26/12
  • Last Seen:  

Hey how's it going, finally came to the conclusion, I need to ask for help so bare with me.

What im trying to do is, make a requirement, So that you have to speak with one npc, before you can speak with another npc on the map. in example Training grounds type of thing. or another example

Npc1: Please speak with Npc2 Before we continue.

Cheer's Ren

Link to comment
Share on other sites

3 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  658
  • Reputation:   57
  • Joined:  11/20/11
  • Last Seen:  

use this :

prontera,141,181,5<tab>script<tab>Sample<tab>100,{
set .@n$,"[ NPC NAME ]";
mes .@n$;
mes "....";
set VARIABLE,1;
next;
mes .@n$;
mes "Now talk to npc 2.";
close;
}
prontera,143,181,5<tab>script<tab>Sample2<tab>100,{
set .@n$,"[ NPC NAME 2 ]";
if(VARIABLE==1) {
mes .@n$;
mes "Hey,you already talked to NPC 1.";
mes "Nice!";
close;
} else {
mes .@n$;
mes "Talk to NPC 1 first!";
close;
}

You just set a VARIABLE and then in the 2nd NPC you use if(VARIABLE==1)

and then you can set the text,which you want the NPC to say if the Player already talked to NPC 1.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  4
  • Reputation:   0
  • Joined:  03/26/12
  • Last Seen:  

Worked amazing sorry for the late reply, Thanks a ton much appreciated!

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  658
  • Reputation:   57
  • Joined:  11/20/11
  • Last Seen:  

No Problem,also you could check out the wiki for more information about script commands.

Here's the link :

http://www.rathena.org/wiki/Main_Page

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