Initial upload

Initial upload
This commit is contained in:
Jaysyn904
2023-09-25 20:24:01 -04:00
parent 4e16ca63ca
commit 5197ad9a4d
7741 changed files with 5391820 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
/*/////////////////////////////////////
// Persistent Storage
// Non-Specific
// OnOpen Event
// Sharona Curves
// 06/17/2007
//
/////////////////////////////////////*/
void main()
{
if(GetLocalInt(OBJECT_SELF, "DoOnce") == 1)
return;
SetLocalInt(OBJECT_SELF, "DoOnce", 1);
string sTag = GetStringLeft(GetTag(OBJECT_SELF), 10);
int cItems=0;
int total = GetCampaignInt("EDChests", sTag+"_items");
if(total == 0)
return;
sTag = GetTag(OBJECT_SELF) + "_0";
object oItem = RetrieveCampaignObject("EDChests", sTag, GetLocation(OBJECT_SELF), OBJECT_SELF);
while(GetIsObjectValid(oItem) && (cItems < total))
{
cItems++;
sTag = GetTag(OBJECT_SELF) + "_" + IntToString(cItems);
oItem = RetrieveCampaignObject("EDChests", sTag, GetLocation(OBJECT_SELF), OBJECT_SELF);
}
}