PWE_PRC8/_module/nss/2_take_item_b.nss
Jaysyn904 ee1dc35889 Initial Commit
Initial Commit
2025-04-03 10:29:41 -04:00

18 lines
429 B
Plaintext

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 ) );
}