9
3

campside_spores.lua 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. --[[
  2. Script Name : Quests/FrostfangSea/campside_spores.lua
  3. Script Purpose : the quest Campside Spores
  4. Script Author : theFoof
  5. Script Date : 2013.6.24
  6. Script Notes :
  7. Zone : Frostfang Sea
  8. Quest Giver : Odon Scourgeson
  9. Preceded by : Highly Flammable Materials
  10. Followed by : Ry'Gorr Tool Taking
  11. --]]
  12. function Init(Quest)
  13. AddQuestRewardCoin(Quest, math.random(5,90), math.random(12,25), 0, 0)
  14. AddQuestStep(Quest, 1, "Apply the crustose spores to any Ry'Gorr provisions on Jagged Daggers.", 4, 100, "Odon wants to apply the crustose spores to any Ry'Gorr provisions you find within their encampment on Jagged Daggers.", 569)
  15. AddQuestStepCompleteAction(Quest, 1, "UsedSpores")
  16. end
  17. function Accepted(Quest, QuestGiver, Player)
  18. SummonItem(Player, 45807)
  19. FaceTarget(QuestGiver, Player)
  20. conversation = CreateConversation()
  21. PlayFlavor(QuestGiver, "odon_scourgeson/halas/cragged_spine/odon_scourgeson_028.mp3", "", "", 2284024418, 845774504, Player)
  22. AddConversationOption(conversation, "I will.")
  23. StartConversation(conversation, QuestGiver, Player, "Oh, but you are not the one that will be doing it. We're going to leave that up to the crustose. Take this pouch of crustose spores and spread them on any Ry'Gorr provisions that you find on Jagged Daggers Isle. Return to me when you have accomplished this task.")
  24. end
  25. function Deleted(Quest, QuestGiver, Player)
  26. if HasItem(Player, 45807) then
  27. RemoveItem(Player, 45807)
  28. end
  29. end
  30. function Declined(Quest, QuestGiver, Player)
  31. end
  32. function UsedSpores(Quest, QuestGiver, Player)
  33. UpdateQuestTaskGroupDescription(Quest, 1, "You spread crustose spores on many provision stashes the Ry'Gorr had and survived the ensuing attacks by angered orcs.")
  34. AddQuestStepChat(Quest, 2, "Return to Odon Scourgeson now that you have spread crustose spores on the Ry'Gorr provisions and survived the ensuing attacks by angered orcs.", 1, "You should return to Odon Scourgeson, at Cragged Spine, now that you have spread crustose spores on the Ry'Gorr provisions and survived the ensuing attacks by angered orcs.", 0, 4700108)
  35. AddQuestStepCompleteAction(Quest, 2, "CompleteQuest")
  36. end
  37. function CompleteQuest(Quest, QuestGiver, Player)
  38. if HasItem(Player, 45807) then
  39. RemoveItem(Player, 45807)
  40. end
  41. GiveQuestReward(Quest, Player)
  42. end
  43. function Reload(Quest, QuestGiver, Player, Step)
  44. if Step == 1 then
  45. UsedSpores(Quest, QuestGiver, Player)
  46. end
  47. end