PoA_PRC8/_module/nss/eq_legendarydart.nss

20 lines
412 B
Plaintext
Raw Normal View History

2022-10-07 14:20:31 -04:00
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);
}
}