generated from Jaysyn/ModuleTemplate
Initial upload
Initial upload.
This commit is contained in:
18
_module/nss/pc_pchest.nss
Normal file
18
_module/nss/pc_pchest.nss
Normal file
@@ -0,0 +1,18 @@
|
||||
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);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user