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
  #10  
Old 05-16-2011, 11:13 PM
Astal
Hill Giant
 
Join Date: Mar 2010
Posts: 236
Default

Quote:
Originally Posted by KLS View Post
It was mostly used as an example of how to manipulate the hate lists. To give an idea of how to do what you want to do that way I still suggest Joli's idea.

Ex:

Code:
	#find npc of npc type 123456
	my $parent_npc = $entity_list->GetMobByNpcTypeID(123456);
	if($parent_npc) {
		my $random_target = $parent_npc->GetHateRandom();
		#do something
	}
oh, ok i have that so far, couldnt figure out how to sent the $random_target to the other mob though.

Code:
sub EVENT_ATTACK {
	$laibach = $entity_list->GetMobByNpcTypeID(999424);
	if($laibach) {
		$random_hate = $mob->GetHateRandom();
	}
}
Reply With Quote
 

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 01:37 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