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

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

Reply
 
Thread Tools Display Modes
  #1  
Old 09-21-2008, 02:17 PM
kayen85
Sarnak
 
Join Date: Dec 2007
Posts: 50
Default text events when NPC in combat

It appears when an NPC is in combat they don't respond to sub_EVENT_SAY, ect hails anything you put in that event.

Is there a way around this to enable npc you are fighting to respond to a text message?
Reply With Quote
  #2  
Old 09-22-2008, 11:23 AM
Shunkthefunkunk
Fire Beetle
 
Join Date: Jul 2006
Posts: 11
Default

If you tried using "sub_EVENT_SAY" then that would be one problem, you have to remove the underscore between sub and EVENT. So, "sub EVENT_SAY" is what it should look like, and without the quotations obviously. If I remember correctly, NPCs are not supposed to respond while in combat with you. Sorry this post probably isn't as much help as you would like but I'm not sure how you would go about making him respond. I don't think it has anything to do with the quest as much as it does the game.
Reply With Quote
  #3  
Old 09-22-2008, 03:47 PM
kayen85
Sarnak
 
Join Date: Dec 2007
Posts: 50
Default

I was using correct format in my quest just typed the question fast didn't really check the syntax heh.

Ok well maybe there just isn't a way to do it. Sometimes there is an obvious answer that I am just missing. Maybe not this time.
Reply With Quote
  #4  
Old 09-22-2008, 04:01 PM
Derision
Developer
 
Join Date: Feb 2004
Location: UK
Posts: 1,540
Default

The relevant part of the source that stops EVENT_SAY working for engaged mobs seems to be:

zone/client.cpp around line 720:

Code:
                if (target != 0 && target->IsNPC() && !target->CastToNPC()->IsEngaged()) {
#ifdef EMBPERL
                        if(((PerlembParser *)parse)->HasQuestSub(target->GetNPCTypeID(),"EVENT_SAY")){
#endif
If you have the ability to edit/compile the source, you could remove the part I have highlighted in red, or a Rule could be added so that you can control whether EVENT_SAY is called for engaged mobs.

Last edited by Derision; 09-23-2008 at 12:04 AM..
Reply With Quote
Reply


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:06 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 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3