//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 }