Jump to content
  • 0

NPC Conversation


Shade

Question


  • Group:  Members
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  123
  • Reputation:   29
  • Joined:  04/09/12
  • Last Seen:  

Hi,

I figured this should be easy to do but I couldn't find or remember the command to do it.

I am planning to make two NPCs talk to each other (players can see the conversation as if the NPC typed out the chat).

This should happen every two minutes.

Example:

Conversation 1:

NPC1 : Hi, how are you NPC2?

- 3 seconds delay -

NPC2 : I am doing splendid. How about you?

- 5 seconds delay -

NPC1: Not so good, have you heard about what happened to Gabriel?

- 3 seconds delay -

NPC2: Yes, I heard it from Grandma Jenkins. I am sorry for your lost.

Conversation 2:

NPC2: I don't know why he ask us to wait here.

NPC1: Me neither, but he sounded serious when he told us to. Should be something important.

NPC2: I guess so. But I still don't like to be kept waiting.

- repeat either conversation 1 or 2 (randomly) after two minutes.

Thanks in advance.

Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  36
  • Reputation:   4
  • Joined:  02/12/12
  • Last Seen:  

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  224
  • Reputation:   22
  • Joined:  03/23/12
  • Last Seen:  

prontera,151,179,5	script	John	54,{
end;

OnInit:
initnpctimer;
end;

OnTimer120000:
if(rand(1,2) == 1) {
npctalk "Hi, how are you Mary?";
sleep2 3000;
donpcevent "Mary::Onask1";
sleep2 5000;
npctalk "Not so good, have you heard about what happened to Gabriel?";
sleep2 3000;
donpcevent "Mary::Onask2";
stopnpctimer;
initnpctimer;
end;
}
else {
donpcevent "Mary::Onask3";
sleep2 5000;
npctalk "Me neither, but he sounded serious when he told us to. Should be something important.";
sleep2 5000;
donpcevent "Mary::Onask4";
stopnpctimer;
initnpctimer;
end;
}

}
prontera,155,179,4	script	Mary	53,{
end;

Onask1:
npctalk "I am doing splendid. How about you?";
end;

Onask2:
npctalk "Yes, I heard from Grandma Jenkins. I am sorry for your loss.";
end;

Onask3:
npctalk "I don't know why he asked us to wait here.";
end;

Onask4:
npctalk "I guess so. But I still don't like to be kept waiting.";
end;

}

Edited by F0xxy
  • Upvote 1
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...