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,37 +0,0 @@
void MakeCopy(object oItem, object oSelf);
void main()
{
object oSelf = OBJECT_SELF;
object oItem = GetFirstItemInInventory(oSelf);
string sItemTag;
string sItemName;
if (oItem!=OBJECT_INVALID)
{
while (oItem!=OBJECT_INVALID)
{
sItemTag = GetTag(oItem);
sItemName = GetName(oItem);
if (GetStringRight(sItemTag,6)=="_Store")
{
AssignCommand(oItem,DelayCommand(8.0,MakeCopy(oItem,oSelf)));
//SendMessageToPC(GetFirstPC(),"Making New Scroll");
}
if (GetStringLowerCase(GetStringLeft(sItemName,7))=="pattern") DestroyObject(oItem,10.0);
if (GetStringLowerCase(GetStringLeft(sItemName,6))=="recipe") DestroyObject(oItem,10.0);
oItem=GetNextItemInInventory(oSelf);
if (oItem==OBJECT_INVALID) return;
}
}
}
void MakeCopy (object oItem, object oSelf)
{
string sItemTag = GetTag(oItem);
int iTagLength = GetStringLength(sItemTag)-6;
string sNewTag = GetStringLeft(sItemTag,iTagLength)+"a";
CopyObject(oItem,GetLocation(oSelf),oSelf,sNewTag);
DestroyObject(oItem,2.0);
return;
}