EmpressAnassa.lua 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. --[[
  2. Script Name : SpawnScripts/Oakmyst_Classic/EmpressAnassa.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.10.19 01:10:53
  5. Script Purpose :
  6. :
  7. --]]
  8. require "SpawnScripts/Generic/DialogModule"
  9. local QUEST_FROM_NEOLA = 228
  10. local QUEST_FROM_JUDGE = 229
  11. local QUEST_1 = 230
  12. function spawn(NPC)
  13. ProvidesQuest(NPC, QUEST_1)
  14. end
  15. function respawn(NPC)
  16. spawn(NPC)
  17. end
  18. function hailed(NPC, Spawn)
  19. FaceTarget(NPC, Spawn)
  20. Dialog.New(NPC, Spawn)
  21. Dialog.AddDialog("Greetings and welcome to our hollowed grove. What is it you seek?")
  22. Dialog.AddVoiceover("voiceover/english/empress_anassa/qey_adv01_oakmyst/empressanassa000.mp3", 122104258, 2418821305)
  23. if HasCompletedQuest(Spawn, QUEST_FROM_NEOLA) and HasCompletedQuest(Spawn, QUEST_FROM_JUDGE) and not HasQuest(Spawn, QUEST_1) and not HasCompletedQuest(Spawn, QUEST_1) then
  24. Dialog.AddOption("Your judge has sent me. ", "Dialog1")
  25. elseif HasQuest(Spawn, QUEST_1) and GetQuestStep(Spawn, QUEST_1) == 1 then
  26. Dialog.AddOption("What is Rotweed?", "WhatIsRotweed")
  27. elseif HasQuest(Spawn, QUEST_1) and GetQuestStep(Spawn, QUEST_1) == 2 then
  28. Dialog.AddOption("I've killed Rotweed.", "KilledRotweed")
  29. end
  30. Dialog.AddOption("I seek nothing. Farewell.")
  31. Dialog.Start()
  32. end
  33. function Dialog1(NPC, Spawn)
  34. FaceTarget(NPC, Spawn)
  35. Dialog.New(NPC, Spawn)
  36. Dialog.AddDialog("You're the one Eunomia speaks of so highly. You served us well, but the corruption spoiling this forest still looms. We must destroy it!")
  37. Dialog.AddVoiceover("voiceover/english/empress_anassa/qey_adv01_oakmyst/empressanassa001.mp3", 2413694223, 3249886885)
  38. Dialog.AddOption("I will challenge this evil. ", "OfferQuest1")
  39. Dialog.AddOption("I cannot help you now. Farewell.")
  40. Dialog.Start()
  41. end
  42. function OfferQuest1(NPC, Spawn)
  43. FaceTarget(NPC, Spawn)
  44. OfferQuest(NPC, Spawn, QUEST_1)
  45. end
  46. function WhatIsRotweed(NPC, Spawn)
  47. FaceTarget(NPC, Spawn)
  48. Dialog.New(NPC, Spawn)
  49. Dialog.AddDialog("In this age, all woodlands fight a silent battle. The forces of nature have become twisted and tormented. Rotweed is one of these corrupted creations that taints the woodlands of Norrath.")
  50. Dialog.AddVoiceover("voiceover/english/empress_anassa/qey_adv01_oakmyst/empressanassa003.mp3", 1907995091, 655055942)
  51. Dialog.AddOption("I will battle this Rotweed and return victorious. ")
  52. Dialog.Start()
  53. end
  54. function KilledRotweed(NPC, Spawn)
  55. SetStepComplete(Spawn, QUEST_1, 2)
  56. FaceTarget(NPC, Spawn)
  57. Dialog.New(NPC, Spawn)
  58. Dialog.AddDialog("This is good, but others like Rotweed will return someday. We will watch and defend. We, of this woodland, thank you.")
  59. --Missing VoiceOver MP3 Keys (1/17/2022)- Dorbin
  60. Dialog.AddVoiceover("voiceover/english/empress_anassa/qey_adv01_oakmyst/empressanassa004.mp3", 0, 0)
  61. Dialog.AddOption("Thank you, Empress Anassa.")
  62. Dialog.Start()
  63. end