Rune_PRC8/_module/nss/bandore_portpc.nss
Jaysyn904 d1c309ae63 Initial commit
Initial commit
2024-09-13 09:10:39 -04:00

28 lines
602 B
Plaintext

void main()
{
object oPC = GetLastUsedBy();
object oArea = GetArea(oPC);
if(GetIsAreaInterior(oArea) == TRUE)
FloatingTextStringOnCreature("You can only teleport outdoors.", oPC);
DestroyObject(OBJECT_SELF,1.0);
return;
if (GetIsAreaInterior(oArea) == FALSE)
AssignCommand(oPC, ClearAllActions());
object oTarget;
oTarget = GetWaypointByTag("wp_bandoreport");
DelayCommand(2.5, AssignCommand(oPC, ActionJumpToObject(oTarget)));
oTarget = oPC;
ApplyEffectAtLocation(DURATION_TYPE_INSTANT, EffectVisualEffect(VFX_FNF_SUMMON_MONSTER_2), GetLocation(oTarget));
DestroyObject(OBJECT_SELF,15.0);
}