below_the_frozen_waves.lua 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. --[[
  2. Script Name : Quests/FrostfangSea/below_the_frozen_waves.lua
  3. Script Purpose : for the quest Below the Frozen Waves
  4. Script Author : theFoof
  5. Script Date : 2013.6.11
  6. Script Notes :
  7. Zone : Frostfang Sea
  8. Quest Giver : Thirin Veliumdelver
  9. Preceded by : Through Thine Eyes
  10. Followed by :
  11. --]]
  12. function Init(Quest)
  13. AddQuestRewardCoin(Quest, math.random(5,90), math.random(12,25), 0, 0)
  14. AddQuestStepLocation(Quest, 1, "I should travel down to the Ry'Gorr caves and see what's inside.", 15, "Using the knowledge gained through the eyes of a Ry'Gorr orc I am to travel below the waves to the underwater tunnel below Erollis.", 0, -4.45, -66.71, 233.13)
  15. AddQuestStepCompleteAction(Quest, 1, "FoundCaves")
  16. end
  17. function Accepted(Quest, QuestGiver, Player)
  18. if not HasItem(Player, 48603) then
  19. SummonItem(Player, 48603, 1)
  20. end
  21. local thirin = GetSpawnByLocationID(GetZone(QuestGiver), 14520)
  22. FaceTarget(QuestGiver, Player)
  23. conversation = CreateConversation()
  24. PlayFlavor(thirin, "thirin_veliumdelver/halas/thirin_veliumdelver/thirin_veliumdelver020.mp3", "", "", 3456248509, 1625770921, Player)
  25. AddConversationOption(conversation, "I'll be safe, Thirin.")
  26. StartConversation(conversation, thirin, Player, "And if ye want another, just return here, and grab it. Brell protect ye, now. You're going to need it!")
  27. end
  28. function Deleted(Quest, QuestGiver, Player)
  29. end
  30. function Declined(Quest, QuestGiver, Player)
  31. end
  32. function FoundCaves(Quest, QuestGiver, Player)
  33. UpdateQuestStepDescription(Quest, 1, "There seems to be a network of caves. I should have a better look around.")
  34. UpdateQuestTaskGroupDescription(Quest, 1, "It appears the orcs have created a network of tunnels underneath Erollis.")
  35. AddQuestStepLocation(Quest, 2, "I should examine the suspicious cave-in to the north.", 15, "I have found that the orcs have built a network of caves under Erollis. From where I stand I can see a suspicious looking cave-in to the north. I should check it out.", 0, -9.93, -67.63, 157.29)
  36. AddQuestStepCompleteAction(Quest, 2, "FoundCaveIn")
  37. end
  38. function FoundCaveIn(Quest, QuestGiver, Player)
  39. UpdateQuestStepDescription(Quest, 2, "I have examined the suspicious cave-in to the north.")
  40. UpdateQuestTaskGroupDescription(Quest, 2, "Upon examining the cave-in, it appears to have been hastily made, possibly using explosives. This is more evident by the crushed Ry'gorr tunneler found at the cave-in. I should return to Thirin Veliumdelver and inform him on what I've found.")
  41. AddQuestStepChat(Quest, 3, "I must speak with Thirin Veliumdelver.", 1, "I need to return to Thirin Veliumdelver and inform him of the Ry'Gorrs' network of caves and of the suspicious cave-in.", 0, 4700112)
  42. AddQuestStepCompleteAction(Quest, 3, "CompleteQuest")
  43. end
  44. function CompleteQuest(Quest, QuestGiver, Player)
  45. GiveQuestReward(Quest, Player)
  46. end
  47. function Reload(Quest, QuestGiver, Player, Step)
  48. if Step == 1 then
  49. FoundCaves(Quest, QuestGiver, Player)
  50. elseif Step == 2 then
  51. FoundCaveIn(Quest, QuestGiver, Player)
  52. end
  53. end