View Single Post
  #1  
Old 06-10-2023, 07:43 AM
Jleadford83
Fire Beetle
 
Join Date: Mar 2015
Posts: 12
Question Need help with locking expedition

I can't seem to find the reason this seems to go off. I get no warnings. The debug message fires, but I can still invite a logged in alt.

Code:
sub EVENT_ENTERZONE {
	my $dz = quest::get_expedition();
	if($dz) {
		quest::settimer("lock", 60);
	}
}

sub EVENT_TIMER {
	my $dz = quest::get_expedition();
	if($timer eq "lock" && $dz) {
		quest::stoptimer("lock");
		$dz->SetLocked(true);
		quest::debug("Locked Expedition");
	}
}
I am very new to writing scripts so pls lend me your wisdom.
Reply With Quote