Changed folder name.
Changed folder name.
This commit is contained in:
37
_module/nss/jailmessage.nss
Normal file
37
_module/nss/jailmessage.nss
Normal file
@@ -0,0 +1,37 @@
|
||||
//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("Merem");
|
||||
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 taken to jail Speak with the guard to get out."));
|
||||
|
||||
DelayCommand(60.0, SendMessageToPC(oTriggerer, "If he is hostile, damage him to restart your sentence."));
|
||||
//jump the PC to the destination
|
||||
DelayCommand(60.0,AssignCommand (oTriggerer,JumpToObject(oDrop)));
|
||||
|
||||
}
|
Reference in New Issue
Block a user