Area Changes and other fixes

added areas and ccoh,
fixed some areas to work with crafting
fixed some on death issues
added server entry/ooc
This commit is contained in:
2024-08-30 10:38:04 -04:00
parent d39928374d
commit 8622e5ce08
17234 changed files with 0 additions and 4253346 deletions

View File

@@ -1,50 +0,0 @@
//ScarFace's Persistent Baking system -OnClose-
void main()
{
ActionLockObject(OBJECT_SELF);
object oPC = GetLastUsedBy();
string sKey = GetPCPublicCDKey(oPC);
object oItem = GetFirstItemInInventory(OBJECT_SELF);
int iCount = 1;
while (GetIsObjectValid(oItem))
{
oItem = GetNextItemInInventory(OBJECT_SELF);
iCount++;
}
if (iCount >=101)
{
FloatingTextStringOnCreature("**WARNING** You can't store more than 100 items. You have "+IntToString(iCount)+" items in the chest. No items were saved. Please remove some items", oPC);
ActionUnlockObject(OBJECT_SELF);
return;
}
iCount = 1;
oItem = GetFirstItemInInventory(OBJECT_SELF);
if (!GetIsObjectValid(oItem))
{
iCount = 0;
}
string sCount;
while (GetIsObjectValid(oItem))
{
sCount = IntToString(iCount);
StoreCampaignObject("STORAGE", sKey+sCount, oItem, oPC);
DestroyObject(oItem);
oItem = GetNextItemInInventory(OBJECT_SELF);
iCount++;
}
if (iCount == 0)
{
FloatingTextStringOnCreature("Chest empty, No items saved", oPC);
ActionUnlockObject(OBJECT_SELF);
return;
}
FloatingTextStringOnCreature("Items successfully saved", oPC);
ActionUnlockObject(OBJECT_SELF);
}