//Created by Genisys / Guile 5/20/08
void main()
{

object oPC = GetPCItemLastEquippedBy();

object oItem;
oItem = GetPCItemLastEquipped();

if (!GetIsPC(oPC)) return;

if (GetHitDice(oPC) <= 29)
   {
   AssignCommand(oPC, ClearAllActions());

   AssignCommand(oPC, ActionUnequipItem(GetItemInSlot(INVENTORY_SLOT_RIGHTHAND, oPC)));

   FloatingTextStringOnCreature("You are not powerful enough to use this ite, level 30 required!", oPC);
 }
}