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
  #1  
Old 08-26-2012, 07:24 PM
Born2rot
Fire Beetle
 
Join Date: Apr 2010
Posts: 16
Default Need some timer help please.

So I have a custom pet that is a buff bot that can be summoned from a clicky for 15 seconds. When he spawns he'll AE buff and then if anyone enters or leaves his area he'll buff them as well. It's got a cooldown on it, and it's nice for rebuffing while raiding. My issue is, for some reason he's not depoping anymore when the timer is up. Not sure what was changed. If anyone could help, thanks!

Code:
sub EVENT_SPAWN {
	my $NPCName = $npc->GetCleanName();
	$x = $npc->GetX();
    $y = $npc->GetY();
	$range = 25;
   
	quest::set_proximity($x - $range, $x + $range, $y - $range, $y + $range);
	quest::settimer("killbuff", 15);
	quest::shout("WOOOO! Glad to be out of that freaking bottle! I'm sure if I was a dog I'd hump your leg right now I'm so happy! All those near me come get some buffs, 
	I feel I'm only here for a short time!");
	
	my @clientlist = $entity_list->GetClientList();
		foreach $ent (@clientlist)
	    {
	    $ent->SpellFinished(5278, $ent);
		$ent->SpellFinished(5415, $ent);
		$ent->SpellFinished(5312, $ent);
		$ent->SpellFinished(5405, $ent);
		$ent->SpellFinished(5521, $ent);
		$ent->SpellFinished(5365, $ent);
		$ent->SpellFinished(278, $ent);
		$ent->SpellFinished(939, $ent);
		$ent->SpellFinished(3360, $ent);
		$ent->SpellFinished(25251, $ent);
		
		}
	}
	
sub EVENT_ENTER
{
quest::say("Feel my power!");

quest::selfcast(5278);
quest::selfcast(5415);
quest::selfcast(5312);
quest::selfcast(5405);
quest::selfcast(5521);
quest::selfcast(5365);
quest::selfcast(278);
quest::selfcast(939);
quest::selfcast(3360);
quest::selfcast(13);
quest::selfcast(25251);
}


}
sub EVENT_EXIT
{
quest::say("Feel my power!");
 
quest::selfcast(5278);
quest::selfcast(5415);
quest::selfcast(5312);
quest::selfcast(5405);
quest::selfcast(5521);
quest::selfcast(5365);
quest::selfcast(278);
quest::selfcast(939);
quest::selfcast(3360);
quest::selfcast(13);
quest::selfcast(25251);
}	
	
sub EVENT_TIMER {
	if($timer eq "killbuff") {
	quest::shout("Crap! The magic is pulling me back into that stupid bottle.....!");
	quest::depop();
	quest::stoptimer("killbuff");
	}
}
Goregut
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 10:18 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