EN4_PRC8/_module/nss/evil_chkadv3_1.nss
Jaysyn904 b464d8da05 Initial Commit
Initial Commit [v1.32PRC8]
2025-04-03 13:38:45 -04:00

23 lines
484 B
Plaintext

int StartingConditional()
{
int iResult;
int iFlag;
object oPC;
object oNPC;
iResult = FALSE;
oPC = GetPCSpeaker();
if (GetLocalInt(oPC,"EvilQuest") == 3 && GetLocalInt(oPC,"EvilLevel") == 2)
{
oNPC = GetObjectByTag("ip1_evilquest");
// if (GetLocalInt(oPC,GetTag(oNPC)) >= GetLocalInt(oNPC,"TotalQuests"))
if (GetLocalInt(oPC,GetTag(oNPC)) >= GetLocalInt(oNPC,"TotalQuests") && GetLocalInt(oNPC,"TotalQuests") > 0)
iResult = TRUE;
}
return iResult;
}