Initial upload

Initial upload.
This commit is contained in:
Jaysyn904
2023-09-25 21:32:17 -04:00
parent c1b271b363
commit ec287507a1
10074 changed files with 8442145 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
//::///////////////////////////////////////////////
//:: Name: pgs_chest_close
//:: Copyright (c) 2001 Bioware Corp.
//:://////////////////////////////////////////////
/*
OnClose event for guild storage chests.
*/
//:://////////////////////////////////////////////
//:: Created By: Samius Maximus
//:: Created On:
//:://////////////////////////////////////////////
#include "inc_gsystem_terr"
void main()
{
object oStorage = GetLocalObject (OBJECT_SELF, "Temp_Storage_Creature");
object oChest = GetLocalObject (OBJECT_SELF, "Temp_Storage_Chest");
//--------------------------------------------
//Save the storage creature for persistency.
//--------------------------------------------
SetTerritoryStorageCreature (oStorage, GetPGSStorageTerritory (oChest));
//--------------------------------------------
//Destroy storage creature & unique placeable.
//--------------------------------------------
DeleteLocalInt (oChest, "Currently_In_Use");
DeleteLocalInt (oChest, "Item_Count");
DestroyObject (oStorage);
DestroyObject (OBJECT_SELF);
}