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

18 lines
409 B
Plaintext

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