9
3

Knight-LieutenantAlesso.lua 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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. local QeynosianCivilService = 463
  9. function spawn(NPC)
  10. ProvidesQuest(NPC, QeynosianCivilService)
  11. end
  12. function respawn(NPC)
  13. spawn(NPC)
  14. end
  15. function hailed(NPC, Spawn)
  16. local count = GetQuestCompleteCount(Spawn, QeynosianCivilService)
  17. FaceTarget(NPC, Spawn)
  18. conversation = CreateConversation()
  19. PlayFlavor(NPC, "voiceover/english/sir_alesso/qey_north/sir_alesso000.mp3", "", "", 3475003342, 4075821182, Spawn)
  20. if not HasQuest(Spawn, QeynosianCivilService) and count <= 5 then
  21. AddConversationOption(conversation, "Yes, but where?", "dlg_1_1")
  22. elseif GetQuestStep(Spawn, QeynosianCivilService) == 4 then
  23. AddConversationOption(conversation, "I've completed my service to Qeynos", "dlg1_2")
  24. end
  25. AddConversationOption(conversation, "I'll be on my way.")
  26. StartConversation(conversation, NPC, Spawn, "You may not enter the citadel at this time. You'll find better adventuring elsewhere.")
  27. end
  28. function dlg1_2(NPC, Spawn)
  29. SetStepComplete(Spawn, QeynosianCivilService, 4)
  30. PlayFlavor(NPC, "voiceover/english/sir_alesso/qey_north/sir_alesso003.mp3", "", "", 4137826818, 1228273355, Spawn)
  31. AddConversationOption(conversation, "Thanks.")
  32. StartConversation(conversation, NPC, Spawn, "You served Qeynos well and shall be rewarded.")
  33. end
  34. function dlg_1_1(NPC, Spawn)
  35. FaceTarget(NPC, Spawn)
  36. conversation = CreateConversation()
  37. PlayFlavor(NPC, "voiceover/english/sir_alesso/qey_north/sir_alesso001.mp3", "", "", 446291068, 907364683, Spawn)
  38. AddConversationOption(conversation, "Okay, but what exactly should I do?", "offer")
  39. StartConversation(conversation, NPC, Spawn, "Outside the gates of Qeynos, Antonica is riddled with vermin. Serve Qeynos by destroying these infectious beasts.")
  40. end
  41. function offer(NPC, Spawn)
  42. OfferQuest(NPC, Spawn, QeynosianCivilService)
  43. end