through_thine_eyes.lua 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. --[[
  2. Script Name : Quests/FrostfangSea/through_thine_eyes.lua
  3. Script Purpose : for the quest Through Thine Eyes
  4. Script Author : theFoof
  5. Script Date : 2013.6.10
  6. Script Notes :
  7. Zone : Frostfang Sea
  8. Quest Giver : Thirin Veliumdelver
  9. Preceded by : Roughing Up the Reinforcements
  10. Followed by : Below The Frozen Waves
  11. --]]
  12. function Init(Quest)
  13. AddQuestRewardCoin(Quest, math.random(5,90), math.random(12,24), 0, 0)
  14. AddQuestStep(Quest, 1, "I need to use the Ry'Gorr Scrying Eye on a " .. '"lazy Ry' .. "'" .. 'Gorr orc."', 1, 100, "I need to travel to the iceberg, east of the Jagged Daggers Isle, and use the Ry'Gorr Scrying Eye on an unsuspecting orc.", 0)
  15. AddQuestStepCompleteAction(Quest, 1, "UsedEye")
  16. end
  17. function Accepted(Quest, QuestGiver, Player)
  18. local thirin = GetSpawnByLocationID(GetZone(QuestGiver), 14520)
  19. FaceTarget(QuestGiver, Player)
  20. conversation = CreateConversation()
  21. PlayFlavor(thirin, "thirin_veliumdelver/halas/thirin_veliumdelver/thirin_veliumdelver016.mp3", "", "", 2746219212, 3926805260, Player)
  22. AddConversationOption(conversation, "I'll let you know what I learn.")
  23. StartConversation(conversation, thirin, Player, "Your value grows, adventurer. You won't be able to use this in the middle of their camp, but I have heard reports say there are a few Ry'gorr on the iceberg to the east of the Jagged Daggers Isle. See what you find there, perhaps an opportunity to use the eye will present itself.")
  24. end
  25. function Deleted(Quest, QuestGiver, Player)
  26. end
  27. function Declined(Quest, QuestGiver, Player)
  28. end
  29. function UsedEye(Quest, QuestGiver, Player) -- add cutscene here when we have the ability
  30. if HasItem(Player, 11820) then
  31. RemoveItem(Player, 11820)
  32. end
  33. UpdateQuestStepDescription(Quest, 1, "I have used the Ry'Gorr Scrying Eye on " .. '"' .. "a lazy Ry'Gorr orc." .. '"')
  34. UpdateQuestTaskGroupDescription(Quest, 1, "I was able to use the scrying eye on a lazy Ry'Gorr Orc and see through his eyes.")
  35. AddQuestStepChat(Quest, 2, "I should speak with Thirin Veliumdelver about the underwater tunnel.", 1, "It appears there is an underwater tunnel that leads underneath Erollis. I should inform Thirin Veliumdelver right away.", 0, 4700112)
  36. AddQuestStepCompleteAction(Quest, 2, "CompleteQuest")
  37. end
  38. function CompleteQuest(Quest, QuestGiver, Player)
  39. GiveQuestReward(Quest, Player)
  40. end
  41. function Reload(Quest, QuestGiver, Player, Step)
  42. if Step == 1 then
  43. UsedEye(Quest, QuestGiver, Player)
  44. end
  45. end