WoR_PRC8/_module/nss/s_destcheststuff.nss
Jaysyn904 b5e28e52f4 Initial commit
Initial commit [1.18]
2025-04-03 11:49:34 -04:00

19 lines
551 B
Plaintext

void main()
{
object oItem = OBJECT_INVALID;
// Clear all contents of the <span class="highlight">chest</span>
oItem = GetFirstItemInInventory();
while (oItem != OBJECT_INVALID )
{
//Make sure people don't stuff <span class="highlight">chest</span> with plot items and break it
SetPlotFlag(oItem, FALSE);
if((GetTag(oItem) != "SHA_EYEOFMOON") && (GetTag(oItem) != "SHA_SHADOWTALISMAN"))
{
DestroyObject( oItem, 0.0 );
oItem = GetNextItemInInventory();
}
}
}