52 lines
1.5 KiB
Plaintext
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;
|
|
}
|