MalizTRaan.lua 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. --[[
  2. Script Name : SpawnScripts/LongshadowAlley/MalizTRaan.lua
  3. Script Purpose : Maliz T`Raan
  4. Script Author : torsten
  5. Script Date : 2022.07.19
  6. Script Notes :
  7. --]]
  8. local TakingitOutontheRaiders = 5678
  9. local ADramaticPerformance = 5679
  10. function spawn(NPC)
  11. ProvidesQuest(NPC, TakingitOutontheRaiders)
  12. ProvidesQuest(NPC, ADramaticPerformance)
  13. end
  14. function respawn(NPC)
  15. spawn(NPC)
  16. end
  17. require "SpawnScripts/Generic/DialogModule"
  18. function hailed(NPC, Spawn)
  19. if GetFactionAmount(Spawn,12) <0 then
  20. FaceTarget(NPC, Spawn)
  21. PlayFlavor(NPC, "","","shakefist",0,0, Spawn)
  22. elseif CanReceiveQuest(Spawn, TakingitOutontheRaiders) then
  23. Dialog1(NPC,Spawn)
  24. elseif HasQuest(Spawn, TakingitOutontheRaiders) and GetQuestStep(Spawn,TakingitOutontheRaiders) ==1 then
  25. Dialog2(NPC,Spawn)
  26. elseif HasQuest(Spawn, TakingitOutontheRaiders) and GetQuestStep(Spawn,TakingitOutontheRaiders) ==2 then
  27. Dialog1(NPC,Spawn)
  28. elseif CanReceiveQuest(Spawn, ADramaticPerformance) then
  29. Dialog1 (NPC,Spawn)
  30. elseif HasQuest(Spawn, ADramaticPerformance)and GetQuestStep(Spawn,ADramaticPerformance) ==1 then
  31. Dialog4 (NPC,Spawn)
  32. elseif HasQuest(Spawn, ADramaticPerformance)and GetQuestStep(Spawn,ADramaticPerformance) ==2 then
  33. Dialog1 (NPC,Spawn)
  34. else
  35. Dialog1(NPC,Spawn)
  36. end
  37. end
  38. function Dialog1(NPC,Spawn)
  39. FaceTarget(NPC, Spawn)
  40. Dialog.New(NPC, Spawn)
  41. if CanReceiveQuest(Spawn, TakingitOutontheRaiders) then
  42. Dialog.AddDialog("Living in these nasty slums makes me want to smash things ... things like your pea-brained skull! Get out of my sight, fool!")
  43. Dialog.AddVoiceover("voiceover/english/optional1/maliz_t_raan/fprt_hood05/100_std_de_male_maliz_traan_multhail1_eba9917.mp3",3299447227, 613482411)
  44. PlayFlavor(NPC, "", "", "stare", 0, 0, Spawn)
  45. Dialog.AddOption("Get over yourself!")
  46. else
  47. Dialog.AddDialog("Living in these slums is sickening! What do you want from me?")
  48. Dialog.AddVoiceover("voiceover/english/optional1/maliz_t_raan/fprt_hood05/100_std_de_male_maliz_traan_callout_927f5c89.mp3",1122076255, 1993662428)
  49. PlayFlavor(NPC, "", "", "pout", 0, 0, Spawn)
  50. Dialog.AddOption("Nothing right now.")
  51. end
  52. if CanReceiveQuest(Spawn, TakingitOutontheRaiders) then
  53. Dialog.AddOption("If you have such a problem here, then why haven't you moved out?","Dialog1a")
  54. end
  55. if CanReceiveQuest(Spawn, ADramaticPerformance) then
  56. Dialog.AddOption("You mentioned you had more work for me?","Dialog3b")
  57. end
  58. if HasQuest(Spawn, TakingitOutontheRaiders) and GetQuestStep(Spawn,TakingitOutontheRaiders)==2 then
  59. Dialog.AddOption("Have you noticed I've removed a number of raiders from the area?","Dialog3")
  60. end
  61. if HasQuest(Spawn, ADramaticPerformance) and GetQuestStep(Spawn,ADramaticPerformance)==2 then
  62. Dialog.AddOption("[Give him Pavo's message]","Dialog5")
  63. end
  64. Dialog.Start()
  65. end
  66. function Dialog1a(NPC,Spawn)
  67. FaceTarget(NPC, Spawn)
  68. Dialog.New(NPC, Spawn)
  69. Dialog.AddDialog("What kind of stupid question is that? Move where? There IS nowhere to go, fool! Neriak is gone! GONE! We're forced to live like common overlanders ... worse yet, we must live WITH them! ARRRG!!! I want to rip something apart -- like those human raiders out in the Sunken City! That would calm me down.")
  70. PlayFlavor(NPC, "", "", "grumble", 0, 0, Spawn)
  71. Dialog.AddOption("If it would scilence your hollering, I will do something about it.","Offer1")
  72. Dialog.AddOption("No need to shout, fool! Enjoy living in refuse!")
  73. Dialog.Start()
  74. end
  75. function Offer1(NPC,Spawn)
  76. OfferQuest(NPC, Spawn, TakingitOutontheRaiders)
  77. end
  78. function Offer2(NPC,Spawn)
  79. OfferQuest(NPC, Spawn, ADramaticPerformance)
  80. end
  81. function Dialog2(NPC,Spawn)
  82. FaceTarget(NPC, Spawn)
  83. Dialog.New(NPC, Spawn)
  84. Dialog.AddDialog("You didn't kill the Raiders! Return to the Sunken City and destroy them!")
  85. Dialog.AddOption("Their death will come soon!")
  86. Dialog.Start()
  87. PlayFlavor(NPC, "", "", "frustrated", 0, 0, Spawn)
  88. end
  89. function Dialog3(NPC,Spawn)
  90. FaceTarget(NPC, Spawn)
  91. Dialog.New(NPC, Spawn)
  92. PlayFlavor(NPC, "", "", "happy", 0, 0, Spawn)
  93. Dialog.AddDialog("Oh yes. Yes. I knew you wouldn't let me down. I could just tell that about you..about you. Not like those useless raiders...untrustworthy pusses. I'll never trust them again.")
  94. Dialog.AddOption("So... How about some payment?","Dialog3a")
  95. Dialog.Start()
  96. end
  97. function Dialog3a(NPC,Spawn)
  98. FaceTarget(NPC, Spawn)
  99. SetStepComplete(Spawn, TakingitOutontheRaiders, 2)
  100. Dialog.New(NPC, Spawn)
  101. PlayFlavor(NPC, "", "", "sniff", 0, 0, Spawn)
  102. Dialog.AddDialog("I suppose your skills warrent something... Here. It is not much, but I could still use your help... This incedent with the raiders has been... unsettling. I can make it worth your while in the end!")
  103. Dialog.AddOption("I could be persuaded.","Dialog3b")
  104. Dialog.AddOption("I'd rather tickle an orc than do more for you!")
  105. Dialog.Start()
  106. end
  107. function Dialog3b(NPC,Spawn)
  108. FaceTarget(NPC, Spawn)
  109. Dialog.New(NPC, Spawn)
  110. PlayFlavor(NPC, "", "", "agree", 0, 0, Spawn)
  111. Dialog.AddDialog("You have calmed my nerves some, but my friend and I have recently been moved by a performance we witnessed earlier today. We can't shake what we've witnessed and need to express our emotions to the performers...")
  112. Dialog.AddOption("I would be glad to help.","Offer2")
  113. Dialog.AddOption("I'm no messanger. Find someone else.")
  114. Dialog.Start()
  115. end
  116. function Dialog4(NPC,Spawn)
  117. FaceTarget(NPC, Spawn)
  118. Dialog.New(NPC, Spawn)
  119. Dialog.AddDialog("You haven't spoken with Pavo yet, have you. I don't like to be kept waiting...")
  120. Dialog.AddOption("I'm still heading that way.")
  121. Dialog.Start()
  122. PlayFlavor(NPC, "", "", "tapfoot", 0, 0, Spawn)
  123. end
  124. function Dialog5(NPC,Spawn)
  125. SetStepComplete(Spawn, ADramaticPerformance, 2)
  126. FaceTarget(NPC, Spawn)
  127. Dialog.New(NPC, Spawn)
  128. PlayFlavor(NPC, "", "", "agree", 0, 0, Spawn)
  129. Dialog.AddDialog("Good... Very good. We will certainly prepare for our next step. You, on the other hand, have proved to be quite useful. Take this, and if you're interested in more work speak to my friend here. He'll have one last opportunity for you before the 'show' reaches its climax.")
  130. Dialog.AddOption("I might just do that.")
  131. Dialog.Start()
  132. end