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-13-2010, 01:49 AM
Shadow-Wolf
Dragon
 
Join Date: Oct 2003
Posts: 511
Default Laying down npc moves when talked to.

Got an npc that I want players to be able to talk to while he's laying down, problem is the npc still moves while laying down so he puts his head through the wall. Any ideas?
__________________
How about the power to kill a yak from 200 yards away...WITH MIND BULLETS! thats telekinesis kyle.
Reply With Quote
  #2  
Old 09-13-2010, 07:56 AM
joligario's Avatar
joligario
Developer
 
Join Date: Mar 2003
Posts: 1,490
Default

That always bugged me, but I kept forgetting to look at the code. Grab the fix in r1661
Reply With Quote
  #3  
Old 09-13-2010, 04:00 PM
Hmm
Discordant
 
Join Date: Jan 2002
Posts: 276
Default

This fixes same problem with sitting npcs?
__________________
Hmm...
Reply With Quote
  #4  
Old 09-13-2010, 04:38 PM
Akkadius's Avatar
Akkadius
Administrator
 
Join Date: Feb 2009
Location: MN
Posts: 2,071
Default

Quote:
Originally Posted by Hmm View Post
This fixes same problem with sitting npcs?
Most likely not, but I have a Dragon Statue that my players will heavily navigate through here with the next content expansion coming up soon here. And it stores its heading for each time a client talks to the NPC, so it never moves an inch. You can achieve this by doing the following:


Code:
sub EVENT_SPAWN{
quest::settimer("GetVars", 1);
}

sub EVENT_TIMER{
	if ($timer eq "GetVars"){
			my $HEADING = $npc->GetHeading();
			my $NX = $npc->GetX();
			my $NY = $npc->GetY();
			my $NZ = $npc->GetZ();
			$npc->SetEntityVariable(70, $NX);
			$npc->SetEntityVariable(71, $NY);
			$npc->SetEntityVariable(72, $NZ);
			$npc->SetEntityVariable(73, $HEADING);
			quest::stoptimer("GetVars");
			}
	if($timer eq "moveback"){
			my $NX = $npc->GetEntityVariable(70);
			my $NY = $npc->GetEntityVariable(71);
			my $NZ = $npc->GetEntityVariable(72);
			my $HEADING = $npc->GetEntityVariable(73);
			$npc->GMMove($NX, $NY, $NZ, $HEADING);
			quest::stoptimer("moveback");
			}
}

sub EVENT_SAY{
my $NX = $npc->GetEntityVariable(70);
			my $NY = $npc->GetEntityVariable(71);
			my $NZ = $npc->GetEntityVariable(72);
			my $HEADING = $npc->GetEntityVariable(73);
			$npc->GMMove($NX, $NY, $NZ, $HEADING);
			quest::settimer("moveback", 1);

}
Reply With Quote
  #5  
Old 09-13-2010, 08:09 PM
joligario's Avatar
joligario
Developer
 
Join Date: Mar 2003
Posts: 1,490
Default

I debated that when fixing this in the morning. So I went with the lying only. I think you could turn when crouched. Sitting was kinda flaky, but I thought, what the heck. Up to the community, we could do it either way.
Reply With Quote
  #6  
Old 09-13-2010, 11:49 PM
Shadow-Wolf
Dragon
 
Join Date: Oct 2003
Posts: 511
Default

Thanks Akkadius, I was thinking of something along that line but wasn't sure how to implement it.
__________________
How about the power to kill a yak from 200 yards away...WITH MIND BULLETS! thats telekinesis kyle.
Reply With Quote
  #7  
Old 09-13-2010, 11:51 PM
Akkadius's Avatar
Akkadius
Administrator
 
Join Date: Feb 2009
Location: MN
Posts: 2,071
Default

Quote:
Originally Posted by Shadow-Wolf View Post
Thanks Akkadius, I was thinking of something along that line but wasn't sure how to implement it.
No problem.
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:35 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