EmpressAnassa.lua 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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. 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. conversation = CreateConversation()
  21. PlayFlavor(NPC, "voiceover/english/empress_anassa/qey_adv01_oakmyst/empressanassa000.mp3", "", "", 122104258, 2418821305, Spawn)
  22. 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
  23. AddConversationOption(conversation, "Your judge has sent me.", "dlg_5_1")
  24. elseif HasQuest(Spawn, QUEST_1) and GetQuestStep(Spawn, QUEST_1) == 2 then
  25. AddConversationOption(conversation, "I've killed Rotweed.", "KilledRotweed")
  26. end
  27. AddConversationOption(conversation, "I seek nothing. Farewell.")
  28. StartConversation(conversation, NPC, Spawn, "Greetings and welcome to our hollowed grove. What is it you seek?")
  29. end
  30. function dlg_5_1(NPC, Spawn)
  31. FaceTarget(NPC, Spawn)
  32. conversation = CreateConversation()
  33. PlayFlavor(NPC, "voiceover/english/empress_anassa/qey_adv01_oakmyst/empressanassa001.mp3", "", "", 2413694223, 3249886885, Spawn)
  34. AddConversationOption(conversation, "I will challenge this evil. ", "OfferQuest1")
  35. AddConversationOption(conversation, "I cannot help you now. Farewell.")
  36. StartConversation(conversation, NPC, Spawn, "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. end
  38. function OfferQuest1(NPC, Spawn)
  39. FaceTarget(NPC, Spawn)
  40. OfferQuest(NPC, Spawn, QUEST_1)
  41. end
  42. function WhatIsRotweed(NPC, Spawn)
  43. FaceTarget(NPC, Spawn)
  44. conversation = CreateConversation()
  45. PlayFlavor(NPC, "voiceover/english/empress_anassa/qey_adv01_oakmyst/empressanassa003.mp3", "", "", 1907995091, 655055942, Spawn)
  46. AddConversationOption(conversation, "I will battle this Rotweed and return victorious. ", "dlg_5_4")
  47. StartConversation(conversation, NPC, Spawn, "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.")
  48. end
  49. function KilledRotweed(NPC, Spawn)
  50. SetStepComplete(Spawn, QUEST_1, 2)
  51. FaceTarget(NPC, Spawn)
  52. conversation = CreateConversation()
  53. --Missing VoiceOver MP3 Keys (1/17/2022)- Dorbin
  54. PlayFlavor(NPC, "voiceover/english/empress_anassa/qey_adv01_oakmyst/empressanassa004.mp3", "", "", 0, 0, Spawn)
  55. AddConversationOption(conversation, "Thank you, Empress Anassa.")
  56. StartConversation(conversation, NPC, Spawn, "This is good, but others like Rotweed will return someday. We will watch and defend. We, of this woodland, thank you.")
  57. end