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,41 @@
//Example OnClientEnter Event Created by Genisys 5/25/08
//This example is for my Party Room System
//Basically you will copy and paste what you see here, where you see it here
//into your OnClientEnter Script.
object oItem;
object aTarget;
location bTarget;
void main ()
{
object oPC = GetEnteringObject();
//If the player has been inside of a party room, but logged out, then
//teleport them to the start and take the token!
if (GetItemPossessedBy(oPC, "partyroom")!= OBJECT_INVALID)
{
oItem = GetFirstItemInInventory(oPC);
while (GetIsObjectValid(oItem))
{
if (GetTag(oItem)=="partyroom") DestroyObject(oItem);
oItem = GetNextItemInInventory(oPC);
}
//You will need to create a way point and give it the tagname "home"
//If you have a starting point then change the name here to the tagname of it.
aTarget = GetWaypointByTag("home");
bTarget = GetLocation(aTarget);
if (GetAreaFromLocation(bTarget)==OBJECT_INVALID) return;
AssignCommand(oPC, ClearAllActions());
AssignCommand(oPC, ActionJumpToLocation(bTarget));
}
//Script End
}