no_rivals_for_yarana_part_i.lua 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. --[[
  2. Script Name : no_rivals_for_yarana_part_i.lua
  3. Script Purpose : Handles the quest, "No Rivals For Yarana"
  4. Script Author : torsten
  5. Script Date : 18.07.2022
  6. Script Notes :
  7. Zone : Longshadow Alley
  8. Quest Giver : Yarana D'Ven
  9. Preceded by : None
  10. Followed by : None
  11. --]]
  12. require "SpawnScripts/Generic/DialogModule"
  13. function Init(Quest)
  14. AddQuestStepKill(Quest, 1, "I have to kill eight filthy moccasins.", 8, 100, "I need to go to the Serpent Sewers and destroy 8 filthy moccasins.", 611, 1550002, 1550039)
  15. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  16. UpdateQuestZone(Quest,"Serpent Sewer")
  17. end
  18. function Step1Complete(Quest, QuestGiver, Player)
  19. UpdateQuestStepDescription(Quest, 1, "I've killed the filthy moccasins.")
  20. UpdateQuestTaskGroupDescription(Quest,1,"I've killed the filthy moccasins Yarana wanted me to destroy.")
  21. UpdateQuestZone(Quest,"Longshadow Alley")
  22. AddQuestStepChat(Quest, 2, "I should return to Yarana.", 1, "I should return to Yarana in Longshadow Alley and inform her of my progress.", 11, 1380028)
  23. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  24. end
  25. function Step2Complete(Quest, QuestGiver, Player)
  26. UpdateQuestStepDescription(Quest, 2, "I spoke with Yarana D'Ven.")
  27. UpdateQuestZone(Quest,"Fallen Gate")
  28. AddQuestStepKill(Quest, 3, "Destroy 7 slime sacs.", 7, 100, "Now Yarana wants me to destroy seven slime sacs in Fallen Gate.", 611, 1190001)
  29. AddQuestStepCompleteAction(Quest, 3, "Step3Complete")
  30. end
  31. function Step3Complete(Quest, QuestGiver, Player)
  32. UpdateQuestStepDescription(Quest, 3, "I killed the slime sacs.")
  33. UpdateQuestTaskGroupDescription(Quest,2,"I've killed the slime sacs Yarana wanted me to destroy.")
  34. UpdateQuestZone(Quest,"Longshadow Alley")
  35. AddQuestStepChat(Quest, 4, "I should return to Yarana.", 1, "I should return to Yarana in Longshadow Alley and inform her of my progress.", 11, 1380028)
  36. AddQuestStepCompleteAction(Quest, 4, "Step4Complete")
  37. end
  38. function Step4Complete(Quest, QuestGiver, Player)
  39. UpdateQuestStepDescription(Quest, 4, "I've returned to Yarana and informed her of my deeds.")
  40. UpdateQuestZone(Quest,"Fallen Gate")
  41. AddQuestStepKill(Quest, 5, "Destroy two suspended watchers.", 2, 100, "Yarana wants me to get rid of two suspended watchers.", 611, 1190029, 1190030)
  42. AddQuestStepCompleteAction(Quest, 5, "Step5Complete")
  43. end
  44. function Step5Complete(Quest, QuestGiver, Player)
  45. UpdateQuestStepDescription(Quest, 5, "I killed two suspended watchers in Fallen Gate.")
  46. UpdateQuestTaskGroupDescription(Quest,3,"I've killed the suspended watchers Yarana wanted me to destroy.")
  47. UpdateQuestZone(Quest,"Longshadow Alley")
  48. AddQuestStepChat(Quest, 6, "I should return to Yarana.", 1, "I should return to Yarana in Longshadow Alley and inform her of my progress.", 11, 1380028)
  49. AddQuestStepCompleteAction(Quest, 6, "QuestComplete")
  50. end
  51. function QuestComplete(Quest, QuestGiver, Player)
  52. UpdateQuestStepDescription(Quest, 6, "I've returned to Yarana and informed her of my deeds.")
  53. UpdateQuestTaskGroupDescription(Quest,3,"Yarana will deal directly with her rival, but I've done what she asked.")
  54. UpdateQuestDescription(Quest, "Yarana will deal directly with her rival, but I've done what she asked. She even gave me a reward, which seemed unusual, but I'm not complaining.")
  55. GiveQuestReward(Quest, Player)
  56. end
  57. function Accepted(Quest, QuestGiver, Player)
  58. FaceTarget(QuestGiver, Player)
  59. Dialog.New(QuestGiver, Player)
  60. Dialog.AddDialog("I cannot risk being overheard. Come closer and I will whisper to you what I need. You must write these instructions down in your journal. Do what I say, and I will reward you.")
  61. Dialog.AddVoiceover("voiceover/english/yarana_d_ven/fprt_hood05/quests/yaranadven/yarana_dven001.mp3",4193738982,2153468807)
  62. PlayFlavor(QuestGiver, "","","snicker",0,0, Player)
  63. Dialog.AddOption("Fine. Here is my journal. I'll see what I can do.")
  64. Dialog.Start()
  65. end
  66. function Declined(Quest, QuestGiver, Player)
  67. -- Add dialog here for when the quest is declined
  68. end
  69. function Deleted(Quest, QuestGiver, Player)
  70. -- Remove any quest specific items here when the quest is deleted
  71. end
  72. function Reload(Quest, QuestGiver, Player, Step)
  73. if Step == 1 then
  74. Step1Complete(Quest, QuestGiver, Player)
  75. elseif Step == 2 then
  76. Step2Complete(Quest, QuestGiver, Player)
  77. elseif Step == 3 then
  78. Step3Complete(Quest, QuestGiver, Player)
  79. elseif Step == 4 then
  80. Step4Complete(Quest, QuestGiver, Player)
  81. elseif Step == 5 then
  82. Step5Complete(Quest, QuestGiver, Player)
  83. elseif Step == 6 then
  84. QuestComplete(Quest, QuestGiver, Player)
  85. end
  86. end