Changed folder name.

Changed folder name.
This commit is contained in:
Jaysyn904
2022-10-07 21:08:37 -04:00
parent 1c33c2843e
commit 8d97886c3f
7060 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1,43 @@
location lTarget;
int nInt;
object oTarget;
object bTarget;
//Put this script in the OnEnter event of a tracks trigger or area.
void main()
{
object oPC = GetEnteringObject();
/*
if (!GetIsPC(oPC)) return;
int DoOnce = GetLocalInt(oPC, GetTag(OBJECT_SELF));
if (DoOnce==TRUE) return;
SetLocalInt(oPC, GetTag(OBJECT_SELF), TRUE);
*/
if (GetItemPossessedBy(oPC, "immotoken")!= OBJECT_INVALID)
{
FloatingTextStringOnCreature("A magical vortex has opened up and sucked you in!!!", oPC);
oTarget = oPC;
nInt = GetObjectType(oTarget);
if (nInt != OBJECT_TYPE_WAYPOINT) ApplyEffectToObject(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_FNF_IMPLOSION), oTarget);
else ApplyEffectAtLocation(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_FNF_IMPLOSION), GetLocation(oTarget));
bTarget = GetWaypointByTag("bermudaway");
lTarget = GetLocation(bTarget);
if (GetAreaFromLocation(lTarget)==OBJECT_INVALID) return;
DelayCommand(2.0, AssignCommand(oPC, ClearAllActions()));
DelayCommand(3.0, AssignCommand(oPC, ActionJumpToLocation(lTarget)));
}
}