9
3

severing_the_head.lua 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. --[[
  2. Script Name : Quests/FrostfangSea/severing_the_head.lua
  3. Script Purpose : the quest "Severing the Head"
  4. Script Author : theFoof
  5. Script Date : 2013.6.17
  6. Script Notes :
  7. Zone : Frostfang Sea
  8. Quest Giver : Dolur Axebeard
  9. Preceded by : Off to the Ossuary
  10. Followed by : The Nightmare is Over
  11. --]]
  12. function Init(Quest)
  13. UpdateQuestZone(Quest, "Cave of Illboding Dark: The Source")
  14. AddQuestRewardCoin(Quest, math.random(5,90), math.random(6,15), 0, 0)
  15. AddQuestStepKill(Quest, 1, "I must kill Orug Deathmaker in the Cave of Illboding.", 1, 100, "I must return to the Cave of Illboding on the Ossuary of Ice, defeat the head necromancer, Orug Deathmaker, and shatter the dark crystal. The Ossuary is an island off the coast of Erollis, to the south of Ry'Gorr Isle.", 611, 5170003)
  16. AddQuestStepCompleteAction(Quest, 1, "KilledOrc")
  17. end
  18. function Accepted(Quest, QuestGiver, Player)
  19. FaceTarget(QuestGiver, Player)
  20. conversation = CreateConversation()
  21. PlayFlavor(QuestGiver, "dolur_axebeard/halas/great_shelf/dolur_axebeard/dolur_axebeard098.mp3", "", "", 2381129063, 239921883, Player)
  22. AddConversationOption(conversation, "I will return.")
  23. AddConversationOption(conversation, "The orcs will need the luck more than I will.")
  24. StartConversation(conversation, QuestGiver, Player, "Best of luck to ye, " .. GetName(Player) .. ".")
  25. end
  26. function Deleted(Quest, QuestGiver, Player)
  27. end
  28. function Declined(Quest, QuestGiver, Player)
  29. end
  30. function KilledOrc(Quest, QuestGiver, Player)
  31. UpdateQuestStepDescription(Quest, 1, "I have killed Orug Deathmaker.")
  32. AddQuestStep(Quest, 2, "I must smash the dark crystal.", 1, 100, "I must return to the Cave of Illboding on the Ossuary of Ice, defeat the head necromancer, Orug Deathmaker, and shatter the dark crystal. The Ossuary is an island off the coast of Erollis, to the south of Ry'Gorr Isle.", 3528)
  33. AddQuestStepCompleteAction(Quest, 2, "SmashedCrystal")
  34. end
  35. function SmashedCrystal(Quest, QuestGiver, Player)
  36. UpdateQuestZone(Quest, "Frostfang Sea")
  37. UpdateQuestStepDescription(Quest, 2, "I have smashed the dark crystal.")
  38. UpdateQuestTaskGroupDescription(Quest, 1, "I have killed Orug Deathmaker and shattered the dark crystal.")
  39. AddQuestStepChat(Quest, 3, "I must speak with Dolur Axebeard.", 1, "I must speak with Dolur Axebeard, who can be found in the cave at the Great Shelf.", 0, 4700078)
  40. AddQuestStepCompleteAction(Quest, 3, "CompleteQuest")
  41. end
  42. function CompleteQuest(Quest, QuestGiver, Player)
  43. GiveQuestReward(Quest, Player)
  44. end
  45. function Reload(Quest, QuestGiver, Player, Step)
  46. if Step == 1 then
  47. KilledOrc(Quest, QuestGiver, Player)
  48. elseif Step == 2 then
  49. SmashedCrystal(Quest, QuestGiver, Player)
  50. end
  51. end