Alangara_PRC8/_module/nss/ke_darkmouthatta.nss
Jaysyn904 86feb9ca6f Initial commit
Initial commit.
2024-06-05 21:21:06 -04:00

41 lines
869 B
Plaintext

string sDeny;
/* Script generated by
Lilac Soul's NWN Script Generator, v. 1.6
For download info, please visit:
http://www.lilacsoul.revility.com */
//Put this OnEnter
void main()
{
object oPC = GetEnteringObject();
if (!GetIsPC(oPC)) return;
if (!(GetAlignmentGoodEvil(oPC) == ALIGNMENT_GOOD))
{
sDeny="Welcome to Darkmoor slave.";
SendMessageToPC(oPC, sDeny);
return;
}
object oCaster;
oCaster = GetObjectByTag("guardcrystal");
object oTarget;
oTarget = oPC;
AssignCommand(oCaster, ActionCastSpellAtObject(SPELL_METEOR_SWARM, oTarget, METAMAGIC_ANY, TRUE, 30, PROJECTILE_PATH_TYPE_DEFAULT, TRUE));
oCaster = GetObjectByTag("guardcrystal");
oTarget = oPC;
DelayCommand(5.0, AssignCommand(oCaster, ActionCastSpellAtObject(SPELL_BIGBYS_FORCEFUL_HAND, oTarget, METAMAGIC_ANY, TRUE, 30, PROJECTILE_PATH_TYPE_DEFAULT, TRUE)));
}