9
3

EmpressAnassa.lua 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. --[[
  2. Script Name : SpawnScripts/Oakmyst/EmpressAnassa.lua
  3. Script Purpose : Empress Anassa
  4. Script Author : scatman
  5. Script Date : 2009.05.09
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. Update Notes : 2022.01.17 Added final quest dialog, but missing MP3 Keys. - Dorbin
  8. --]]
  9. require "SpawnScripts/Generic/DialogModule"
  10. local QUEST_FROM_NEOLA = 228
  11. local QUEST_FROM_JUDGE = 229
  12. local QUEST_1 = 230
  13. function spawn(NPC)
  14. ProvidesQuest(NPC, QUEST_1)
  15. end
  16. function respawn(NPC)
  17. spawn(NPC)
  18. end
  19. function hailed(NPC, Spawn)
  20. FaceTarget(NPC, Spawn)
  21. Dialog.New(NPC, Spawn)
  22. Dialog.AddDialog("Greetings and welcome to our hollowed grove. What is it you seek?")
  23. Dialog.AddVoiceover("voiceover/english/empress_anassa/qey_adv01_oakmyst/empressanassa000.mp3", 122104258, 2418821305)
  24. 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
  25. Dialog.AddOption("Your judge has sent me. ", "Dialog1")
  26. elseif HasQuest(Spawn, QUEST_1) and GetQuestStep(Spawn, QUEST_1) == 1 then
  27. Dialog.AddOption("What is Rotweed?", "WhatIsRotweed")
  28. elseif HasQuest(Spawn, QUEST_1) and GetQuestStep(Spawn, QUEST_1) == 2 then
  29. Dialog.AddOption("I've killed Rotweed.", "KilledRotweed")
  30. end
  31. Dialog.AddOption("I seek nothing. Farewell.")
  32. Dialog.Start()
  33. end
  34. function Dialog1(NPC, Spawn)
  35. FaceTarget(NPC, Spawn)
  36. Dialog.New(NPC, Spawn)
  37. 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!")
  38. Dialog.AddVoiceover("voiceover/english/empress_anassa/qey_adv01_oakmyst/empressanassa001.mp3", 2413694223, 3249886885)
  39. Dialog.AddOption("I will challenge this evil. ", "OfferQuest1")
  40. Dialog.AddOption("I cannot help you now. Farewell.")
  41. Dialog.Start()
  42. end
  43. function OfferQuest1(NPC, Spawn)
  44. FaceTarget(NPC, Spawn)
  45. OfferQuest(NPC, Spawn, QUEST_1)
  46. end
  47. function WhatIsRotweed(NPC, Spawn)
  48. FaceTarget(NPC, Spawn)
  49. Dialog.New(NPC, Spawn)
  50. 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.")
  51. Dialog.AddVoiceover("voiceover/english/empress_anassa/qey_adv01_oakmyst/empressanassa003.mp3", 1907995091, 655055942)
  52. Dialog.AddOption("I will battle this Rotweed and return victorious. ")
  53. Dialog.Start()
  54. end
  55. function KilledRotweed(NPC, Spawn)
  56. SetStepComplete(Spawn, QUEST_1, 2)
  57. FaceTarget(NPC, Spawn)
  58. Dialog.New(NPC, Spawn)
  59. Dialog.AddDialog("This is good, but others like Rotweed will return someday. We will watch and defend. We, of this woodland, thank you.")
  60. --Missing VoiceOver MP3 Keys (1/17/2022)- Dorbin
  61. Dialog.AddVoiceover("voiceover/english/empress_anassa/qey_adv01_oakmyst/empressanassa004.mp3", 0, 0)
  62. Dialog.AddOption("Thank you, Empress Anassa.")
  63. Dialog.Start()
  64. end