21 lines
431 B
Plaintext
21 lines
431 B
Plaintext
//Created by Genisys
|
|
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, "legendaryxbow")));
|
|
|
|
FloatingTextStringOnCreature("You are not powerful enough to use this ite, level 30 required!", oPC);
|
|
}
|
|
}
|