PWE_PRC8/_module/nss/rift_celest_exit.nss
Jaysyn904 ee1dc35889 Initial Commit
Initial Commit
2025-04-03 10:29:41 -04:00

23 lines
648 B
Plaintext

void Port(object oPC)
{
object oTarget = GetWaypointByTag("wp_celest_exit");
location lTarget = GetLocation(oTarget);
AssignCommand(oPC, ClearAllActions());
DelayCommand(3.0, AssignCommand(oPC, ActionJumpToLocation(lTarget)));
ApplyEffectAtLocation(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_FNF_SUMMON_CELESTIAL),lTarget);
}
void main()
{
object oPC = GetPCSpeaker();
effect eEffect = SupernaturalEffect(EffectNegativeLevel(1));
effect eVis = EffectVisualEffect(VFX_IMP_REDUCE_ABILITY_SCORE);
ApplyEffectToObject(DURATION_TYPE_INSTANT, eVis, oPC);
ApplyEffectToObject(DURATION_TYPE_PERMANENT, eEffect, oPC);
DelayCommand(1.0,Port(oPC));
}