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

ok, what event would i put that in?

I see you define your own sub, i didnt even know you could do that

also does the npc getting the list automatically set a target?

Like would this be the correct usage

Sorry for being dumb, i cant exactly tell whats going on in the code.

Not sure how i can then use that code to get a target in the hatelist on either the npc with the hatelist code or the casting npc.

Would you guys be able to explain your sub better or help me do it an easier way with getentity list and randomhate?

Code:
sub EVENT_TIMER {
	
	my $range = 120; #maximum number
	my $minimum = 60; #minimum number

	my $random_number = int(rand($range)) + $minimum; #generate a number between $minimum and $range
  
	if (($timer eq "CastPlague" ) && (defined($entity_list->GetNPCByNPCTypeID(999426))))
	{
		hate_clone(999426, 2700253); #target player on hatelist
		plugin::CastOnTarget(21480); #Virulent Plague
		quest::shout("You cannot defeat our mother!!!");
		quest::settimer("CastPlague", $random_number);
	}	
}
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 11:01 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