Initial upload
Initial upload
This commit is contained in:
25
_module/nss/asg_tes_anvaltrc.nss
Normal file
25
_module/nss/asg_tes_anvaltrc.nss
Normal file
@@ -0,0 +1,25 @@
|
||||
// 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;
|
||||
}
|
||||
Reference in New Issue
Block a user