no_rivals_for_yarana_part_i.lua 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  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 : later this quest was splitted up into 3 Parts
  7. Zone : Longshadow Alley
  8. Quest Giver : Yarana D'Ven
  9. Preceded by : None
  10. Followed by : None
  11. --]]
  12. function Init(Quest)
  13. AddQuestStepKill(Quest, 1, "Destroy 8 filthy moccasins.", 8, 100, "I need to go to the Serpent Sewers and destroy 8 filthy moccasins.", 611, 1550002, 1550039)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  15. end
  16. function Step1Complete(Quest, QuestGiver, Player)
  17. UpdateQuestStepDescription(Quest, 1, "I killed the filthy moccasins.")
  18. AddQuestStepChat(Quest, 2, "I should return to Yarana.", 1, "I should return to Yarana in Longshadow Alley.", 11, 1380028)
  19. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  20. end
  21. function Step2Complete(Quest, QuestGiver, Player)
  22. UpdateQuestStepDescription(Quest, 2, "I returned to Yarana in Longshadow Alley.")
  23. AddQuestStepKill(Quest, 3, "Destroy 7 shadow lurkers.", 7, 100, "I need search Fallen Gate for seven slime sacs and destroy them.", 611, 1190001)
  24. AddQuestStepCompleteAction(Quest, 3, "Step3Complete")
  25. end
  26. function Step3Complete(Quest, QuestGiver, Player)
  27. UpdateQuestStepDescription(Quest, 3, "I killed the shadow lurkers.")
  28. AddQuestStepChat(Quest, 4, "I should return to Yarana.", 1, "I should return to Yarana.", 11, 1380028)
  29. AddQuestStepCompleteAction(Quest, 4, "Step4Complete")
  30. end
  31. function Step4Complete(Quest, QuestGiver, Player)
  32. UpdateQuestStepDescription(Quest, 4, "I returned to Yarana in Longshadow Alley.")
  33. AddQuestStepKill(Quest, 5, "Destroy two suspended watchers.", 2, 100, "Go back to Fallen Gate and destroy two suspended watchers.", 611, 1190029, 1190030)
  34. AddQuestStepCompleteAction(Quest, 5, "Step5Complete")
  35. end
  36. function Step5Complete(Quest, QuestGiver, Player)
  37. UpdateQuestStepDescription(Quest, 5, "I killed two suspended watchers in Fallen Gate.")
  38. AddQuestStepChat(Quest, 6, "I should return to Yarana.", 1, "I should return to Yarana to collect my reward.", 11, 1380028)
  39. AddQuestStepCompleteAction(Quest, 6, "QuestComplete")
  40. end
  41. function QuestComplete(Quest, QuestGiver, Player)
  42. UpdateQuestDescription(Quest, "I completed all the tasks for Yarana and received a nice silver ring.")
  43. GiveQuestReward(Quest, Player)
  44. end
  45. function Accepted(Quest, QuestGiver, Player)
  46. -- Add dialog here for when the quest is accepted
  47. end
  48. function Declined(Quest, QuestGiver, Player)
  49. -- Add dialog here for when the quest is declined
  50. end
  51. function Deleted(Quest, QuestGiver, Player)
  52. -- Remove any quest specific items here when the quest is deleted
  53. end
  54. function Reload(Quest, QuestGiver, Player, Step)
  55. if Step == 1 then
  56. Step1Complete(Quest, QuestGiver, Player)
  57. elseif Step == 2 then
  58. Step2Complete(Quest, QuestGiver, Player)
  59. elseif Step == 3 then
  60. Step3Complete(Quest, QuestGiver, Player)
  61. elseif Step == 4 then
  62. Step4Complete(Quest, QuestGiver, Player)
  63. elseif Step == 5 then
  64. Step5Complete(Quest, QuestGiver, Player)
  65. elseif Step == 6 then
  66. QuestComplete(Quest, QuestGiver, Player)
  67. end
  68. end