Initial Commit
Initial Commit [v1.32PRC8]
This commit is contained in:
34
_module/nss/qst_c_3_1.nss
Normal file
34
_module/nss/qst_c_3_1.nss
Normal file
@@ -0,0 +1,34 @@
|
||||
int StartingConditional()
|
||||
{
|
||||
object oPC;
|
||||
object oHench;
|
||||
string sTarget;
|
||||
int iResult;
|
||||
int iQuest;
|
||||
int iFlag;
|
||||
int iIndex;
|
||||
|
||||
oPC = GetPCSpeaker();
|
||||
sTarget = GetLocalString(oPC,"QuestTargetNPC");
|
||||
iQuest = GetLocalInt(oPC,"QuestType");
|
||||
|
||||
iResult = FALSE;
|
||||
iFlag = 0;
|
||||
iIndex = 1;
|
||||
|
||||
while (iIndex < 5)
|
||||
{
|
||||
oHench = GetHenchman(oPC,iIndex);
|
||||
if (GetTag(oHench) == GetLocalString(oPC,"QuestEscort"))
|
||||
{
|
||||
iFlag = 1;
|
||||
}
|
||||
iIndex++;
|
||||
}
|
||||
|
||||
if (iQuest == 3 && sTarget == GetTag(OBJECT_SELF) && iFlag == 1)
|
||||
iResult = TRUE;
|
||||
|
||||
return iResult;
|
||||
}
|
||||
|
Reference in New Issue
Block a user