SarnakSympathizerPart1.lua 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. --[[
  2. Script Name : Quests/ButcherblockMountains/SarnakSympathizerPart1.lua
  3. Script Purpose : Handles the quest, "Sarnak Sympathizer: Part 1"
  4. Script Author : jakejp
  5. Script Date : 6/4/2018
  6. Script Notes :
  7. Zone : Butcherblock Mountains
  8. Quest Giver : Raghunatha
  9. Preceded by : None
  10. Followed by : None
  11. --]]
  12. function Init(Quest)
  13. AddQuestStepChat(Quest, 1, "I need to complete all the Irontoe Dwarf tasks so that they will agree to help Raghunatha. To begin, I must speak with Griss Brumbaugh at the Butcherblock Docks.", 1, "I need to complete all the Irontoe Dwarf tasks.", 11, 1081075)
  14. AddQuestStepCompleteAction(Quest, 1, "QuestComplete")
  15. end
  16. function QuestComplete(Quest, QuestGiver, Player)
  17. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  18. UpdateQuestStepDescription(Quest, 1, "I found Griss Brumbaugh.")
  19. UpdateQuestTaskGroupDescription(Quest, 1, "I found Griss Brumbaugh and began working for the Irontoe Dwarves.")
  20. UpdateQuestDescription(Quest, "The dwarves have a great many threats to deal with in Butcherblock Mountains, but hopefully, with my continued assistance they will agree to provide military and engineering support for the sarnak of Gorowyn.")
  21. GiveQuestReward(Quest, Player)
  22. end
  23. function Reload(Quest, QuestGiver, Player, Step)
  24. if Step == 1 then
  25. QuestComplete(Quest, QuestGiver, Player)
  26. end
  27. end
  28. function Accepted(Quest, QuestGiver, Player)
  29. FaceTarget(QuestGiver, Player)
  30. conversation = CreateConversation()
  31. PlayFlavor(QuestGiver, "raghuntha/_exp03/exp03_rgn_butcherblock/sarnak_sympathizer/raghunatha/raghunatha007.mp3", "", "", 3396264823, 906309207, Player)
  32. AddConversationOption(conversation, "I'll begin at once!")
  33. StartConversation(conversation, QuestGiver, Player, "Thank you, friend, I'll do my best to make sure you're rewarded kindly. Now, let me write down the names of all the dwarves you'll need to speak with. Complete their tasks and then return to me. Time is of the essence, and the Haoaeran's attacks grow stronger every day.")
  34. end
  35. function Declined(Quest, QuestGiver, Player)
  36. -- Add dialog here for when the quest is declined
  37. end