void main() { object oPC=GetItemActivator(); string sID=GetLocalString(oPC,"sTeamID"); object oTarget; location lLoc=GetItemActivatedTargetLocation(); oTarget=GetWaypointByTag(sID+"_START"); if (GetArea(oTarget)==GetArea(oPC)) { // okay to activate item oTarget=CreateObject(OBJECT_TYPE_PLACEABLE,"rts_marker",lLoc); SetLocalObject(oPC,"oTarget",oTarget); AssignCommand(oPC,ClearAllActions(TRUE)); AssignCommand(oPC,ActionStartConversation(oPC,"darkartifact",TRUE,FALSE)); } // okay to activate item else { // not in lair SendMessageToPC(oPC,"You may only activate this artifact from within your lair."); } // not in lair }