9
3

JudgeEunomia.lua 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. --[[
  2. Script Name : SpawnScripts/Oakmyst/JudgeEunomia.lua
  3. Script Purpose : Judge Eunomia
  4. Script Author : scatman
  5. Script Date : 2009.05.09
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. require "SpawnScripts/Generic/DialogModule"
  9. local QUEST_FROM_NEOLA = 228
  10. local QUEST_1 = 229
  11. function spawn(NPC)
  12. ProvidesQuest(NPC, QUEST_1)
  13. end
  14. function respawn(NPC)
  15. spawn(NPC)
  16. end
  17. function hailed(NPC, Spawn)
  18. if HasCompletedQuest(Spawn,QUEST_1)then
  19. Dialog2(NPC, Spawn)
  20. else
  21. FaceTarget(NPC, Spawn)
  22. Dialog.New(NPC, Spawn)
  23. Dialog.AddDialog("Justice is our only recourse when the forests are torn asunder.")
  24. Dialog.AddVoiceover("voiceover/english/judge_eunomia/qey_adv01_oakmyst/judgeeunomia000.mp3", 3368710342, 876052157)
  25. if HasCompletedQuest(Spawn, QUEST_FROM_NEOLA) and not HasQuest(Spawn, QUEST_1) and not HasCompletedQuest(Spawn, QUEST_1) then
  26. Dialog.AddOption("I have served Scholar Neola. ", "Dialog1")
  27. elseif HasQuest(Spawn, QUEST_1) and GetQuestStep(Spawn, QUEST_1) == 2 then
  28. Dialog.AddOption("I have killed the imposters.", "Dialog2")
  29. end
  30. Dialog.AddOption("Bah! What does a plant know of justice? Farewell. ")
  31. Dialog.Start()
  32. end
  33. end
  34. function Dialog1(NPC, Spawn)
  35. FaceTarget(NPC, Spawn)
  36. Dialog.New(NPC, Spawn)
  37. Dialog.AddDialog("You are the one who aided our sapling. You can help me execute my judgement. Twisted, disloyal imposters live in the woodland. They hide amongst the noble, but they don't fool me or my sisters.")
  38. Dialog.AddVoiceover("voiceover/english/judge_eunomia/qey_adv01_oakmyst/judgeeunomia001.mp3", 419193252, 168213700)
  39. Dialog.AddOption("I can hunt down these imposters.", "OfferQuest1")
  40. Dialog.AddOption("I am no executioner. 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 Dialog2(NPC, Spawn)
  48. if HasCompletedQuest(Spawn,QUEST_1)then
  49. SetStepComplete(Spawn, QUEST_1, 2)
  50. end
  51. FaceTarget(NPC, Spawn)
  52. Dialog.New(NPC, Spawn)
  53. Dialog.AddDialog("You proved your devotion to the dryads of this forest. The Empress has taken note of your good deeds. She awaits you.")
  54. Dialog.AddVoiceover("voiceover/english/judge_eunomia/qey_adv01_oakmyst/judgeeunomia003.mp3", 1922975222, 1148613241)
  55. Dialog.AddOption("It was a pleasure to defend the Oakmyst.")
  56. Dialog.Start()
  57. end