rare_rock_lost.lua 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. --[[
  2. Script Name : Quests/Blackburrow/rare_rock_lost.lua
  3. Script Author : Premierio015
  4. Script Date : 2022.07.12 08:07:48
  5. Script Purpose :
  6. Zone : Blackburrow
  7. Quest Giver:
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepKill(Quest, 1, "Recover red rock shards", 1, 30, "I need to find the rock samples somewhere in the mines of Blackburrow. There is a good chance that the miners and excavators might already have them.", 1121, 170010, 170029)
  13. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  14. end
  15. function Accepted(Quest, QuestGiver, Player)
  16. local conversation = CreateConversation()
  17. PlayFlavor(QuestGiver, "voiceover/english/geologist_fribden/blackburrow/geologist_fribden007.mp3", "", "", 458349527, 2957854009, Player)
  18. AddConversationOption(conversation, "I'll be back when I've recovered the items.")
  19. StartConversation(conversation, QuestGiver, Player, "Of course, I'll compensate you for your efforts. I'll write down in your journal what I need recovered.")
  20. end
  21. function Declined(Quest, QuestGiver, Player)
  22. -- Add dialog here for when the quest is declined
  23. end
  24. function Deleted(Quest, QuestGiver, Player)
  25. -- Remove any quest specific items here when the quest is deleted
  26. end
  27. function Step1Complete(Quest, QuestGiver, Player)
  28. UpdateQuestStepDescription(Quest, 1, "I've recovered the red rock shards")
  29. AddQuestStepKill(Quest, 2, "Recover black rock shards", 1, 30, "I need to find the rock samples somewhere in the mines of Blackburrow. There is a good chance that the miners and excavators might already have them.", 1124, 170010, 170029)
  30. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  31. end
  32. function Step2Complete(Quest, QuestGiver, Player)
  33. UpdateQuestStepDescription(Quest, 2, "I've recovered the black rock shards")
  34. AddQuestStepKill(Quest, 3, "Recover green rock shards", 1, 30, "I need to find the rock samples somewhere in the mines of Blackburrow. There is a good chance that the miners and excavators might already have them.", 1139, 170010, 170029)
  35. AddQuestStepCompleteAction(Quest, 3, "Step3Complete")
  36. end
  37. function Step3Complete(Quest, QuestGiver, Player)
  38. UpdateQuestStepDescription(Quest, 3, "I've recovered the green rock shards")
  39. AddQuestStepKill(Quest, 4, "Recover crystalline rock shards", 1, 30, "I need to find the rock samples somewhere in the mines of Blackburrow. There is a good chance that the miners and excavators might already have them.", 1140, 170010, 170029)
  40. AddQuestStepCompleteAction(Quest, 4, "Step4Complete")
  41. end
  42. function Step4Complete(Quest, QuestGiver, Player)
  43. UpdateQuestStepDescription(Quest, 4, "I've recovered the crystalline rock shards")
  44. UpdateQuestTaskGroupDescription(Quest, 1, "I've recovered all of the rock samples Fribden had lost. I should return them to him now.")
  45. AddQuestStepChat(Quest, 5, "Return rock samples to Fribden", 1, "I've recovered the rock samples and should return them to geologist Fribden.", 11, 170012)
  46. AddQuestStepCompleteAction(Quest, 5, "QuestComplete")
  47. end
  48. function QuestComplete(Quest, QuestGiver, Player)
  49. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  50. UpdateQuestStepDescription(Quest, 5, "I gave Fribden his lost rock samples ")
  51. UpdateQuestTaskGroupDescription(Quest, 2, "I've returned all of the lost rock samples to geologist Fribden.")
  52. UpdateQuestDescription(Quest, "I was able to recover all of the lost rock samples for geologist Fribden. He was very pleased with my efforts and I was well rewarded.")
  53. GiveQuestReward(Quest, Player)
  54. end
  55. function Reload(Quest, QuestGiver, Player, Step)
  56. if Step == 1 then
  57. Step1Complete(Quest, QuestGiver, Player)
  58. elseif Step == 2 then
  59. Step2Complete(Quest, QuestGiver, Player)
  60. elseif Step == 3 then
  61. Step3Complete(Quest, QuestGiver, Player)
  62. elseif Step == 4 then
  63. Step4Complete(Quest, QuestGiver, Player)
  64. elseif Step == 5 then
  65. QuestComplete(Quest, QuestGiver, Player)
  66. end
  67. end