generated from Jaysyn/ModuleTemplate
Initial commit
Initial commit
This commit is contained in:
27
_module/nss/bandore_portpc.nss
Normal file
27
_module/nss/bandore_portpc.nss
Normal file
@@ -0,0 +1,27 @@
|
||||
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);
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user