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

26 lines
692 B
Plaintext

// Set up Custom Token for Enchanted Anivl/Holy Altar
int StartingConditional()
{
object oPC = GetPCSpeaker();
int iResult = FALSE;
string sTag = GetTag(OBJECT_SELF);
if (sTag=="ASG_ENANVIL")
{
SetCustomToken(1970001,"Enchanted Anvil");
int iSor = GetLevelByClass(CLASS_TYPE_SORCERER,oPC);
int iWiz = GetLevelByClass(CLASS_TYPE_WIZARD,oPC);
if (iSor>0 || iWiz>0) iResult = TRUE;
}
else
{
SetCustomToken(1970001,"Holy Altar");
int iClr = GetLevelByClass(CLASS_TYPE_CLERIC,oPC);
int iDrd = GetLevelByClass(CLASS_TYPE_DRUID,oPC);
if (iClr>0 || iDrd>0) iResult = TRUE;
}
return iResult;
}