//trapdoor_yes script by Kerico 7/7/02 //jumps the using PC to target waypoint and closes the trapdoor for next use //place in action taken scipt in trapdoor conversation //in 'yes' end dialog of the trapdoor void main() { //get the pc who used the trapdoor //get the target waypoint destination object oDrop = GetWaypointByTag("prison"); object oMerem = GetObjectByTag("undwrlgrd44"); object oWatch = GetObjectByTag("TownWatch4"); object oWatch2 = GetObjectByTag("warden"); object oWatch3 = GetObjectByTag("bouncer"); object oTriggerer = GetLastHostileActor(); DelayCommand(60.0, AdjustReputation(GetLastHostileActor(), OBJECT_SELF, 100)); DelayCommand(60.0,AdjustReputation(GetLastHostileActor(), oMerem, 100)); DelayCommand(60.0, AdjustReputation(GetLastHostileActor(), oWatch, 100)); DelayCommand(60.0, AdjustReputation(GetLastHostileActor(), oWatch2, 100)); DelayCommand(60.0, AdjustReputation(GetLastHostileActor(), oWatch3, 100)); DelayCommand(60.0,SendMessageToPC(oTriggerer, "You have been placed in jail for attacking an object or npc.")); DelayCommand(60.0, SendMessageToPC(oTriggerer, "Attempting to escape from jail will get you placed in Hell.")); //jump the PC to the destination DelayCommand(60.0,AssignCommand (oTriggerer,JumpToObject(oDrop))); }