JudgeEunomia.lua 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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. local QUEST_FROM_NEOLA = 211
  9. local QUEST_1 = 212
  10. function spawn(NPC)
  11. ProvidesQuest(NPC, QUEST_1)
  12. end
  13. function respawn(NPC)
  14. spawn(NPC)
  15. end
  16. function hailed(NPC, Spawn)
  17. FaceTarget(NPC, Spawn)
  18. conversation = CreateConversation()
  19. PlayFlavor(NPC, "voiceover/english/judge_eunomia/qey_adv01_oakmyst/judgeeunomia000.mp3", "", "", 3368710342, 876052157, Spawn)
  20. if HasCompletedQuest(Spawn, QUEST_FROM_NEOLA) and not HasQuest(Spawn, QUEST_1) and not HasCompletedQuest(Spawn, QUEST_1) then
  21. AddConversationOption(conversation, "I have served Scholar Neola.", "dlg_1_1")
  22. elseif HasQuest(Spawn, QUEST_1) and GetQuestStep(Spawn, QUEST_1) == 2 then
  23. AddConversationOption(conversation, "I have killed the imposters.", "dlg_3_1")
  24. end
  25. AddConversationOption(conversation, "Bah! What does a plant know of justice? Farewell. ")
  26. StartConversation(conversation, NPC, Spawn, "Justice is our only recourse when the forests are torn asunder.")
  27. end
  28. function dlg_1_1(NPC, Spawn)
  29. FaceTarget(NPC, Spawn)
  30. conversation = CreateConversation()
  31. PlayFlavor(NPC, "voiceover/english/judge_eunomia/qey_adv01_oakmyst/judgeeunomia001.mp3", "", "", 419193252, 168213700, Spawn)
  32. AddConversationOption(conversation, "I can hunt down these imposters.", "OfferQuest1")
  33. AddConversationOption(conversation, "I am no executioner. Farewell. ")
  34. StartConversation(conversation, NPC, Spawn, "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.")
  35. end
  36. function OfferQuest1(NPC, Spawn)
  37. FaceTarget(NPC, Spawn)
  38. OfferQuest(NPC, Spawn, QUEST_1)
  39. end
  40. function dlg_3_1(NPC, Spawn)
  41. SetStepComplete(Spawn, QUEST_1, 2)
  42. FaceTarget(NPC, Spawn)
  43. conversation = CreateConversation()
  44. PlayFlavor(NPC, "voiceover/english/judge_eunomia/qey_adv01_oakmyst/judgeeunomia003.mp3", "", "", 1922975222, 1148613241, Spawn)
  45. AddConversationOption(conversation, "It was a pleasure to defend the Oakmyst.")
  46. StartConversation(conversation, NPC, Spawn, "You proved your devotion to the dryads of this forest. The Empress has taken note of your good deeds. She awaits you.")
  47. end