#include "nw_i0_plot"
const string sRatWhisker = "Replace this with the tag of the rat wiskers";
void main()
{
object oPC = GetPCSpeaker();
int nNumWhiskers = GetNumItems(oPC,sRatWhisker);
TakeNumItems(oPC,sRatWhisker,nNumWhiskers);
GiveGoldToCreature(oPC,nNumWhiskers * 15);
}
Just place you tag for the whiskers in place of the string up top.
ex.
const string sRatWhisker = "RatWhisker";
I also assumed that you wanted it wtitten for an 'Action Taken' script from a conversation node.