Files
HeroesStone_PRC8/_module/nss/qst_ck_min_level.nss
Jaysyn904 1eefc84201 Initial Commit
Initial Commit.
2025-09-14 15:40:46 -04:00

24 lines
812 B
Plaintext

/* -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Forsettii's Quest Builder System.
Version 1.0
Created for Layonara Online
Forsettii Forsettii@yahoo.com
April 7, 2004
Minimum Level that you can be to do level
Variables: min_level - Min level before it is not an option.
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= */
int StartingConditional()
{
object oPC = GetPCSpeaker();
int ilevel = GetLocalInt(OBJECT_SELF, "min_level");
// Restrict based on the player's class
int iPassed = 0;
if(GetHitDice(oPC) >= ilevel)
iPassed = 1;
if(iPassed == 0)
return FALSE;
return TRUE;
}