9
3

Knight-LieutenantAlesso.lua 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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. FaceTarget(NPC, Spawn)
  30. conversation = CreateConversation()
  31. SetStepComplete(Spawn, QeynosianCivilService, 4)
  32. PlayFlavor(NPC, "voiceover/english/sir_alesso/qey_north/sir_alesso003.mp3", "", "", 4137826818, 1228273355, Spawn)
  33. AddConversationOption(conversation, "Thanks.")
  34. StartConversation(conversation, NPC, Spawn, "You served Qeynos well and shall be rewarded.")
  35. end
  36. function dlg_1_1(NPC, Spawn)
  37. FaceTarget(NPC, Spawn)
  38. conversation = CreateConversation()
  39. PlayFlavor(NPC, "voiceover/english/sir_alesso/qey_north/sir_alesso001.mp3", "", "", 446291068, 907364683, Spawn)
  40. AddConversationOption(conversation, "Okay, but what exactly should I do?", "offer")
  41. StartConversation(conversation, NPC, Spawn, "Outside the gates of Qeynos, Antonica is riddled with vermin. Serve Qeynos by destroying these infectious beasts.")
  42. end
  43. function offer(NPC, Spawn)
  44. OfferQuest(NPC, Spawn, QeynosianCivilService)
  45. end