void main() { object oPC; oPC = GetEnteringObject(); if (GetIsPC(oPC)) { SetLocalInt(oPC,"NoRandomEncounter",1); } }