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 12-24-2009, 10:12 PM
Tilar
Sarnak
 
Join Date: Oct 2009
Posts: 35
Default NPC's opening doors

Is there a way to get an NPC to open a door instead of walking through it?
Reply With Quote
  #2  
Old 12-24-2009, 11:10 PM
trevius's Avatar
trevius
Developer
 
Join Date: Aug 2006
Location: USA
Posts: 5,946
Default

Are you talking about for aggro'd NPC's, or for pathing NPCs?

I don't think there is a simple way to do it for aggro'd NPCs, but I have found that it isn't hard to make them do it for pathing NPCs.

What I do is make the pathing so that they pause for 1 second right outside the door before going through, and again pause for 1 second after going through it. This way, if they are patrolling through the door, they will pause for 1 second before trying to enter the door, no matter which direction they are coming from. Don't ask me why it works, but just by adding in the brief pause like that, it will let the door open before they walk through it. I haven't messed with it in a while, but that is how I have gotten it to work in the past.

I am sure you could also use scripting to do it if you wanted to be a bit more in-depth. But, pathing is probably the easiest way.
__________________
Trevazar/Trevius Owner of: Storm Haven
Everquest Emulator FAQ (Frequently Asked Questions) - Read It!
Reply With Quote
  #3  
Old 12-25-2009, 03:50 AM
Lillu
Hill Giant
 
Join Date: Sep 2008
Posts: 204
Default

heh, thats great to know Trev. Gonna try that out. Thanks!
__________________
Reply With Quote
  #4  
Old 12-25-2009, 12:47 PM
ChaosSlayerZ's Avatar
ChaosSlayerZ
Demi-God
 
Join Date: Mar 2009
Location: Umm
Posts: 1,492
Default

from what I observe, npc DO open doors as they pas throw them. The thing is, they do not wait for the door to open, they walk THROUGH them as door is still opening. Thats why you add 1 sec stop point before and after the door, to make it look real as if the mob has opened the door =)
However when mobs is aggroed through the door, he does NOT always runs DIRECTLY through the door passage, in which case, the door is not triggered.
Reply With Quote
  #5  
Old 12-25-2009, 01:01 PM
cavedude's Avatar
cavedude
The PEQ Dude
 
Join Date: Apr 2003
Location: -
Posts: 1,988
Default

I've seen NPCs walk through opening doors on Live as well, so we aren't far off. Still, the extra pause suggestion is a good one
Reply With Quote
  #6  
Old 12-25-2009, 05:55 PM
Tilar
Sarnak
 
Join Date: Oct 2009
Posts: 35
Default

Yes it is for pathing NPC's. That pause worked pretty good for what I'm doing, Thanks.
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 07:40 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