9
3

ManiusGalla.lua 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. --[[
  2. Script Name : SpawnScripts/BeggarsCourt/ManiusGalla.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. if not HasQuest(Spawn, JoiningtheGang) and not HasCompletedQuest(Spawn, JoiningtheGang) then
  20. Dialog1(NPC, Spawn)
  21. elseif HasCompletedQuest(Spawn, JoiningtheGang) then
  22. if not HasQuest(Spawn, DonationsfromtheBanker) and not HasCompletedQuest(Spawn, DonationsfromtheBanker) then
  23. OfferQuest(NPC, Spawn, DonationsfromtheBanker)
  24. end
  25. end
  26. if GetQuestStep(Spawn, JoiningtheGang) == 2 then
  27. Dialog5(NPC, Spawn)
  28. SetStepComplete(Spawn, JoiningtheGang, 2)
  29. end
  30. if GetQuestStep(Spawn, DonationsfromtheBanker) == 2 then
  31. SetStepComplete(Spawn, DonationsfromtheBanker, 2)
  32. end
  33. Dialog4(NPC, Spawn)
  34. end
  35. function Dialog1(NPC, Spawn)
  36. FaceTarget(NPC, Spawn)
  37. Dialog.New(NPC, Spawn)
  38. 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.")
  39. Dialog.AddVoiceover("voiceover/english/voice_emotes/greetings/greetings_3_1004.mp3", 0, 0)
  40. Dialog.AddOption("I want to join your gang.", "Dialog7")
  41. Dialog.AddOption("I didn't see anything.")
  42. Dialog.Start()
  43. end
  44. function Dialog7(NPC, Spawn)
  45. FaceTarget(NPC, Spawn)
  46. Dialog.New(NPC, Spawn)
  47. 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.")
  48. Dialog.AddOption("Why don't you give me a test?", "Dialog3")
  49. Dialog.AddOption("I don't need to take this from you. Good bye.")
  50. Dialog.Start()
  51. end
  52. function Dialog3(NPC, Spawn)
  53. FaceTarget(NPC, Spawn)
  54. Dialog.New(NPC, Spawn)
  55. 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.")
  56. Dialog.AddOption("Okay, I'll be back when they're dead.", "Dialog2")
  57. Dialog.Start()
  58. OfferQuest(NPC, Spawn, JoiningtheGang)
  59. end
  60. function Dialog2(NPC, Spawn)
  61. FaceTarget(NPC, Spawn)
  62. Dialog.New(NPC, Spawn)
  63. Dialog.AddDialog("Don't even bother coming back if they ain't!")
  64. Dialog.AddOption("Don't worry about it.")
  65. Dialog.Start()
  66. end
  67. function Dialog4(NPC, Spawn)
  68. FaceTarget(NPC, Spawn)
  69. Dialog.New(NPC, Spawn)
  70. 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.")
  71. Dialog.AddVoiceover("voiceover/english/voice_emotes/greetings/greetings_1_1004.mp3", 0, 0)
  72. Dialog.AddOption("I didn't see anything.")
  73. Dialog.Start()
  74. end
  75. function Dialog5(NPC, Spawn)
  76. FaceTarget(NPC, Spawn)
  77. Dialog.New(NPC, Spawn)
  78. 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.")
  79. Dialog.AddOption("I'll check back.")
  80. Dialog.Start()
  81. end