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

19 lines
914 B
Plaintext

void main()
{
object oSelf = OBJECT_SELF;
object oPC = GetPCSpeaker();
location lTarget = GetLocation(oPC);
location lHome = GetLocation(GetObjectByTag("SOT_HOMEPOINT"));
SetLocalLocation(oPC, "SOT_LASTUSED", GetLocation(oPC));
ActionCastFakeSpellAtObject(SPELL_MINOR_GLOBE_OF_INVULNERABILITY, oSelf);
DelayCommand(3.0, ApplyEffectAtLocation(DURATION_TYPE_TEMPORARY, EffectVisualEffect(VFX_FNF_SUMMON_MONSTER_3), lTarget, 5.0));
DelayCommand(3.0, ApplyEffectAtLocation(DURATION_TYPE_TEMPORARY, EffectVisualEffect(VFX_DUR_LIGHT_RED_20), lTarget, 30.0));
DelayCommand(3.0, ApplyEffectAtLocation(DURATION_TYPE_TEMPORARY, EffectVisualEffect(VFX_FNF_SUMMON_MONSTER_3), lHome, 5.0));
DelayCommand(3.0, ApplyEffectAtLocation(DURATION_TYPE_TEMPORARY, EffectVisualEffect(VFX_DUR_LIGHT_RED_20), lHome, 30.0));
AssignCommand(oPC, DelayCommand(6.0, JumpToLocation(lHome)));
}