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 10-23-2009, 12:07 PM
nightsta69
Hill Giant
 
Join Date: May 2005
Posts: 134
Default

one of the ways i'm tryin to see will work, is during each EVENT_WAYPOINT the main NPC will signal to each minion, and the minion will check itself in relation to its position to the main NPC and readjust. but i'm still learning the perl functions, so still difficult for me.

something along the lines of NPC A signals NPC B. NPC B checks NPC A's $x,$y then checks its own $x,$y. and if they aren't at $x,$y+10, then moveto $x,$y+10. but I can't figure out how to find NPC A's coords with NPC B.
__________________
Server Op of Bonds of Strength(custom-Legit)
Reply With Quote
  #2  
Old 10-23-2009, 01:44 PM
nightsta69
Hill Giant
 
Join Date: May 2005
Posts: 134
Default

Code:
if($signal == 5){
		quest::say("Thanks arias, i'm following you.");
		my $revoltldrID = 189490;
		my $getmobbynpctype = $entity_list->GetMobByNpcTypeID($revoltldrID);
		my $follow_target = $getmobbynpctype->GetID();
		my $x = $npc->GetX();
		my $y = $npc->GetY();
                my $z = $npc->GetZ();
		my $ldrX = $follow_target->getX();
		my $ldrY = $follow_target->getY();
		my $partywalk = $qglobals{$name."partywalk"};
		quest::say("ldrs coords is $ldrX,$ldrY");
		quest::SetRunning(1);
			while($partywalk == 1) {
				if($x == $ldrX && $y != $ldrY+10) {
					quest::moveto($x,$ldrY+10,$z);
				}
			quest::SetRunning(0);
			}
	}
heres what i've come up with, tho I don't think it is getting $ldrX and $ldrY. the global is being defined by another NPC, and it is being defined. seems only hang up is getting the other NPC's coords. any help would be greatly appreciated.
__________________
Server Op of Bonds of Strength(custom-Legit)
Reply With Quote
  #3  
Old 10-23-2009, 02:47 PM
nightsta69
Hill Giant
 
Join Date: May 2005
Posts: 134
Default

I redid it, cause after looking at it, it didn't look right to me. noticed a few errors.

Code:
if($signal == 5){
		quest::say("Thanks arias, i'm following you.");
		my $revoltldrID = 189490;
		my $getmobbynpctype = $entity_list->GetMobByNpcTypeID($revoltldrID);
		my $follow_target = $getmobbynpctype->GetID();
		my $x = $npc->GetX();
		my $y = $npc->GetY();
		my $z = $npc->GetZ();
		quest::say("my coords are $x,$y");
		my $ldrX = $follow_target->getX();
		my $ldrY = $follow_target->getY();
		my $partywalk = $qglobals{$name."partywalk"};
		quest::say("ldrs coords is $ldrX,$ldrY");
		quest::SetRunning(1);
			while($partywalk == 1) {
				if($x != $ldrX || $y != $ldrY+10) {
					$npc->moveto($ldrX,$ldrY+10,$z);
				}
			quest::SetRunning(0);
			}
	}
now i'm certain the only problem is having NPC B find NPC A's coords, cause NPC B will tell me his, but won't tell me NPC A's.
__________________
Server Op of Bonds of Strength(custom-Legit)
Reply With Quote
Reply

Thread Tools
Display Modes

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