highly_flammable_materials.lua 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. --[[
  2. Script Name : Quests/FrostfangSea/highly_flammable_materials.lua
  3. Script Purpose : the quest Highly Flammable Materials
  4. Script Author : theFoof
  5. Script Date : 2013.6.20
  6. Script Notes :
  7. Zone : Frostfang Sea
  8. Quest Giver : Odon Scourgeson
  9. Preceded by : Whirling Ice Time
  10. Followed by : Campside Spores
  11. --]]
  12. function Init(Quest)
  13. AddQuestRewardCoin(Quest, math.random(5,90), math.random(12,25), 0, 0)
  14. AddQuestStep(Quest, 1, "Find an item to torch the Ry'Gorr encampments with on Jagged Daggers.", 1, 100, "Find a way to burn down any Ry'Gorr encampments you find on Jagged Daggers.", 2230)
  15. AddQuestStepCompleteAction(Quest, 1, "GotTorch")
  16. end
  17. function Accepted(Quest, QuestGiver, Player)
  18. FaceTarget(QuestGiver, Player)
  19. conversation = CreateConversation()
  20. PlayFlavor(QuestGiver, "odon_scourgeson/halas/cragged_spine/odon_scourgeson_016.mp3", "", "", 1474162446, 1230111187, Player)
  21. AddConversationOption(conversation, "Gladly!")
  22. StartConversation(conversation, QuestGiver, Player, "And if you find any Ry'Gorr encampments, destroy them by any means necessary!")
  23. end
  24. function Deleted(Quest, QuestGiver, Player)
  25. if HasItem(Player, 47882) then
  26. RemoveItem(Player, 47882)
  27. end
  28. end
  29. function Declined(Quest, QuestGiver, Player)
  30. end
  31. function GotTorch(Quest, QuestGiver, Player)
  32. UpdateQuestStepDescription(Quest, 1, "You found a Ry'Gorr firepit torch!")
  33. AddQuestStep(Quest, 2, "Burn down any Ry'Gorr encampments on Jagged Daggers.", 6, 100, "Find a way to burn down any Ry'Gorr encampments you find on Jagged Daggers.", 2572)
  34. AddQuestStepCompleteAction(Quest, 2, "BurnedTents")
  35. end
  36. function BurnedTents(Quest, QuestGiver, Player)
  37. UpdateQuestTaskGroupDescription(Quest, 1, "You burned down the Ry'Gorr encampments you found on Jagged Daggers!")
  38. AddQuestStepChat(Quest, 3, "Return to Odon Scourgeson at Cragged Spine.", 1, "You should return to Odon Scourgeson, at Cragged Spine, now that you burned down the Ry'Gorr encampments you found on Jagged Daggers.", 0, 4700108)
  39. AddQuestStepCompleteAction(Quest, 3, "CompleteQuest")
  40. end
  41. function CompleteQuest(Quest, QuestGiver, Player)
  42. if HasItem(Player, 47882) then
  43. RemoveItem(Player, 47882)
  44. end
  45. GiveQuestReward(Quest, Player)
  46. end
  47. function Reload(Quest, QuestGiver, Player, Step)
  48. if Step == 1 then
  49. GotTorch(Quest, QuestGiver, Player)
  50. elseif Step == 2 then
  51. BurnedTents(Quest, QuestGiver, Player)
  52. end
  53. end