scouting_the_jagged_plains.lua 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. --[[
  2. Script Name : Quests/Everfrost/scouting_the_jagged_plains.lua
  3. Script Author : Flunklesnarkin
  4. Script Date : 2016.01.13 02:01:35
  5. Script Purpose :
  6. Zone : Everfrost
  7. Quest Giver: Thyr Stormhammer
  8. Preceded by: Supplies for the Pioneers (Not a requirement though)
  9. Followed by: Peace with the Valkyries
  10. --]]
  11. function Init(Quest)
  12. AddQuestRewardCoin(Quest, math.random(20,60), math.random(30,90), math.random(3,5), 0)
  13. AddQuestStepLocation(Quest, 1, "I need to survey one point in the Jagged Plains.", 30, "I need to hit a number of locations within the Jagged Plains to ensure that I have scouted the whole area.", 0, 125, 20, -422)
  14. AddQuestStepLocation(Quest, 2, "I need to survey a second point in the Jagged Plains.", 30, "I need to hit a number of locations within the Jagged Plains to ensure that I have scouted the whole area.", 0, -41, 20, -380)
  15. AddQuestStepLocation(Quest, 3, "I need to survey a third point in the Jagged Plains.", 30, "I need to hit a number of locations within the Jagged Plains to ensure that I have scouted the whole area.", 0, -132, 20, -465)
  16. AddQuestStepLocation(Quest, 4, "I need to survey a fourth point in the Jagged Plains.", 30, "I need to hit a number of locations within the Jagged Plains to ensure that I have scouted the whole area.", 0, 47, 30, -510)
  17. AddQuestStepLocation(Quest, 5, "I need to survey a fifth point in the Jagged Plains.", 30, "I need to hit a number of locations within the Jagged Plains to ensure that I have scouted the whole area.", 0, 130, 20, -651)
  18. AddQuestStepLocation(Quest, 6, "I need to survey a sixth point in the Jagged Plains.", 30, "I need to hit a number of locations within the Jagged Plains to ensure that I have scouted the whole area.", 0, 79, 24, -633)
  19. AddQuestStepCompleteAction(Quest, 1, "Visited_Locations")
  20. end
  21. function Accepted(Quest, QuestGiver, Player)
  22. FaceTarget(QuestGiver, Player)
  23. conversation = CreateConversation()
  24. AddConversationOption(conversation, "Sounds easy enough.")
  25. StartConversation(conversation, QuestGiver, Player, "Do a thorough sweep of the valley, and then return to me.")
  26. end
  27. function Declined(Quest, QuestGiver, Player)
  28. end
  29. function Visited_Locations(Quest, QuestGiver, Player)
  30. UpdateQuestTaskGroupDescription(Quest, 1, "I have scouted the whole of the Jagged Plains, searching for a liveable space.")
  31. SetCompleteFlag(Quest)
  32. AddQuestStepChat(Quest, 2, "I need to speak with Thyr Stormhammer.", 1, "I need to return to Thyr Stormhammer at the Bitterwind Pioneer Camp and report what I have observed.", 0, 410068)
  33. AddQuestStepCompleteAction(Quest, 2, "Quest_Complete")
  34. end
  35. function Quest_Complete(Quest, QuestGiver, Player)
  36. GiveQuestReward(Quest, Player)
  37. end
  38. function Reload(Quest, QuestGiver, Player, Step)
  39. end