Code:
sub EVENT_ENTERZONE {
#this is all the contested zones
my @zonelist = qw(
commons
mischiefplane
);
if ( grep { $_ eq $zonesn } @zonelist ) #Save PVP state if you zone into a contested zone
{
quest::setglobal("PvPState",$client->GetPVP(),5,"F"); #Adds their PVPstate to global
$client->SetPVP(1);
}
}
This will make it so it only flags you when zoning into your contested zones