31 lines
630 B
Plaintext
31 lines
630 B
Plaintext
#include "sql_db_partywide"
|
|
|
|
int StartingConditional()
|
|
{
|
|
object oPC;
|
|
string sTarget;
|
|
int iResult;
|
|
int iQuest;
|
|
int iOverall;
|
|
string sQuestTargetMob;
|
|
object oTarget;
|
|
|
|
oPC = GetPCSpeaker();
|
|
sTarget = GetLocalString(oPC,"QuestTargetNPC");
|
|
iQuest = GetLocalInt(oPC,"QuestType");
|
|
iOverall = SQLocalsUUID_GetInt(oPC,"OnOverallQuest");
|
|
|
|
iResult = FALSE;
|
|
|
|
if (iQuest == 1 && sTarget == GetTag(OBJECT_SELF) && iOverall == 0)
|
|
{
|
|
sQuestTargetMob = GetLocalString(GetPCSpeaker(),"QuestTargetMob");
|
|
oTarget = GetObjectByTag(sQuestTargetMob);
|
|
if (!GetIsObjectValid(oTarget))
|
|
iResult = TRUE;
|
|
}
|
|
|
|
return iResult;
|
|
}
|
|
|