void main() { object oPC = GetPCSpeaker(); int iRefund = GetLocalInt(oPC, "refund"); //SetLocalInt(oPC, "haggle", 0); GiveGoldToCreature(oPC, iRefund); SetLocalInt(oPC, "refund", 0); PlaySound("it_coins"); object oItem = GetFirstItemInInventory(oPC); while (GetIsObjectValid(oItem)) { if (oItem==GetObjectByTag("insurance")) {DestroyObject(oItem);} oItem = GetNextItemInInventory(oPC); } }