deception.lua 3.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. --[[
  2. Script Name : Quests/MultipleZones/deception.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.08.08 08:08:56
  5. Script Purpose :
  6. Zone : MultipleZones
  7. Quest Giver:
  8. Preceded by: Fire and Ice
  9. Followed by: None
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepKill(Quest, 1, "We need to obtain a Translocation Ring from Niscanith.", 1, 100, "We need to find Darathar's Drakota that are in possession of the other four Translocation Rings.", 597, 3330000)
  13. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  14. end
  15. function Accepted(Quest, QuestGiver, Player)
  16. -- Add dialog here for when the quest is accepted
  17. end
  18. function Declined(Quest, QuestGiver, Player)
  19. -- Add dialog here for when the quest is declined
  20. end
  21. function Deleted(Quest, QuestGiver, Player)
  22. -- Remove any quest specific items here when the quest is deleted
  23. end
  24. function Step1Complete(Quest, QuestGiver, Player)
  25. UpdateQuestStepDescription(Quest, 1, "We have Niscanith 's Translocation Ring.")
  26. AddQuestStepKill(Quest, 2, "We need to obtain a Translocation Ring from Trenda'loz.", 1, 100, "We need to find Darathar's Drakota that are in possession of the other four Translocation Rings.", 597, 1200000)
  27. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  28. end
  29. function Step2Complete(Quest, QuestGiver, Player)
  30. UpdateQuestStepDescription(Quest, 2, "We have Trenda'loz 's Translocation Ring.")
  31. AddQuestStepKill(Quest, 3, "We need to obtain a Translocation Ring from Vanudozalon.", 1, 100, "We need to find Darathar's Drakota that are in possession of the other four Translocation Rings.", 597, 3230000)
  32. AddQuestStepCompleteAction(Quest, 3, "Step3Complete")
  33. end
  34. function Step3Complete(Quest, QuestGiver, Player)
  35. UpdateQuestStepDescription(Quest, 3, "We have Vanudozaon's Translocation Ring.")
  36. AddQuestStepKill(Quest, 4, "We need to obtain a Translocation Ring from Kaljanar.", 1, 100, "We need to find Darathar's Drakota that are in possession of the other four Translocation Rings.", 597, 4720002)
  37. AddQuestStepCompleteAction(Quest, 4, "Step4Complete")
  38. end
  39. function Step4Complete(Quest, QuestGiver, Player)
  40. UpdateQuestStepDescription(Quest, 4, "We recovered the Translocation Ring from the Deathfist Empire.")
  41. UpdateQuestTaskGroupDescription(Quest, 1, "We now have all five Translocation Rings and can use them to travel to Darathar's lair.")
  42. AddQuestStepKill(Quest, 5, "We must defeat Darathar and recover the prismatic egg.", 1, 100, "We need to use the five Translocation Rings at the Tower of the Cold Wind oracles and defeat Darathar.", 1159, 6650000)
  43. AddQuestStepCompleteAction(Quest, 5, "Step5Complete")
  44. end
  45. function Step5Complete(Quest, QuestGiver, Player)
  46. UpdateQuestStepDescription(Quest, 5, "We defeated Darathar!")
  47. UpdateQuestTaskGroupDescription(Quest, 2, "We destroyed Darathar! The egg shattered at the same time Darathar was killed.")
  48. AddQuestStepChat(Quest, 6, "We need to return the shattered pieces of the egg to Nagafen.", 1, "We need to take the shards of the prismatic egg to Nagafen and let him know it was destroyed.", 1188,2460001)
  49. AddQuestStepCompleteAction(Quest, 6, "QuestComplete")
  50. end
  51. function QuestComplete(Quest, QuestGiver, Player)
  52. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  53. UpdateQuestStepDescription(Quest, 6, "We spoke to Nagafen.")
  54. UpdateQuestTaskGroupDescription(Quest, 3, "We took the shards to Nagafen and told him Darathar was defeated.")
  55. UpdateQuestDescription(Quest, "Darathar has been defeated but the egg was destroyed at the end of the battle. All that was left were prismatic egg shell shards. It seems Nagafen was only using us to find his missing egg. He didn't care it was destroyed, he was more concerned with someone other than himself possessing it. <br> <br>")
  56. GiveQuestReward(Quest, Player)
  57. end