Go Back   EQEmulator Home > EQEmulator Forums > Quests > Quests::Q&A

Quests::Q&A This is the quest support section

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 07-16-2008, 11:15 AM
CodeMephit
Fire Beetle
 
Join Date: Oct 2006
Posts: 18
Default NPC Conversation

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
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 09:07 PM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3