Initial upload

Initial upload
This commit is contained in:
Jaysyn904
2023-09-25 18:13:22 -04:00
parent 684ef76c20
commit 499aba4eb3
5734 changed files with 4843758 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
void cs_DestroyStolenItems(object oPlayer)
{
object oItem;
if (GetIsPC(oPlayer)) {
oItem = GetFirstItemInInventory(oPlayer);
while (GetIsObjectValid(oItem) == TRUE)
{
if (GetStolenFlag(oItem) == TRUE) {
DestroyObject(oItem);
}
oItem = GetNextItemInInventory(oPlayer);
}
for (nCurrentSlot = 0; nCurrentSlot <= NUM_INVENTORY_SLOTS; nCurrentSlot++)
{
oItem = GetItemInSlot(nCurrentSlot, persona);
if (GetIsObjectValid(oItem) && GetStolenFlag(oItem) )
{
DestroyObject(oItem);
}
}
}
}