watch_out_below.lua 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. --[[
  2. Script Name : Quests/FrostfangSea/watch_out_below.lua
  3. Script Purpose : the quest Watch Out Below!
  4. Script Author : theFoof
  5. Script Date : 2013.7.18
  6. Script Notes :
  7. Zone : Frostfang Sea
  8. Quest Giver : Odon Sourgeson
  9. Preceded by : Ry'Gorr Tool Taking
  10. Followed by : None
  11. --]]
  12. function Init(Quest)
  13. SetQuestRepeatable(Quest)
  14. SetQuestFeatherColor(Quest, 3)
  15. AddQuestRewardCoin(Quest, math.random(5,90), math.random(52,70), 0, 0)
  16. AddQuestStep(Quest, 1, "Break off glimmering velium crystals that grow from the cave ceiling, and gather them up.", 5, 100, "Return to the Velinoid Catacombs in search of glimmering velium crystals.", 3774)
  17. AddQuestStepCompleteAction(Quest, 1, "GotCrystals")
  18. end
  19. function Accepted(Quest, QuestGiver, Player)
  20. FaceTarget(QuestGiver, Player)
  21. conversation = CreateConversation()
  22. PlayFlavor(QuestGiver, "odon_scourgeson/halas/cragged_spine/odon_scourgeson_042.mp3", "", "", 2099746411, 4081524190, Player)
  23. AddConversationOption(conversation, "That will be good.")
  24. StartConversation(conversation, QuestGiver, Player, "That's wonderful! The money raised by selling the velium can help to buy us more goods and weapons out here on the front.")
  25. end
  26. function Deleted(Quest, QuestGiver, Player)
  27. end
  28. function Declined(Quest, QuestGiver, Player)
  29. end
  30. function GotCrystals(Quest, QuestGiver, Player)
  31. UpdateQuestTaskGroupDescription(Quest, 1, "You have gathered enough glimmering velium crystals.")
  32. AddQuestStepChat(Quest, 2, "Return to Odon Scourgeson now that you have gathered enough glimmering velium crystals.", 1, "You should return to Odon Scourgeson, at Cragged Spine, now that you have gathered enough glimmering velium crystals.", 0, 4700108)
  33. AddQuestStepCompleteAction(Quest, 2, "CompleteQuest")
  34. end
  35. function CompleteQuest(Quest, QuestGiver, Player)
  36. GiveQuestReward(Quest, Player)
  37. end
  38. function Reload(Quest, QuestGiver, Player, Step)
  39. if Step == 1 then
  40. GotCrystals(Quest, QuestGiver, Player)
  41. end
  42. end