Initial commit
Initial commit. Updated release archive.
This commit is contained in:
49
_module/nss/qst_c_done.nss
Normal file
49
_module/nss/qst_c_done.nss
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user