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 09-10-2012, 04:31 PM
provocating's Avatar
provocating
Demi-God
 
Join Date: Nov 2007
Posts: 2,175
Default Updating task during timer tick

I am getting stuck on the very end of this task. Basically an ooze spawns from a different script, grows in size and then is supposed to despawn. After the despawn I need to manually update the task. If you look in my script I also have a death event. If I manually kill the ooze then the task does indeed update. How come I cannot update from the timer event ? Everything works except the task never updates unless I kill the ooze myself.

Code:
## Provocating - Dragons of Mist
## a_hungry_ooze_bud.pl

my $current_size=7;

sub EVENT_SPAWN {
	quest::settimer("increase_size", 3); 
}

sub EVENT_TIMER {
	if($timer eq "increase_size") {
		if ($current_size<25)
		{
			$current_size=$current_size+4;
			quest::npcsize($current_size);
			quest::say("The hungry ooze grows bigger and bigger as it continues to eat the bixie's jum jum silo!");
		} else {
			quest::say("The hungry ooze explodes as it devours all the jum jum in the silo!");
			quest::updatetaskactivity(248, 3); # Bixie Menace: The Silo (#3)
			quest::depop();
		}
	}
}

sub EVENT_DEATH{
	quest::updatetaskactivity(248, 3); # Bixie Menace: The Silo (#3)
}
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 06:43 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