void main() { object oSigil = GetFirstItemInInventory( GetPCSpeaker() ); int nCount = 0; while( GetIsObjectValid( oSigil ) ) { if( GetTag( oSigil ) == "ShadowknightSigil" ) { DestroyObject( oSigil ); nCount++; } oSigil = GetNextItemInInventory( GetPCSpeaker() ); } int nPrice = 200; GiveGoldToCreature( GetPCSpeaker(), ( nCount * nPrice ) ); }