View Single Post
  #2  
Old 05-19-2008, 11:56 AM
Cripp's Avatar
Cripp
Discordant
 
Join Date: Oct 2003
Location: The Shire
Posts: 474
Default

im not sure if there is any quest function that repops or depops the whole zone..
but it would go something like this..
Code:
sub EVENT_SAY
{
	if ($text=~/hail/i)
	{
		quest::say("Hail $name!");
		if (!defined($qglobals{$zonerepop}))
		{
			quest::say("zone will depop in 45 mins!");
			quest::settimer("zrepop",823421);
			quest::setglobal("zonerepop",1,0,M45);
		}

	}
}

sub EVENT_TIMER
{
	if ($timer eq "zrepop")
	{
		quest::ZONE_REPOP_COMMAND();
		quest::delglobal("zonerepop");
	}
}
note.. used the global var so the timer can only be triggered once while its timing.. not sure if it would be required but would be how i would have done it
__________________
Nug Blazers - ServerOP / founder
^^comming... later!

www.nugblazers.com

Last edited by Cripp; 05-26-2008 at 07:27 PM..
Reply With Quote