Knight-LieutenantAlesso.lua 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. --[[
  2. Script Name : SpawnScripts/Antonica/Knight-LieutenantAlesso.lua
  3. Script Purpose : Knight-Lieutenant Alesso
  4. Script Author : geordie0511, Rewrite: premierio015
  5. Script Date : 2019.03.13
  6. Modified Date: 26.06.2021
  7. Script Notes : Auto-Generated Conversation from PacketParser Data
  8. Modified Notes: Rewrited
  9. --]]
  10. local QeynosianCivilService = 463
  11. function spawn(NPC)
  12. ProvidesQuest(NPC, QeynosianCivilService)
  13. end
  14. function respawn(NPC)
  15. spawn(NPC)
  16. end
  17. function hailed(NPC, Spawn)
  18. local count = GetQuestCompleteCount(Spawn, QeynosianCivilService)
  19. FaceTarget(NPC, Spawn)
  20. conversation = CreateConversation()
  21. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_3_1012.mp3", "", "", 0, 0, Spawn)
  22. if not HasQuest(Spawn, QeynosianCivilService) and count <= 5 then
  23. AddConversationOption(conversation, "Yes, but where?", "dlg_1_1")
  24. elseif GetQuestStep(Spawn, QeynosianCivilService) == 4 then
  25. AddConversationOption(conversation, "I've completed my service to Qeynos", "dlg1_2")
  26. end
  27. AddConversationOption(conversation, "I'll be on my way.")
  28. StartConversation(conversation, NPC, Spawn, "Hello! As you journey into the city, keep in mind that you may not enter the citadel within North Qeynos at this time. You'll find better adventuring elsewhere.")
  29. end
  30. function dlg1_2(NPC, Spawn)
  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