Rune_PRC8/_module/nss/guildkeyhave.nss
Jaysyn904 d1c309ae63 Initial commit
Initial commit
2024-09-13 09:10:39 -04:00

52 lines
1.5 KiB
Plaintext

//::///////////////////////////////////////////////
//:: FileName guildkeyhave
//:://////////////////////////////////////////////
//:://////////////////////////////////////////////
//:: Created By: Script Wizard
//:: Created On: 6/15/2003 3:18:16 AM
//:://////////////////////////////////////////////
#include "nw_i0_tool"
#include "prc_class_const"
int StartingConditional()
{
object oPC = GetPCSpeaker();
//:: Full Arcane Casters
int iArcane = GetLevelByClass(CLASS_TYPE_WIZARD, oPC)
+ GetLevelByClass(CLASS_TYPE_SORCERER, oPC)
+ GetLevelByClass(CLASS_TYPE_DRAGONFIRE_ADEPT, oPC)
+ GetLevelByClass(CLASS_TYPE_DRAGON_SHAMAN, oPC)
+ GetLevelByClass(CLASS_TYPE_DREAD_NECROMANCER, oPC)
+ GetLevelByClass(CLASS_TYPE_BEGUILER, oPC)
+ GetLevelByClass(CLASS_TYPE_SHADOWCASTER, oPC)
+ GetLevelByClass(CLASS_TYPE_WARMAGE, oPC)
+ GetLevelByClass(CLASS_TYPE_BINDER, oPC)
+ GetLevelByClass(CLASS_TYPE_TRUENAMER, oPC)
+ GetLevelByClass(CLASS_TYPE_WARLOCK, oPC);
//:: Full (non-druidic) Divine Casters
int iDivine = GetLevelByClass(CLASS_TYPE_CLERIC, oPC)
+ GetLevelByClass(CLASS_TYPE_ARCHIVIST, oPC)
+ GetLevelByClass(CLASS_TYPE_FAVOURED_SOUL, oPC)
+ GetLevelByClass(CLASS_TYPE_HEALER, oPC);
//:: Restrict based on the player's class
int iPassed = 0;
if(iArcane >= 1)
iPassed = 1;
if(iDivine >= 1)
iPassed = 1;
if(iPassed == 0)
return FALSE;
//:: Make sure the PC speaker has these items in their inventory
if(!HasItem(oPC, "MagicGuildKey"))
return FALSE;
return TRUE;
}