21 lines
439 B
Plaintext
21 lines
439 B
Plaintext
//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, level 30 required!", oPC);
|
|
}
|
|
}
|