RoT2_PRC8/_module/nss/asg_resdesk_06t.nss
Jaysyn904 499aba4eb3 Initial upload
Initial upload
2023-09-25 18:13:22 -04:00

39 lines
1.1 KiB
Plaintext

//::///////////////////////////////////////////////
//:: 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;
}