9
3

Knight-LieutenantAlesso.lua 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. --[[
  2. Script Name : SpawnScripts/NorthQeynos/Knight-LieutenantAlesso.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.05.13 05:05:50
  5. Script Purpose :
  6. :
  7. --]]
  8. require "SpawnScripts/Generic/DialogModule"
  9. local QeynosianCivilService = 463
  10. function spawn(NPC)
  11. ProvidesQuest(NPC, QeynosianCivilService)
  12. end
  13. function respawn(NPC)
  14. spawn(NPC)
  15. end
  16. function hailed(NPC, Spawn)
  17. local count = GetQuestCompleteCount(Spawn, QeynosianCivilService)
  18. if HasQuest(Spawn,5766) and GetQuestStepProgress(Spawn,5766,7) ==0 then --WELCOME TO QEYNOS,CITIZEN
  19. SetStepComplete(Spawn,5766,7)
  20. end
  21. FaceTarget(NPC, Spawn)
  22. Dialog.New(NPC, Spawn)
  23. Dialog.AddDialog("You may not enter the citadel at this time. You'll find better adventuring elsewhere.")
  24. Dialog.AddVoiceover("voiceover/english/sir_alesso/qey_north/sir_alesso000.mp3",3475003342, 4075821182)
  25. if not HasQuest(Spawn, QeynosianCivilService) and count <= 5 then
  26. Dialog.AddOption("Yes, but where?", "dlg_1_1")
  27. elseif GetQuestStep(Spawn, QeynosianCivilService) == 4 then
  28. Dialog.AddOption("I've completed my service to Qeynos", "dlg1_2")
  29. end
  30. Dialog.AddOption("I'll be on my way.")
  31. Dialog.Start()
  32. end
  33. function dlg1_2(NPC, Spawn)
  34. FaceTarget(NPC, Spawn)
  35. SetStepComplete(Spawn, QeynosianCivilService, 4)
  36. Dialog.New(NPC, Spawn)
  37. Dialog.AddDialog("You served Qeynos well and shall be rewarded.")
  38. Dialog.AddVoiceover("voiceover/english/sir_alesso/qey_north/sir_alesso003.mp3", 4137826818, 1228273355)
  39. Dialog.AddOption("Thanks.")
  40. Dialog.Start()
  41. end
  42. function dlg_1_1(NPC, Spawn)
  43. FaceTarget(NPC, Spawn)
  44. Dialog.New(NPC, Spawn)
  45. Dialog.AddDialog("Outside the gates of Qeynos, Antonica is riddled with vermin. Serve Qeynos by destroying these infectious beasts.")
  46. Dialog.AddVoiceover("voiceover/english/sir_alesso/qey_north/sir_alesso001.mp3", 446291068, 907364683)
  47. Dialog.AddOption("Ok, but what exactly should I do?", "offer")
  48. Dialog.Start()
  49. end
  50. function offer(NPC, Spawn)
  51. OfferQuest(NPC, Spawn, QeynosianCivilService)
  52. end