Aschbourne_PRC8/_module/nss/trash_can_close.nss
GetOffMyYarn d39928374d Area Changes and other fixes
Added CCOH
Fixed some on death issues
Fixed the gaurd
Added Server Enty/ooc
changed some areas back to original craftable
2024-08-30 10:02:16 -04:00

21 lines
454 B
Plaintext

void main()
{
object oPC = GetLastUsedBy();
float fGold;
int iGold2;
// item destruction loop
object oItem = GetFirstItemInInventory(OBJECT_SELF);
while (GetIsObjectValid(oItem) == TRUE)
{
// gives gold for item
fGold=IntToFloat(GetGoldPieceValue(oItem));
iGold2=FloatToInt(fGold * 0.30);
GiveGoldToCreature(oPC, iGold2);
DestroyObject(oItem);
oItem = GetNextItemInInventory(OBJECT_SELF);
}
}