9
3

becoming_another_orcbane.lua 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. --[[
  2. Script Name : Quests/FrostfangSea/becoming_another_orcbane.lua
  3. Script Purpose : the quest "Becoming Another Orcbane"
  4. Script Author : theFoof
  5. Script Date : 2013.7.24
  6. Script Notes :
  7. Zone : Frostfang Sea
  8. Quest Giver : Knut Orcbane
  9. Preceded by : Mystery on the Orc Iceberg
  10. Followed by : Flawless Core Chore
  11. --]]
  12. function Init(Quest)
  13. AddQuestRewardCoin(Quest, math.random(5,90), math.random(12,25), 0, 0)
  14. AddQuestStep(Quest, 1, "After dealing enough damage to the Ry'Gorr tunnelers, use the cadaver's dram on them to finish the job!", 6, 100, "Knut gave you a potion to help you battle the ranks of Ry'Gorr tunnelers within Demon's Delve.", 328)
  15. AddQuestStepCompleteAction(Quest, 1, "UsedDram")
  16. end
  17. function Accepted(Quest, QuestGiver, Player)
  18. SummonItem(Player, 45453, 1)
  19. FaceTarget(QuestGiver, Player)
  20. conversation = CreateConversation()
  21. PlayFlavor(QuestGiver, "knut_orcbane/halas/cragged_spine/knut_orcbane_042.mp3", "", "", 3041202396, 3394706601, Player)
  22. AddConversationOption(conversation, "Hurt them and then use the cadaver's dram. Got it!")
  23. StartConversation(conversation, QuestGiver, Player, "Not so fast! It can only be used on them after their health has been reduced. They must be weak in order to be susceptible to the cadaver's dram.")
  24. end
  25. function Deleted(Quest, QuestGiver, Player)
  26. while HasItem(Player, 45453) do
  27. RemoveItem(Player, 45453)
  28. end
  29. end
  30. function Declined(Quest, QuestGiver, Player)
  31. end
  32. function UsedDram(Quest, QuestGiver, Player)
  33. UpdateQuestTaskGroupDescription(Quest, 1, "You used the cadaver's dram on a great number of Ry'Gorr tunnelers.")
  34. AddQuestStepChat(Quest, 2, "Return to Knut Orcbane now that you have reduced the number of Ry'Gorr forces within the Demon's Delve tunnels.", 1, "You should return to Knut Orcbane, at Cragged Spine, now that you have reduced the number of Ry'Gorr forces within the Demon's Delve tunnels.", 0, 4700113)
  35. AddQuestStepCompleteAction(Quest, 2, "CompleteQuest")
  36. end
  37. function CompleteQuest(Quest, QuestGiver, Player)
  38. GiveQuestReward(Quest, Player)
  39. while HasItem(Player, 45453) do
  40. RemoveItem(Player, 45453)
  41. end
  42. end
  43. function Reload(Quest, QuestGiver, Player, Step)
  44. if Step == 1 then
  45. UsedDram(Quest, QuestGiver, Player)
  46. end
  47. end