9
3

seeking_elemental_education.lua 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. --[[
  2. Script Name : Quests/FrostfangSea/seeking_elemental_education.lua
  3. Script Purpose : for the quest "Seeking Elemental Education"
  4. Script Author : theFoof
  5. Script Date : 2013.6.13
  6. Script Notes :
  7. Zone : Frostfang Sea
  8. Quest Giver : Thirin Veliumdelver
  9. Preceded by : Sleetfoot Search Party
  10. Followed by : Nap Time for Evigis
  11. --]]
  12. function Init(Quest)
  13. AddQuestRewardCoin(Quest, math.random(5,90), math.random(12,25), 0, 0)
  14. AddQuestStepChat(Quest, 1, "Speak with Torli Blackbow at the White Lodge, the guard house for New Halas.", 1, "Thirin Veliumdelver has sent you within New Halas to alert others of Evigis the Ancient.", 0, 4700137)
  15. AddQuestStepCompleteAction(Quest, 1, "TalkedTorli")
  16. end
  17. function Accepted(Quest, QuestGiver, Player)
  18. FaceTarget(QuestGiver, Player)
  19. conversation = CreateConversation()
  20. PlayFlavor(QuestGiver, "thirin_veliumdelver/halas/cragged_spine/thirin_veliumdelver_cave018.mp3", "", "", 706555413, 2480131387, Player)
  21. AddConversationOption(conversation, "I will do this, for Ordin.", "ExtraChat")
  22. AddConversationOption(conversation, "I am sorry, but this is too much right now.")
  23. StartConversation(conversation, QuestGiver, Player, GetName(Player) .. ". That is a good name. My friend, I ask one more favor. I need you to deliver the news of this creature to Torli Blackbow. I need to be with my men or I would go myself. You can find her East of the Cragged Spine, in the White Lodge. She is an old friend and will know how to handle this creature.")
  24. end
  25. function ExtraChat(Quest, QuestGiver, Player)
  26. FaceTarget(QuestGiver, Player)
  27. conversation = CreateConversation()
  28. PlayFlavor(QuestGiver, "thirin_veliumdelver/halas/cragged_spine/thirin_veliumdelver_cave019.mp3", "", "", 1580967348, 3299722606, Player)
  29. AddConversationOption(conversation, "You too, Thirin. You too.")
  30. StartConversation(conversation, QuestGiver, Player, "Thank you, my friend. Brell be with you, always.")
  31. end
  32. function Deleted(Quest, QuestGiver, Player)
  33. end
  34. function Declined(Quest, QuestGiver, Player)
  35. end
  36. function TalkedTorli(Quest, QuestGiver, Player)
  37. UpdateQuestStepDescription(Quest, 1, "You spoke with Torli Blackbow.")
  38. AddQuestStepChat(Quest, 2, "Speak with Gerla Meltwater at Glacierbane's Vault, in New Halas.", 1, "Thirin Veliumdelver has sent you within New Halas to alert others of Evigis the Ancient.", 0, 4700183)
  39. AddQuestStepCompleteAction(Quest, 2, "TalkedGerla")
  40. end
  41. function TalkedGerla(Quest, QuestGiver, Player)
  42. UpdateQuestStepDescription(Quest, 2, "You spoke with Torli Blackbow.")
  43. UpdateQuestTaskGroupDescription(Quest, 1, "Gerla Meltwater knew quite a bit about Evigis the Ancient!")
  44. AddQuestStepChat(Quest, 3, "Deliver Gerla's satchel to Torli Blackbow.", 1, "You should return to Torli Blackbow at the White Lodge, the guard house for New Halas.", 0, 4700137)
  45. AddQuestStepCompleteAction(Quest, 3, "CompleteQuest")
  46. end
  47. function CompleteQuest(Quest, QuestGiver, Player)
  48. GiveQuestReward(Quest, Player)
  49. end
  50. function Reload(Quest, QuestGiver, Player, Step)
  51. if Step == 1 then
  52. TalkedTorli(Quest, QuestGiver, Player)
  53. elseif Step == 2 then
  54. TalkedGerla(Quest, QuestGiver, Player)
  55. end
  56. end