9
3

SquireMoorford.lua 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. --[[
  2. Script Name : SpawnScripts/QeynosHarbor/SquireMoorford.lua
  3. Script Purpose : Squire Moorford <Qeynos Guard>
  4. Script Author : Dorbin
  5. Script Date : 2022.12.10
  6. Script Notes : Quest script is fabricated, but based loosely from japanese translations
  7. --]]
  8. require "SpawnScripts/Generic/DialogModule"
  9. local Quest2 = 5788
  10. function spawn(NPC)
  11. end
  12. function respawn(NPC)
  13. spawn(NPC)
  14. end
  15. function hailed(NPC, Spawn)
  16. Dialog1(NPC, Spawn)
  17. end
  18. function Dialog1(NPC, Spawn)
  19. FaceTarget(NPC, Spawn)
  20. Dialog.New(NPC, Spawn)
  21. Dialog.AddDialog("Hello! How can I help you? It's my proud duty to help keep this harbor safe!")
  22. Dialog.AddVoiceover("voiceover/english/squire_moorford/qey_harbor/privatemoorford000.mp3", 3116776153, 2836450585)
  23. if HasQuest(Spawn,Quest2) and GetQuestStep(Spawn,Quest2)>=1 and GetQuestStep(Spawn,Quest2)<=3 and not QuestStepIsComplete(Spawn,Quest2,3) then
  24. Dialog.AddOption("What drives you to be a guard?","Dialog2")
  25. end
  26. Dialog.AddOption("Keep up the good work!")
  27. Dialog.Start()
  28. end
  29. function Dialog2(NPC,Spawn)
  30. FaceTarget(NPC, Spawn)
  31. Dialog.New(NPC, Spawn)
  32. Dialog.AddDialog("Oh... I suppose I haven't thought about it in a while. I guess the idea that I am a protector from the troubles of the world, and all its chaos, gives me drive to keep our citizens safe. The bulwark against tyrany and all that. Sounds almost romantic, doesn't it?")
  33. Dialog.AddVoiceover("voiceover/english/squire_moorford/qey_harbor/privatemoorford001.mp3", 3116776153, 2836450585) --WE DON'T HAVE THE KEYS 2022
  34. PlayFlavor(NPC, "", "", "confused", 0, 0, Spawn)
  35. Dialog.AddOption("Are you ever afraid? ","Dialog3")
  36. Dialog.Start()
  37. end
  38. function Dialog3(NPC,Spawn)
  39. FaceTarget(NPC, Spawn)
  40. Dialog.New(NPC, Spawn)
  41. Dialog.AddDialog("Absolutely! I would be a fool to not experience fear occasionally. It is how I channel that fear which is the real test. That is why I became a guard, to give Qeynos and her citizens peace of mind to live their lives.")
  42. Dialog.AddVoiceover("voiceover/english/squire_moorford/qey_harbor/privatemoorford002.mp3", 3116776153, 2836450585)--WE DON'T HAVE THE KEYS 2022
  43. PlayFlavor(NPC, "", "", "agree", 0, 0, Spawn)
  44. Dialog.AddOption("Well don't lower your guard, and thank you for your protection!","Dialog4")
  45. Dialog.Start()
  46. end
  47. function Dialog4(NPC,Spawn)
  48. FaceTarget(NPC, Spawn)
  49. PlayFlavor(NPC, "", "", "salute", 0, 0)
  50. SetStepComplete(Spawn,Quest2,3)
  51. end