PRC8 content update

PRC8 content update.  Full compile.  Updated release archive.
This commit is contained in:
Jaysyn904
2024-12-26 22:55:31 -05:00
parent 458d8792ca
commit 9bbad998cd
104 changed files with 7973 additions and 44281 deletions

View File

@@ -1,20 +1,18 @@
//OnClosed event of a <span class="highlight">barrel</span> or what is being used as a <span class="highlight">trash</span> can.
void main()
{
object oPC = GetLastUsedBy();
float fGold;
int iGold2;
//Go through all items in the container, destroying them as we find them.
object oTrash = GetFirstItemInInventory();
while (GetIsObjectValid(oTrash))
{
DestroyObject(oTrash);
// 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);
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.
}
}