Tarakh.lua 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. --[[
  2. Script Name : SpawnScripts/TempleSt/Tarakh.lua
  3. Script Author : Dorbin
  4. Script Date : 2023.10.23 04:10:27
  5. Script Purpose :
  6. :
  7. --]]
  8. require "SpawnScripts/Generic/DialogModule"
  9. local NatashaNote = 5927
  10. function spawn(NPC)
  11. end
  12. function respawn(NPC)
  13. spawn(NPC)
  14. end
  15. function hailed(NPC, Spawn)
  16. Dialog1(NPC, Spawn)
  17. end
  18. function RandomGreeting(NPC, Spawn)
  19. local choice = MakeRandomInt(1,1)
  20. if choice == 1 then
  21. PlayFlavor(NPC, "voiceover/english/tarakh/fprt_hood03/100_barpatrontarakh_callout_843c542c.mp3", "Keep your tongue to yourself, lest you find it missing.", "", 84248268, 2425627383, Spawn, 0)
  22. end
  23. end
  24. --
  25. function Dialog1(NPC, Spawn)
  26. FaceTarget(NPC, Spawn)
  27. Dialog.New(NPC, Spawn)
  28. Dialog.AddDialog("Keep your tongue to yourself, lest you find it missing.")
  29. Dialog.AddVoiceover("voiceover/english/tarakh/fprt_hood03/qst_barpatrontarakh.mp3", 3608596443, 357856972)
  30. PlayFlavor(NPC,"","","stare",0,0,Spawn)
  31. if GetQuestStep(Spawn,NatashaNote)==1 then
  32. Dialog.AddOption("Actually, I found a note with your name on it. Give me a few coins and you can have it.","Dialog3")
  33. end
  34. Dialog.AddOption("Big talk from a little rat.", "Dialog2")
  35. Dialog.AddOption("My apologies, I will move on.")
  36. Dialog.Start()
  37. end
  38. function Dialog2(NPC, Spawn)
  39. FaceTarget(NPC, Spawn)
  40. Dialog.New(NPC, Spawn)
  41. Dialog.AddDialog("Try me! First I'll gut you then I'll return to your grave to rob it! Though it's unlikely you would have anything of value in your pine box.")
  42. Dialog.AddVoiceover("voiceover/english/tarakh/fprt_hood03/qst_barpatrontarakh000.mp3", 33100111, 1117280474)
  43. PlayFlavor(NPC,"","","threaten",0,0,Spawn)
  44. Dialog.AddOption("It doesn't surprise me that you are a dirty little grave robber. ")
  45. Dialog.Start()
  46. end
  47. function Dialog3(NPC, Spawn)
  48. FaceTarget(NPC, Spawn)
  49. Dialog.New(NPC, Spawn)
  50. Dialog.AddDialog("What's this now? Fine. Let me see it we'll see if you get anything from me.")
  51. Dialog.AddOption("Sure. It details an upcoming haul you're not invited to.", "Dialog4")
  52. Dialog.AddOption("On second thought, nevermind.")
  53. Dialog.Start()
  54. end
  55. function Dialog4(NPC, Spawn)
  56. FaceTarget(NPC, Spawn)
  57. Dialog.New(NPC, Spawn)
  58. Dialog.AddDialog("Hey! This doesn't tell me where to find the meeting place or crypt!")
  59. PlayFlavor(NPC,"","","confused",0,0,Spawn)
  60. Dialog.AddOption("I don't care. Pay up.", "Dialog5")
  61. Dialog.Start()
  62. end
  63. function Dialog5(NPC, Spawn)
  64. FaceTarget(NPC, Spawn)
  65. Dialog.New(NPC, Spawn)
  66. Dialog.AddDialog("Eeehk! What a worthless scrap... I suppose I'll stake out the usual spots... Here. Take this coin. Tread lightly or I'll just take it off your corpse later. Now, don't bother me again unless you have something actually worth my time!")
  67. PlayFlavor(NPC,"","","frustrated",0,0,Spawn)
  68. Dialog.AddOption("Fair enough.")
  69. SetStepComplete(Spawn, NatashaNote,1)
  70. Dialog.Start()
  71. end