9
3

ManiusGallaBC.lua 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. --[[
  2. Script Name : SpawnScripts/BeggarsCourt/ManiusGallaBC.lua
  3. Script Purpose : Manius Galla
  4. Script Author : torsten
  5. Script Date : 2022.07.15
  6. Script Notes :
  7. --]]
  8. require "SpawnScripts/Generic/DialogModule"
  9. local JoiningtheGang = 5656
  10. local DonationsfromtheBanker = 5657
  11. function spawn(NPC)
  12. ProvidesQuest(NPC, JoiningtheGang)
  13. ProvidesQuest(NPC, DonationsfromtheBanker)
  14. end
  15. function respawn(NPC)
  16. spawn(NPC)
  17. end
  18. function hailed(NPC, Spawn)
  19. FaceTarget(NPC, Spawn)
  20. if not HasQuest(Spawn, JoiningtheGang) and not HasCompletedQuest(Spawn, JoiningtheGang) then
  21. OfferQuest(NPC, Spawn, JoiningtheGang)
  22. Dialog1(NPC, Spawn)
  23. end
  24. if HasCompletedQuest(Spawn, JoiningtheGang) then
  25. if not HasQuest(Spawn, DonationsfromtheBanker) and not HasCompletedQuest(Spawn, DonationsfromtheBanker) then
  26. OfferQuest(NPC, Spawn, DonationsfromtheBanker)
  27. end
  28. end
  29. if GetQuestStep(Spawn, JoiningtheGang) == 2 then
  30. SetStepComplete(Spawn, JoiningtheGang, 2)
  31. Dialog5(NPC, Spawn)
  32. end
  33. if GetQuestStep(Spawn, DonationsfromtheBanker) == 2 then
  34. SetStepComplete(Spawn, DonationsfromtheBanker, 2)
  35. end
  36. Dialog4(NPC, Spawn)
  37. end
  38. function Dialog1(NPC, Spawn)
  39. FaceTarget(NPC, Spawn)
  40. Dialog.New(NPC, Spawn)
  41. Dialog.AddDialog("Mind your own business. If you keep gawking, you'll be walking away with a limp. And that's only because I'm in a good mood today.")
  42. Dialog.AddOption("I want to join your gang.", "Dialog7")
  43. Dialog.AddOption("I didn't see anything.")
  44. Dialog.Start()
  45. end
  46. function Dialog2(NPC, Spawn)
  47. FaceTarget(NPC, Spawn)
  48. Dialog.New(NPC, Spawn)
  49. Dialog.AddDialog("Don't even bother coming back if they ain't!")
  50. Dialog.AddOption("Don't worry about it.")
  51. Dialog.Start()
  52. end
  53. function Dialog3(NPC, Spawn)
  54. FaceTarget(NPC, Spawn)
  55. Dialog.New(NPC, Spawn)
  56. Dialog.AddDialog("A test, huh? Yeah ... hey, boys ... let's give this runt a bit of a test. Okay, here's your test: Go deeper in this place and find some of the lackeys who hang around the raiders. Kill some of them and maybe you can work for us.")
  57. Dialog.AddOption("Okay, I'll be back when they're dead.", "Dialog2")
  58. Dialog.Start()
  59. end
  60. function Dialog4(NPC, Spawn)
  61. FaceTarget(NPC, Spawn)
  62. Dialog.New(NPC, Spawn)
  63. Dialog.AddDialog("Mind your own business. If you keep gawking, you'll be walking away with a limp. And that's only because I'm in a good mood today.")
  64. Dialog.AddVoiceover("voiceover/english/voice_emotes/greetings/greetings_1_1004.mp3", 0, 0)
  65. Dialog.AddOption("I didn't see anything.")
  66. Dialog.Start()
  67. end
  68. function Dialog5(NPC, Spawn)
  69. FaceTarget(NPC, Spawn)
  70. Dialog.New(NPC, Spawn)
  71. Dialog.AddDialog("Crispin already heard. Hpmh ... You got lucky, I guess. Either way, those Raiders won't bother our clients in the Court anymore. I don't know if I should let you join our gang ... let me think about it.")
  72. Dialog.AddOption("I'll check back.")
  73. Dialog.Start()
  74. end
  75. function Dialog6(NPC, Spawn)
  76. FaceTarget(NPC, Spawn)
  77. Dialog.New(NPC, Spawn)
  78. Dialog.AddDialog("Mind your own business. If you keep gawking, you'll be walking away with a limp. And that's only because I'm in a good mood today.")
  79. Dialog.AddOption("I want to join your gang.", "Dialog7")
  80. Dialog.AddOption("I didn't see anything.")
  81. Dialog.Start()
  82. end
  83. function Dialog7(NPC, Spawn)
  84. FaceTarget(NPC, Spawn)
  85. Dialog.New(NPC, Spawn)
  86. Dialog.AddDialog("Did you hear that, boys? This runt wants to join our gang! HA HA HA HA! You couldn't fight your way out of a wet parchment bag let alone join us. HA HA HA! We keep people safe inside the city districts! You're better off paying us for protection, runt.")
  87. Dialog.AddOption("Why don't you give me a test?", "Dialog3")
  88. Dialog.AddOption("I don't need to take this from you. Good bye.")
  89. Dialog.Start()
  90. end
  91. function Dialog8(NPC, Spawn)
  92. FaceTarget(NPC, Spawn)
  93. Dialog.New(NPC, Spawn)
  94. Dialog.AddDialog("Mind your own business. If you keep gawking, you'll be walking away with a limp. And that's only because I'm in a good mood today.")
  95. Dialog.AddOption("I've killed the raiders.", "Dialog5")
  96. Dialog.AddOption("I didn't see anything.")
  97. Dialog.Start()
  98. end