Initial Upload

Initial Upload
This commit is contained in:
Jaysyn904
2023-09-21 21:20:34 -04:00
parent d3f23f8b3c
commit 94990edc60
5734 changed files with 6324648 additions and 0 deletions

20
_module/nss/teleport.nss Normal file
View File

@@ -0,0 +1,20 @@
void main()
{
if (GetLocalInt(OBJECT_SELF, "IsDm") == 0)
{
if (GetLocalInt(OBJECT_SELF, "EJAIL") == TRUE)
{
FloatingTextStringOnCreature("There is no escape for you, " + GetName(OBJECT_SELF),OBJECT_SELF,FALSE);
return;
}
if (GetLocalInt(GetModule(), "war") == TRUE)
{
FloatingTextStringOnCreature("Cannot Teleport in time of war",OBJECT_SELF,FALSE);
return;
}
}
SetLocalLocation(OBJECT_SELF, "lBack", GetLocation(OBJECT_SELF));
AssignCommand(OBJECT_SELF, ClearAllActions());
ExecuteScript("teleporteff", OBJECT_SELF);
DelayCommand(0.5,AssignCommand(OBJECT_SELF,ActionJumpToLocation(GetLocation(GetLocalObject(OBJECT_SELF, "Dest")))));
}