void main() { object oPC = GetPCItemLastEquippedBy(); if (GetIsInCombat(oPC)) AssignCommand(oPC, ClearAllActions(TRUE)); }