16 lines
479 B
Plaintext
16 lines
479 B
Plaintext
// Treasure Chest
|
|
#include "NW_O2_CONINCLUDE"
|
|
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);
|
|
DestroyObject( oItem, 0.0 );
|
|
oItem = GetNextItemInInventory();
|
|
}
|
|
}
|