EN6_PRC8/_module/nss/qst_quick_c.nss

27 lines
842 B
Plaintext
Raw Permalink Normal View History

int StartingConditional()
{
int iResult;
int iQuest;
iResult = FALSE;
iQuest = GetLocalInt(GetPCSpeaker(),"QuickQuest");
if (iQuest==1)
{
if (GetLocalInt(OBJECT_SELF,"QuestComplete") == 0 && GetLocalString(GetPCSpeaker(),"QuestGiver") == GetTag(OBJECT_SELF))
iResult = TRUE;
//if (GetLocalInt(GetPCSpeaker(),"QuestType") == 4 && GetLocalString(GetPCSpeaker(),"QuestNPC") == GetTag(OBJECT_SELF))
// iResult = TRUE;
if (GetLocalString(GetPCSpeaker(),"QuestNPC") == GetTag(OBJECT_SELF))
iResult = TRUE;
//if (GetLocalInt(GetPCSpeaker(),"QuestType") == 4 && GetLocalString(GetPCSpeaker(),"QuestNPC") != GetTag(OBJECT_SELF))
if (GetLocalString(GetPCSpeaker(),"QuestNPC") != "" && GetLocalString(GetPCSpeaker(),"QuestNPC") != GetTag(OBJECT_SELF))
iResult = FALSE;
}
return iResult;
}