generated from Jaysyn/ModuleTemplate
Initial upload
Initial upload.
This commit is contained in:
29
_module/nss/vtw_isspellcaste.nss
Normal file
29
_module/nss/vtw_isspellcaste.nss
Normal file
@@ -0,0 +1,29 @@
|
||||
//::///////////////////////////////////////////////
|
||||
//:: FileName vtw_isspellcaste
|
||||
//:://////////////////////////////////////////////
|
||||
//:://////////////////////////////////////////////
|
||||
//:: Created By: Script Wizard
|
||||
//:: Created On: 9/11/2005 12:59:49 PM
|
||||
//:://////////////////////////////////////////////
|
||||
int StartingConditional()
|
||||
{
|
||||
|
||||
// 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_PALE_MASTER, 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;
|
||||
}
|
Reference in New Issue
Block a user