17 lines
431 B
Plaintext
17 lines
431 B
Plaintext
|
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);
|
||
|
}
|
||
|
}
|