ManiusGallaBC.lua 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. --[[
  2. Script Name : SpawnScripts/BeggarsCourt/ManiusGallaBC.lua
  3. Script Purpose : Manius Galla
  4. Script Author : torsten\\Dorbin
  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 GetFactionAmount(Spawn,12) <0 then
  20. FaceTarget(NPC, Spawn)
  21. PlayFlavor(NPC, "","","taunt",0,0, Spawn)
  22. elseif GetQuestStep(Spawn,JoiningtheGang)==1 then
  23. FaceTarget(NPC, Spawn)
  24. PlayFlavor(NPC, "","You best be dealing with those raiders, unless you're too much of whimp. We don't allow wimps in our ranks, now scram!","sneer",0,0, Spawn)
  25. elseif GetQuestStep(Spawn,DonationsfromtheBanker)==1 then
  26. FaceTarget(NPC, Spawn)
  27. PlayFlavor(NPC, "","Well, where is it? I don't see our \"donation\" on you. Get to the bank already!","glare",0,0, Spawn)
  28. else
  29. Dialog1(NPC,Spawn)
  30. end
  31. end
  32. --Mind your own business. If you keep gawking, you'll walk away with a limp--and that's because I'm in a good mood today.
  33. function Dialog1(NPC, Spawn)
  34. FaceTarget(NPC, Spawn)
  35. Dialog.New(NPC, Spawn)
  36. 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.")
  37. Dialog.AddVoiceover("voiceover/english/voice_emotes/greetings/greetings_"..MakeRandomInt(1,3).."_1004.mp3", 0, 0)
  38. if CanReceiveQuest(Spawn,JoiningtheGang) then
  39. Dialog.AddOption("I want to join your gang.", "Dialog2")
  40. elseif GetQuestStep(Spawn,JoiningtheGang)==2 then
  41. Dialog.AddOption("I've killed the raiders.", "Dialog4")
  42. end
  43. if CanReceiveQuest(Spawn,DonationsfromtheBanker) then
  44. Dialog.AddOption("So, can I join your gang now?", "Dialog5")
  45. elseif GetQuestStep(Spawn,DonationsfromtheBanker)==2 then
  46. Dialog.AddOption("Here's the money. He said you should eat rotten berries given to you by witches.", "Dialog6")
  47. end
  48. Dialog.AddOption("I didn't see anything.")
  49. Dialog.Start()
  50. end
  51. function Dialog2(NPC, Spawn)
  52. FaceTarget(NPC, Spawn)
  53. Dialog.New(NPC, Spawn)
  54. 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.")
  55. PlayFlavor(NPC, "","","chuckle",0,0, Spawn)
  56. Dialog.AddOption("Why don't you give me a test?", "Offer1")
  57. Dialog.AddOption("I don't need to take this from you. Good bye.")
  58. Dialog.Start()
  59. end
  60. function Offer1(NPC,Spawn)
  61. OfferQuest(NPC,Spawn,JoiningtheGang)
  62. end
  63. function Dialog3(NPC, Spawn)
  64. FaceTarget(NPC, Spawn)
  65. Dialog.New(NPC, Spawn)
  66. Dialog.AddDialog("Don't even bother coming back if they ain't!")
  67. PlayFlavor(NPC, "","","stare",0,0, Spawn)
  68. Dialog.AddOption("Don't worry about it.")
  69. Dialog.Start()
  70. end
  71. function Dialog4(NPC, Spawn)
  72. FaceTarget(NPC, Spawn)
  73. Dialog.New(NPC, Spawn)
  74. 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.")
  75. PlayFlavor(NPC, "","","agree",0,0, Spawn)
  76. Dialog.AddOption("I'll check back.")
  77. Dialog.Start()
  78. SetStepComplete(Spawn,JoiningtheGang,2)
  79. end
  80. function Dialog5(NPC, Spawn)
  81. FaceTarget(NPC, Spawn)
  82. Dialog.New(NPC, Spawn)
  83. Dialog.AddDialog("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. ")
  84. PlayFlavor(NPC, "","","ponder",0,0, Spawn)
  85. Dialog.AddOption("Oh, come on. How else can I prove myself?","Offer2")
  86. Dialog.AddOption("You're impossible!")
  87. Dialog.Start()
  88. end
  89. function Offer2(NPC,Spawn)
  90. OfferQuest(NPC,Spawn,DonationsfromtheBanker)
  91. end
  92. function Dialog6(NPC, Spawn)
  93. SetStepComplete(Spawn,DonationsfromtheBanker,2)
  94. FaceTarget(NPC, Spawn)
  95. Dialog.New(NPC, Spawn)
  96. Dialog.AddDialog("So he's in with the witches now is he? I'll keep my eye on all of 'em. What's this paltry sum? He's cheated me, he has! That old miser will have an accident before the sun is down, or I won't rest. Here's a coin for you. Get lost while I decide that banker's fate. GRRRR!!!")
  97. PlayFlavor(NPC, "","","grumble",0,0, Spawn)
  98. Dialog.AddOption("Whoa, Don't get angry at me! I'm out of here...")
  99. Dialog.Start()
  100. end
  101. --