Added Alhoon template

Added Alhoon template & alter-self support changes by Thomas!#2605.  Updated release archive.
This commit is contained in:
Jaysyn904
2024-08-06 14:18:04 -04:00
parent 98135e6f1a
commit 6b1a173844
12 changed files with 411 additions and 112 deletions

View File

@@ -16,6 +16,8 @@
void main()
{
int iRace = GetRacialType(OBJECT_SELF);
if(GetPRCSwitch(PRC_LICH_ALTER_SELF_DISABLE))
{
FloatingTextStringOnCreature("Lich Alter Self has been disabled in this module.", OBJECT_SELF);
@@ -25,12 +27,22 @@ void main()
int nCurForm = GetAppearanceType(OBJECT_SELF);
int nPCForm = GetTrueForm(OBJECT_SELF);
// Switch to lich
// Switch to lich
if (nPCForm == nCurForm)
{
int nLichLevel = GetLevelByClass(CLASS_TYPE_LICH,OBJECT_SELF);
int nIsDemi = GetHasTemplate(TEMPLATE_DEMILICH,OBJECT_SELF);
if (nLichLevel < 10 && !nIsDemi)
if (iRace == RACIAL_TYPE_ILLITHID)
{
effect eFx = EffectVisualEffect(VFX_COM_CHUNK_RED_SMALL);
ApplyEffectToObject(DURATION_TYPE_TEMPORARY,eFx,OBJECT_SELF);
SetCreatureAppearanceType(OBJECT_SELF, APPEARANCE_TYPE_MINDFLAYER_ALHOON);
SetPortraitResRef(OBJECT_SELF, "mindalhoon");
SetPortraitId(OBJECT_SELF, 771);
}
else if (nLichLevel < 10 && !nIsDemi)
{
effect eFx = EffectVisualEffect(VFX_COM_CHUNK_RED_SMALL);
ApplyEffectToObject(DURATION_TYPE_TEMPORARY,eFx,OBJECT_SELF);