EN4_PRC8/_module/nss/qp_ta_holyavengr.nss

19 lines
449 B
Plaintext
Raw Permalink Normal View History

#include "utl_i_sqluuid"
int StartingConditional()
{
// Get the PC who is involved in this conversation
object oPC = GetPCSpeaker();
int iQuestPoints;
iQuestPoints = SQLocalsUUID_GetInt(oPC,"QuestPoints");
// The PC must be one of the listed classes.
if (GetLevelByClass(CLASS_TYPE_PALADIN, oPC) < 1 && iQuestPoints < 31)
return FALSE;
// If we make it this far, we have passed all tests.
return TRUE;
}