Guest User

Untitled

a guest
Jul 18th, 2017
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 2.30 KB | None | 0 0
  1. private bool weaponPickedUp = false;
  2.         public override void Process()
  3.         {
  4.             base.Process();
  5.             if (Game.LocalPlayer.Character.DistanceTo(NotesCoroner.Position) < 30f)
  6.             {
  7.                 Game.DisplayHelp("Go near the coroner and press ~y~Y ~w~to talk to him.");
  8.             }
  9.             if (Game.LocalPlayer.Character.DistanceTo(NotesCoroner.Position) < 3f)
  10.             {
  11.                 if (Game.IsKeyDown(Keys.Y))
  12.                 {
  13.                     NotesCoroner.Face(Game.LocalPlayer.Character.Position);
  14.                     Game.DisplaySubtitle("~r~Coroner: ~w~Hello, officer.");
  15.                     GameFiber.Sleep(5000);
  16.                     Game.DisplaySubtitle("~r~Coroner: ~w~As you can see here, we have a horrible homicide case.");
  17.                     GameFiber.Sleep(5000);
  18.                     Game.DisplaySubtitle("~r~Coroner: ~w~The asshole tear the body apart with what seems to be a knife.");
  19.                     GameFiber.Sleep(5000);
  20.                     Game.DisplaySubtitle("~r~Coroner: ~w~ The suspect dumped it somewhere in this area.");
  21.                     GameFiber.Sleep(5000);
  22.                     Game.DisplaySubtitle("~r~Coroner: ~w~Look around this area and see if you can find that knife, and bring it to me.");
  23.                     Game.HideHelp();
  24.                     Game.DisplayHelp("Look around for the knife inside the marked area on the map.");
  25.                     Game.LogTrivialDebug("[Homicide Crime Scene] Look for the knife!");
  26.                 }
  27.             }
  28.             if ((Game.LocalPlayer.Character.DistanceTo(HomicideWeapon.Position) < 1f) && weaponPickedUp == false)
  29.             {
  30.                 Game.DisplayHelp("Bring the knife to the coroner.");
  31.                 HomicideWeapon.Delete();
  32.                 Game.LogTrivialDebug("[Homicide Crime Scene] You found the knife!");
  33.                 weaponPickedUp = true;
  34.             }
  35.             if ((Game.LocalPlayer.Character.DistanceTo(NotesCoroner.Position) < 3f) && weaponPickedUp == true)
  36.             {
  37.                 Game.DisplaySubtitle("~r~Coroner: ~w~Thank you very much, officer!");
  38.                 Game.LogTrivialDebug("[Homicide Crime Scene] The coroner took the knife!");
  39.                 HomicideWeaponBlip.Delete();
  40.                 End();
  41.             }
  42.         }
Advertisement
Add Comment
Please, Sign In to add comment