Adjusted the minimum spawns to reflect that Aschbourne is now a lower level area instead of higher. Also adjusted the respawn timers since they ranged from 30 seconds all the way up to 15 minutes
21 lines
454 B
Plaintext
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);
|
|
}
|
|
}
|
|
|