9
3

GrumZoomly.lua 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. --[[
  2. Script Name : SpawnScripts/WestFreeport/GrumZoomly.lua
  3. Script Author : Dorbin
  4. Script Date : 2023.10.05 05:10:43
  5. Script Purpose :
  6. :
  7. --]]
  8. require "SpawnScripts/Generic/DialogModule"
  9. local Fighter = 5898
  10. local Scout = 5910
  11. function spawn(NPC)
  12. end
  13. function respawn(NPC)
  14. spawn(NPC)
  15. end
  16. function hailed(NPC, Spawn)
  17. Dialog1(NPC, Spawn)
  18. end
  19. --
  20. function Dialog1(NPC, Spawn)
  21. FaceTarget(NPC, Spawn)
  22. Dialog.New(NPC, Spawn)
  23. Dialog.AddDialog("I don't want any trouble here in my bar, understand? People really hate it when I get angry.")
  24. Dialog.AddVoiceover("voiceover/english/grum_zoomly/fprt_west/grumzoomly000.mp3", 894167480, 1838777111)
  25. if HasQuest(Spawn,Fighter) and GetQuestStep(Spawn,Fighter)>=3 and GetQuestStep(Spawn,Fighter)<=5 and GetQuestStepProgress(Spawn,Fighter,5)==0 then
  26. Dialog.AddOption("Lucan is disappointed that you've been serving the Guttersnipes.","Dialog2")
  27. end
  28. if HasQuest(Spawn,Scout) and GetQuestStep(Spawn,Scout)>=3 and GetQuestStep(Spawn,Scout)<=4 and GetQuestStepProgress(Spawn,Scout,3)==0 then
  29. Dialog.AddOption("Hey, want to dance?! [Show off your moves]","Dialog4")
  30. end
  31. Dialog.AddOption("Got it.")
  32. Dialog.Start()
  33. end
  34. function Dialog2(NPC, Spawn)
  35. FaceTarget(NPC, Spawn)
  36. Dialog.New(NPC, Spawn)
  37. Dialog.AddDialog("What Lucan doesn't know won't hurt him.")
  38. PlayFlavor(NPC, "", "", "stare", 0, 0, Spawn)
  39. Dialog.AddVoiceover("voiceover/english/grum_zoomly/fprt_west/grumzoomly001.mp3", 144241661, 2143125475)
  40. Dialog.AddOption("You're right, but it'll hurt you. How about a punch to the gut!","Dialog2a")
  41. Dialog.Start()
  42. end
  43. function Dialog2a(NPC, Spawn)
  44. FaceTarget(Spawn, NPC)
  45. PlayFlavor(Spawn, "", "", "pugilist_attack02", 0, 0, NPC)
  46. AddTimer(NPC,800,"Dialog2b",1,Spawn)
  47. end
  48. function Dialog2b(NPC, Spawn)
  49. FaceTarget(Spawn, NPC)
  50. PlayFlavor(NPC, "", "", "ouch", 0, 0, Spawn)
  51. ApplySpellVisual(NPC,249)
  52. AddTimer(NPC,800,"Dialog3",1,Spawn)
  53. end
  54. function Dialog3(NPC, Spawn)
  55. FaceTarget(NPC, Spawn)
  56. Dialog.New(NPC, Spawn)
  57. Dialog.AddDialog("Ughhh! Stop it!!! I take it this is his idea of a warning? Fine, I'll stop serving them.")
  58. PlayFlavor(NPC, "", "", "gutcramp", 0, 0, Spawn)
  59. SetStepComplete(Spawn,Fighter,5)
  60. Dialog.AddVoiceover("voiceover/english/grum_zoomly/fprt_west/grumzoomly002.mp3", 3096589689, 3928464974)
  61. Dialog.AddOption("I'm glad we could come to an understanding.")
  62. Dialog.Start()
  63. end
  64. function Dialog4(NPC, Spawn)
  65. FaceTarget(Spawn, NPC)
  66. PlayFlavor(Spawn, "", "", "dance", 0, 0)
  67. AddTimer(NPC,1800,"Dialog4a",1,Spawn)
  68. end
  69. function Dialog4a(NPC, Spawn)
  70. FaceTarget(NPC, Spawn)
  71. Dialog.New(NPC, Spawn)
  72. Dialog.AddDialog("What in the heck are you doing, you idiot!? Get out of here before I bash your head in!")
  73. PlayFlavor(NPC, "", "", "boggle", 0, 0, Spawn)
  74. Dialog.AddVoiceover("voiceover/english/grum_zoomly/fprt_west/grumzoomly003.mp3", 466250040, 3587098228)
  75. Dialog.AddOption("I am an entertainer! I am always available to hire!","Dialog5")
  76. Dialog.Start()
  77. end
  78. function Dialog5(NPC, Spawn)
  79. FaceTarget(NPC, Spawn)
  80. Dialog.New(NPC, Spawn)
  81. Dialog.AddDialog("Entertain? You're a moron! And soon you'll be a dead moron, I'll make sure of it!")
  82. PlayFlavor(NPC, "", "", "stare", 0, 0, Spawn)
  83. Dialog.AddVoiceover("voiceover/english/grum_zoomly/fprt_west/grumzoomly004.mp3", 415190010, 1464682173)
  84. Dialog.AddOption("Think of all the extra coin you'll get if your patrons stick around! I'd only need a small bit and the rest is yours.","Dialog6")
  85. Dialog.Start()
  86. end
  87. function Dialog6(NPC, Spawn)
  88. FaceTarget(Spawn, NPC)
  89. PlayFlavor(Spawn, "", "", "flirt", 0, 0, NPC)
  90. AddTimer(NPC,1800,"Dialog6a",1,Spawn)
  91. end
  92. function Dialog6a(NPC, Spawn)
  93. SetStepComplete(Spawn,Scout,3)
  94. FaceTarget(NPC, Spawn)
  95. Dialog.New(NPC, Spawn)
  96. Dialog.AddDialog("You fool! You're going to kill yourself! Heck, I'll hire you just to see how long it takes! You'll have to wait till I'm done counting today's take. Stop by after I close, and we'll discuss payment.")
  97. PlayFlavor(NPC, "", "", "scold", 0, 0, Spawn)
  98. Dialog.AddVoiceover("voiceover/english/grum_zoomly/fprt_west/grumzoomly005.mp3", 4032144186, 3733276565)
  99. Dialog.AddOption("Thank you, but my act must hit the road!")
  100. Dialog.Start()
  101. end