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
  #5  
Old 05-16-2014, 02:25 AM
Esildor
Hill Giant
 
Join Date: Feb 2010
Posts: 207
Default

Akkadius,

Quote:
Originally Posted by Akkadius
quest::follow(EntityID, [Distance]) # Mob starts to follow "EntityID". The second field, Distance, is optional and can be used to set the distance the Mob will follow it's target at.
The 'EntityID' in the quest::follow code, would that be the same ID I'm using to check distances? for example I'm using this right now to check the distance:

Code:
sub EVENT_SPAWN {
	quest::settimer("add_boss_dist", 3);
	quest::shout("I work");
	}
	
sub EVENT_TIMER {	
	my $npc1 = $entity_list->GetNPCByNPCTypeID(4770003);
	my $npc2 = $entity_list->GetNPCByNPCTypeID(4770004);
	if ($timer eq "add_boss_dist"){
		if(plugin::CheckDistBetween2Ents($npc1, $npc2, 10)){
			quest::shout("I'm in distance.");
			}
			else{
			quest::shout("I'm not in distance.");
			}
		}
	}
}
I had added this to the sub EVENT_SPAWN as well

Code:
quest::settimer(1, 1);
and then plugged in the following to try to make the npc follow and it isn't working.

Code:
if($timer == 1){
		quest::shout("timer works");
		quest::follow($npc1, 10);
		quest::stopttimer(1);
		}
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 11:15 AM.


 

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