Initial commit

Initial commit.  Updated release archive.
This commit is contained in:
Jaysyn904
2024-06-13 15:08:33 -04:00
parent c0bd67a6a7
commit a6f6db7303
5236 changed files with 4203994 additions and 0 deletions

View File

@@ -0,0 +1,49 @@
#include "en5_misc"
int StartingConditional()
{
int iResult;
int iQuestType;
int iIndex;
string sTag;
string sWP;
object oWP;
object oMob;
iResult = FALSE;
iQuestType = GetLocalInt(GetPCSpeaker(),"QuestType");
//SendMessageToPC(GetFirstPC(),"QuestType=" + IntToString(iQuestType));
if (iQuestType == 1 || iQuestType == 6)
{
iResult = TRUE;
sTag = GetLocalString(GetPCSpeaker(),"QuestMob");
//SendMessageToPC(GetFirstPC(),"QuestMob=" + sTag);
oMob = GetObjectByTag(sTag);
if (GetIsObjectValid(oMob))
iResult = FALSE;
}
if (iQuestType == 2 || iQuestType == 7)
{
iResult = TRUE;
iIndex = 1;
sTag = GetLocalString(GetPCSpeaker(),"QuestMobZone") + "_" + GetLocalString(GetPCSpeaker(),"QuestCamp") + "_";
sWP = sTag + IntToString(iIndex);
oWP = GetObjectByTag(sWP);
//GetError("Checking " + GetTag(oWP));
while (GetIsObjectValid(oWP))
{
oMob = GetObjectByTag(sWP + "_S");
//GetError(GetTag(oMob) + "=" + GetName(oMob));
if (GetIsObjectValid(oMob))
iResult = FALSE;
iIndex++;
sWP = sTag + IntToString(iIndex);
oWP = GetObjectByTag(sWP);
}
}
return iResult;
}