Asch Hunting Changes

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
This commit is contained in:
2024-10-10 14:01:40 -04:00
parent bd6efd3825
commit 458d8792ca
71 changed files with 44276 additions and 7968 deletions

View File

@@ -1,18 +1,20 @@
//OnClosed event of a <span class="highlight">barrel</span> or what is being used as a <span class="highlight">trash</span> can.
void main()
{
//Go through all items in the container, destroying them as we find them.
object oTrash = GetFirstItemInInventory();
while (GetIsObjectValid(oTrash))
{
DestroyObject(oTrash);
object oPC = GetLastUsedBy();
float fGold;
int iGold2;
oTrash = GetNextItemInInventory();
//If this next item is valid, meaning that there is another item in the
//inventory, then the loop will go again.
//Once the inventory has been sifted through, the loop exits and all
//items are destroyed.
// 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);
}
}