9
3

geode_caching.lua 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. --[[
  2. Script Name : SpawnScripts/FrostfangSea/geode_caching.lua
  3. Script Purpose : the quest Geode Caching
  4. Script Author : theFoof
  5. Script Date : 2013.6.15
  6. Script Notes :
  7. Zone : Frostfang Sea
  8. Quest Giver : Hillfred Kinloch
  9. Preceded by : Fewer Orcs to Worry About
  10. Followed by : None
  11. --]]
  12. function Init(Quest)
  13. SetQuestFeatherColor(Quest, 3)
  14. SetQuestRepeatable(Quest)
  15. AddQuestRewardCoin(Quest, math.random(5,90), math.random(52,99), 0, 0)
  16. AddQuestStep(Quest, 1, "Search the Velinoid Catacombs in hopes of attaining rare cerise velium crystals.", 6, 100, "Hillfred's interest was piqued by the Velinoid Catacombs you found within the caves below Erollis. She believes a place like that could house the rare cerise velium crystal.", 3776)
  17. AddQuestStepCompleteAction(Quest, 1, "GotCrystals")
  18. end
  19. function Accepted(Quest, QuestGiver, Player)
  20. end
  21. function Deleted(Quest, QuestGiver, Player)
  22. end
  23. function Declined(Quest, QuestGiver, Player)
  24. end
  25. function GotCrystals(Quest, QuestGiver, Player)
  26. UpdateQuestTaskGroupDescription(Quest, 1, "You found quite a few of the rare cerise velium crystals.")
  27. AddQuestStepChat(Quest, 2, "Return to Hillfred Kinloch now that you have found quite a few of the rare cerise velium crystals.", 1, "You presented Hillfred with all of the rare cerise velium crystals you found.", 0, 4700115)
  28. AddQuestStepCompleteAction(Quest, 2, "CompleteQuest")
  29. end
  30. function CompleteQuest(Quest, QuestGiver, Player)
  31. GiveQuestReward(Quest, Player)
  32. end
  33. function Reload(Quest, QuestGiver, Player, Step)
  34. if Step == 1 then
  35. GotCrystals(Quest, QuestGiver, Player)
  36. end
  37. end