void main() { object oPC = GetPCItemLastEquippedBy(); object oItem; oItem = GetPCItemLastEquipped(); if (!GetIsPC(oPC)) return; if (GetHitDice(oPC) <= 20) { AssignCommand(oPC, ClearAllActions()); AssignCommand(oPC, ActionUnequipItem(GetItemPossessedBy(OBJECT_SELF, "legendarydarts"))); FloatingTextStringOnCreature("You are not powerful enough to use this item, level 21 required!", oPC); } }