37 lines
1.3 KiB
Plaintext
37 lines
1.3 KiB
Plaintext
//::///////////////////////////////////////////////
|
|
//:: FileName vtw_islearned
|
|
//:://////////////////////////////////////////////
|
|
//:://////////////////////////////////////////////
|
|
//:: Created By: Script Wizard
|
|
//:: Created On: 9/11/2005 1:06:57 PM
|
|
//:://////////////////////////////////////////////
|
|
int StartingConditional()
|
|
{
|
|
object oPC = GetPCSpeaker();
|
|
|
|
// Restrict based on the player's class
|
|
int iPassed = 0;
|
|
if(GetLevelByClass(CLASS_TYPE_ARCANE_ARCHER, GetPCSpeaker()) >= 1)
|
|
iPassed = 1;
|
|
if((iPassed == 0) && (GetLevelByClass(CLASS_TYPE_BARD, GetPCSpeaker()) >= 1))
|
|
iPassed = 1;
|
|
if((iPassed == 0) && (GetLevelByClass(CLASS_TYPE_CLERIC, GetPCSpeaker()) >= 1))
|
|
iPassed = 1;
|
|
if((iPassed == 0) && (GetLevelByClass(CLASS_TYPE_HARPER, GetPCSpeaker()) >= 1))
|
|
iPassed = 1;
|
|
if((iPassed == 0) && (GetLevelByClass(CLASS_TYPE_MONK, GetPCSpeaker()) >= 1))
|
|
iPassed = 1;
|
|
if((iPassed == 0) && (GetLevelByClass(CLASS_TYPE_PALE_MASTER, GetPCSpeaker()) >= 1))
|
|
iPassed = 1;
|
|
if((iPassed == 0) && (GetLevelByClass(CLASS_TYPE_DRAGON_DISCIPLE, GetPCSpeaker()) >= 1))
|
|
iPassed = 1;
|
|
if((iPassed == 0) && (GetLevelByClass(CLASS_TYPE_SORCERER, GetPCSpeaker()) >= 1))
|
|
iPassed = 1;
|
|
if((iPassed == 0) && (GetLevelByClass(CLASS_TYPE_WIZARD, GetPCSpeaker()) >= 1))
|
|
iPassed = 1;
|
|
if(iPassed == 0)
|
|
return FALSE;
|
|
|
|
return TRUE;
|
|
}
|