Shade Posted July 23, 2012 Group: Members Topic Count: 48 Topics Per Day: 0.01 Content Count: 123 Reputation: 29 Joined: 04/09/12 Last Seen: February 10, 2021 Share Posted July 23, 2012 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. Quote Link to comment Share on other sites More sharing options...
herenow Posted July 23, 2012 Group: Members Topic Count: 7 Topics Per Day: 0.00 Content Count: 36 Reputation: 4 Joined: 02/12/12 Last Seen: January 25, 2017 Share Posted July 23, 2012 https://rathena.svn.sourceforge.net/svnroot/rathena/trunk/doc/script_commands.txt search for: *npctalk Quote Link to comment Share on other sites More sharing options...
F0xxy Posted July 23, 2012 Group: Members Topic Count: 3 Topics Per Day: 0.00 Content Count: 224 Reputation: 22 Joined: 03/23/12 Last Seen: April 21, 2020 Share Posted July 23, 2012 (edited) 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 July 23, 2012 by F0xxy 1 Quote Link to comment Share on other sites More sharing options...
Question
Shade
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.
Thanks in advance.
Link to comment
Share on other sites
2 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.