PGCC_PRC8/_module/nss/pc_pchest.nss

19 lines
504 B
Plaintext
Raw Permalink Normal View History

2024-10-09 14:17:22 -04:00
void main()
{
object oPC = GetLastDisturbed();
object oItem = GetFirstItemInInventory(OBJECT_SELF);
while (GetIsObjectValid(oItem))
{
if (GetBaseItemType(oItem) == BASE_ITEM_LARGEBOX)
{
string sName = GetName(oItem);
SendMessageToPC(oPC, sName + " or other container objects can not be saved with persistant chest inventory.");
return;
}
oItem = GetNextItemInInventory(OBJECT_SELF);
}
}