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

View File

@@ -0,0 +1,32 @@
#include "elv_guildchecker"
void main()
{
//These commands beneath here are just used to get the player and the relevant locations, basically to define variables
object oPC = GetLastUsedBy();
string sAct = GetPCPlayerName(oPC);
string sTarget = "WP_WELCOMESTART";
if (IsBane(sAct)) sTarget = "gld_strt_bane";
else if (IsAoD(sAct)) sTarget = "WP_WELCOMESTART";
object oTarget;
location lTarget;
oTarget = GetWaypointByTag(sTarget);
lTarget = GetLocation(oTarget);
//Wait server to calm down...
// if(GetLocalInt(GetModule(), "SEND_PORTALS"))
// {
// SendMessageToPC(oPC, "You have to wait a moment before getting trough.");
// return;
// }
AssignCommand(oPC, ClearAllActions()); //This just clears the player's action queue
ExecuteScript("update_pc", GetLastUsedBy());
//This is where the player gets teleported
if (GetAreaFromLocation(lTarget)==OBJECT_INVALID) return;
DelayCommand(1.0, AssignCommand(oPC, ActionJumpToLocation(lTarget)));
}