Go Back   EQEmulator Home > EQEmulator Forums > Support > Support::Windows Servers

Support::Windows Servers Support forum for Windows EQEMu users.

Reply
 
Thread Tools Display Modes
  #1  
Old 03-04-2015, 06:43 PM
utbbop
Sarnak
 
Join Date: May 2009
Location: Mentor
Posts: 58
Default NPC Movement/Facing During Hail Interaction

Anyone know if you can disable how an NPC turns and faces the PC who hails them? Trying to lock down a few non-humanoid type quest NPC from reacting visually to a hail.

Appreciate the help!
Reply With Quote
  #2  
Old 03-04-2015, 07:45 PM
joligario's Avatar
joligario
Developer
 
Join Date: Mar 2003
Posts: 1,490
Default

In npc.cpp function DoQuestPause there are calls to FaceTarget.
Reply With Quote
  #3  
Old 03-04-2015, 10:36 PM
utbbop
Sarnak
 
Join Date: May 2009
Location: Mentor
Posts: 58
Default

I am not skilled enough yet for cpp stuff. Appreciate the offer though!
Reply With Quote
  #4  
Old 03-04-2015, 11:00 PM
ghanja's Avatar
ghanja
Dragon
 
Join Date: Aug 2012
Location: Hershey, PA
Posts: 499
Default

Quote:
Originally Posted by utbbop View Post
I am not skilled enough yet for cpp stuff. Appreciate the offer though!
I don't know the purpose of this NPC, or what his/her/it's interaction includes, however, if it's just a passive/"busy" type of NPC, you may be able to make use of npc_emotes table, then place a value in the corresponding 'emoteid' column in the npc_types table.
Reply With Quote
  #5  
Old 03-04-2015, 11:15 PM
utbbop
Sarnak
 
Join Date: May 2009
Location: Mentor
Posts: 58
Default

Quote:
Originally Posted by ghanja View Post
I don't know the purpose of this NPC, or what his/her/it's interaction includes, however, if it's just a passive/"busy" type of NPC, you may be able to make use of npc_emotes table, then place a value in the corresponding 'emoteid' column in the npc_types table.
Just trying to make object type (meaning they have a race model of a treasure chest) npc's that can also be a quest. My "issue", more like annoyance, is that upon hailing these "objects" (NPC's) they turn and face the PC.

It mildly annoys me to see a chest moving around like that
Reply With Quote
  #6  
Old 03-04-2015, 11:25 PM
Kingly_Krab
Administrator
 
Join Date: May 2013
Location: United States
Posts: 1,589
Default

Well, it currently looks like this:
Code:
void NPC::DoQuestPause(Mob *other) {
    if(IsMoving() && !IsOnHatelist(other)) {
        PauseWandering(RuleI(NPC, SayPauseTimeInSec));
        FaceTarget(other);
    } else if(!IsMoving()) {
        FaceTarget(other);
    }
}
You could probably do something like this (assuming your chests don't ever move):
Code:
void NPC::DoQuestPause(Mob *other) {
    if(IsMoving() && !IsOnHatelist(other)) {
        PauseWandering(RuleI(NPC, SayPauseTimeInSec));
        FaceTarget(other);        
    } else if(!IsMoving() && GetRace() != 378 && GetRace() != 589 && GetRace() != 590) {
        FaceTarget(other);
    }
}
Reply With Quote
  #7  
Old 03-04-2015, 11:52 PM
ghanja's Avatar
ghanja
Dragon
 
Join Date: Aug 2012
Location: Hershey, PA
Posts: 499
Default

Quote:
Originally Posted by utbbop View Post
Just trying to make object type (meaning they have a race model of a treasure chest) npc's that can also be a quest. My "issue", more like annoyance, is that upon hailing these "objects" (NPC's) they turn and face the PC.

It mildly annoys me to see a chest moving around like that
Well, if someone went around talking to a chest, seeing it move wouldn't be much crazier.

KC suggested what I would've depending on your reply, run with that.
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 06:09 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