Aschbourne_PRC8/_module/nss/vamp_checkarmor.nss
Jaysyn904 f5ffe7d0b9 Module commit
Module commit.
2024-06-14 10:48:20 -04:00

20 lines
475 B
Plaintext

string vamp_checkArmor(object oPC)
{
if (GetItemInSlot(INVENTORY_SLOT_CHEST,oPC)!=OBJECT_INVALID)
{
string sItem = GetSubString(GetTag(GetItemInSlot(INVENTORY_SLOT_CHEST,oPC)),0,4);
if (GetLocalInt(oMod, "iVampSpecialClothes")==0 && GetItemInSlot(INVENTORY_SLOT_CHEST,oPC)!=OBJECT_INVALID)
{
return "Vamp";
}
else
{
return sItem;
}
}
else
{
return "Invalid";
}
}