generated from Jaysyn/ModuleTemplate
Initial Commit
Initial Commit
This commit is contained in:
16
_module/nss/insurance_refund.nss
Normal file
16
_module/nss/insurance_refund.nss
Normal file
@@ -0,0 +1,16 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user