9
3

green_mystery.lua 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. --[[
  2. Script Name : Quests/FrostfangSea/green_mystery.lua
  3. Script Purpose : the quest "Green Mystery"
  4. Script Author : theFoof
  5. Script Date : 2013.6.14
  6. Script Notes :
  7. Zone : Frostfang Sea
  8. Quest Giver : Hillfred Kinloch
  9. Preceded by : Skulls for the Taking
  10. Followed by : Fewer Orcs to Worry About
  11. --]]
  12. function Init(Quest)
  13. AddQuestRewardCoin(Quest, math.random(5,90), math.random(12,25), 0, 0)
  14. AddQuestStep(Quest, 1, "Throw some of the ice upon flames within the Demon's Delve tunnels.", 6, 100, "Hillfred has been holding on to some green ice that was found embedded within The Great Shelf. She is convinced it contains the deadly Green Mist.", 2521)
  15. AddQuestStepCompleteAction(Quest, 1, "UsedIce")
  16. end
  17. function Accepted(Quest, QuestGiver, Player)
  18. if not HasItem(Player, 7928) then
  19. SummonItem(Player, 7928, 1)
  20. end
  21. end
  22. function Deleted(Quest, QuestGiver, Player)
  23. if HasItem(Player, 7928) then
  24. RemoveItem(Player, 7928)
  25. end
  26. end
  27. function Declined(Quest, QuestGiver, Player)
  28. end
  29. function UsedIce(Quest, QuestGiver, Player)
  30. UpdateQuestStepDescription(Quest, 1, "The green ice worked!")
  31. UpdateQuestTaskGroupDescription(Quest, 1, "The green ice worked! It killed any Ry'Gorr orc that breathed the billowing cloud of fumes.")
  32. AddQuestStepChat(Quest, 2, "Return to Hillfred Kinloch and tell her how the green ice killed any Ry'Gorr orc that breathed the billowing cloud of fumes.", 1, "You should return to Hillfred Kinloch, at Cragged Spine, and tell her how the green ice worked!", 0, 4700115)
  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. UsedIce(Quest, QuestGiver, Player)
  41. end
  42. end