RoT2_PRC8/_module/nss/spirit_rewrd_chk.nss
Jaysyn904 499aba4eb3 Initial upload
Initial upload
2023-09-25 18:13:22 -04:00

48 lines
1.9 KiB
Plaintext

//::///////////////////////////////////////////////
//:: FileName spirit_rewrd_chk
//:://////////////////////////////////////////////
//:://////////////////////////////////////////////
//:: Created By: Script Wizard
//:: Created On: 7/20/2003 10:53:36 AM
//:://////////////////////////////////////////////
int StartingConditional()
{
// Restrict based on the player's class
int iPassed = 0;
if(GetLevelByClass(CLASS_TYPE_ARCANE_ARCHER, GetPCSpeaker()) >= 15)
iPassed = 1;
if((iPassed == 0) && (GetLevelByClass(CLASS_TYPE_ASSASSIN, GetPCSpeaker()) >= 15))
iPassed = 1;
if((iPassed == 0) && (GetLevelByClass(CLASS_TYPE_BARBARIAN, GetPCSpeaker()) >= 15))
iPassed = 1;
if((iPassed == 0) && (GetLevelByClass(CLASS_TYPE_BARD, GetPCSpeaker()) >= 15))
iPassed = 1;
if((iPassed == 0) && (GetLevelByClass(CLASS_TYPE_BLACKGUARD, GetPCSpeaker()) >= 15))
iPassed = 1;
if((iPassed == 0) && (GetLevelByClass(CLASS_TYPE_CLERIC, GetPCSpeaker()) >= 15))
iPassed = 1;
if((iPassed == 0) && (GetLevelByClass(CLASS_TYPE_DRUID, GetPCSpeaker()) >= 15))
iPassed = 1;
if((iPassed == 0) && (GetLevelByClass(CLASS_TYPE_FIGHTER, GetPCSpeaker()) >= 15))
iPassed = 1;
if((iPassed == 0) && (GetLevelByClass(CLASS_TYPE_HARPER, GetPCSpeaker()) >= 15))
iPassed = 1;
if((iPassed == 0) && (GetLevelByClass(CLASS_TYPE_PALADIN, GetPCSpeaker()) >= 15))
iPassed = 1;
if((iPassed == 0) && (GetLevelByClass(CLASS_TYPE_RANGER, GetPCSpeaker()) >= 15))
iPassed = 1;
if((iPassed == 0) && (GetLevelByClass(CLASS_TYPE_ROGUE, GetPCSpeaker()) >= 15))
iPassed = 1;
if((iPassed == 0) && (GetLevelByClass(CLASS_TYPE_SHADOWDANCER, GetPCSpeaker()) >= 15))
iPassed = 1;
if((iPassed == 0) && (GetLevelByClass(CLASS_TYPE_SORCERER, GetPCSpeaker()) >= 15))
iPassed = 1;
if((iPassed == 0) && (GetLevelByClass(CLASS_TYPE_WIZARD, GetPCSpeaker()) >= 15))
iPassed = 1;
if(iPassed == 0)
return FALSE;
return TRUE;
}