Thread: Account Status
View Single Post
  #4  
Old 03-13-2017, 07:00 PM
ghanja's Avatar
ghanja
Dragon
 
Join Date: Aug 2012
Location: Hershey, PA
Posts: 499
Default

You don't have to do that via status. I either didn't know about SetAccountFlag, it didn't work for me or was added after I made the code I exampled above.

Code:
sub EVENT_ENTERZONE {
	my @flyzones = ("commons","freportw","oasis");
	if ($zonesn ~~ @flyzones) {
		$client->SetFlyMode(1);
	}
}

sub EVENT_ZONE {
	$client->SetFlyMode(0);
}
Reply With Quote