Jaysyn904 6ec137a24e Updated AMS marker feats
Updated AMS marker feats.  Removed arcane & divine marker feats.  Updated Dread Necromancer for epic progression. Updated weapon baseitem models.  Updated new weapons for crafting & npc equip.
 Updated prefix.  Updated release archive.
2024-02-11 14:01:05 -05:00

37 lines
1.3 KiB
Plaintext

/*:://////////////////////////////////////////////
//:: Spell Name Imprisonment : On Enter
//:: Spell FileName PHS_S_ImprisonA
//:://////////////////////////////////////////////
//:: Spell Effects Applied / Notes
//:://////////////////////////////////////////////
Set plot flag, set to uncommandable, if not a DM.
//:://////////////////////////////////////////////
//:: Created By: Jasperre
//::////////////////////////////////////////////*/
#include "PHS_INC_SPELLS"
void main()
{
// Set plot flag on the enterer (if not a DM)
object oEnterer = GetEnteringObject();
// Make sure has spell effect as else it is probably bad AI and a familiar.
if(!GetIsDM(oEnterer) && GetHasSpellEffect(PHS_SPELL_IMPRISONMENT, oEnterer))
{
// We set them to uncommandable.
SetCommandable(FALSE, oEnterer);
// Set plot flag to true, to stop any damage
SetPlotFlag(oEnterer, TRUE);
if(GetIsPC(oEnterer))
{
// Death screen for players
DelayCommand(3.0, PopUpDeathGUIPanel(oEnterer, FALSE , TRUE, 0, "You have been imprisoned on a deserted plane, and can only be freed by Freedom"));
}
}
else if(GetIsDM(oEnterer))
{
PHS_RemoveSpellEffectsFromTarget(PHS_SPELL_IMPRISONMENT, oEnterer);
}
}