I am trying to make two NPCs respond to each other in a script. The scenario should play out like this:
Code:
Player: "Hail NPC1"
NPC1: "Hi Player. This is my friend NPC2. Say Hi, NPC2."
NPC2: "Hey Player."
NPC1: "If you [need] us for anything, just let me know."
I could *fake* NPC2's voice using $client->Message...
Code:
if($text=~/hail/i){
quest::say("Hi $name. This is my friend NPC2. Say hi, NPC2.");
$client->Message(1,"NPC2 says 'Hey $name.'");
quest::say("If you [need] us for anything, just let me know.");
}
I would rather not have to use this method because you must specify the color of the text (the "1"). But if the player has changed their default colors, that one line will show up different than all the other quest chatter.
So ultimately my question is this: Can you get one NPC to respond to another NPC?
Thanks,
-Codemephit