//:://///////////////////////////////////////////// //:: FileName resref //::////////////////////////////////////////////// //::////////////////////////////////////////////// //:: Created By: Script Wizard //:: Created On: 2/18/03 2:54:15 AM //::////////////////////////////////////////////// int StartingConditional() { // Restrict based on the player's class int iPassed = 0; if((iPassed == 0) && (GetLevelByClass(CLASS_TYPE_CLERIC, GetPCSpeaker()) >= 1)) iPassed = 1; if((iPassed == 0) && (GetLevelByClass(CLASS_TYPE_SORCERER, GetPCSpeaker()) >= 1)) iPassed = 1; if((iPassed == 0) && (GetLevelByClass(CLASS_TYPE_DRUID, GetPCSpeaker()) >= 1)) iPassed = 1; if((iPassed == 0) && (GetLevelByClass(CLASS_TYPE_WIZARD, GetPCSpeaker()) >= 1)) iPassed = 1; if(iPassed == 0) return FALSE; string sArDiv = GetLocalString(OBJECT_SELF,"ASG_MIC_MAGICTYPE"); string sTag; if (sArDiv=="A") { sTag="ASG_ENANVIL"; } else { sTag="ASG_ENALTER"; } object oTarget = GetNearestObjectByTag(sTag,OBJECT_SELF); ExecuteScript("asg_rul_micscfx",oTarget); return TRUE; }