AOC_PRC8/_module/nss/insurance_refund.nss
Jaysyn904 5e558169a0 Initial Commit
Initial Commit
2025-04-03 11:24:16 -04:00

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