--[[ Script Name : SpawnScripts/Antonica/Knight-LieutenantAlesso.lua Script Purpose : Knight-Lieutenant Alesso Script Author : geordie0511, Rewrite: premierio015 Script Date : 2019.03.13 Modified Date: 26.06.2021 Script Notes : Auto-Generated Conversation from PacketParser Data Modified Notes: Rewrited --]] local QeynosianCivilService = 463 function spawn(NPC) ProvidesQuest(NPC, QeynosianCivilService) end function respawn(NPC) spawn(NPC) end function hailed(NPC, Spawn) local count = GetQuestCompleteCount(Spawn, QeynosianCivilService) FaceTarget(NPC, Spawn) conversation = CreateConversation() PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_3_1012.mp3", "", "", 0, 0, Spawn) if not HasQuest(Spawn, QeynosianCivilService) and count <= 5 then AddConversationOption(conversation, "Yes, but where?", "dlg_1_1") elseif GetQuestStep(Spawn, QeynosianCivilService) == 4 then AddConversationOption(conversation, "I've completed my service to Qeynos", "dlg1_2") end AddConversationOption(conversation, "I'll be on my way.") 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.") end function dlg1_2(NPC, Spawn) SetStepComplete(Spawn, QeynosianCivilService, 4) PlayFlavor(NPC, "voiceover/english/sir_alesso/qey_north/sir_alesso003.mp3", "", "", 4137826818, 1228273355, Spawn) AddConversationOption(conversation, "Thanks.") StartConversation(conversation, NPC, Spawn, "You served Qeynos well and shall be rewarded.") end function dlg_1_1(NPC, Spawn) FaceTarget(NPC, Spawn) conversation = CreateConversation() PlayFlavor(NPC, "voiceover/english/sir_alesso/qey_north/sir_alesso001.mp3", "", "", 446291068, 907364683, Spawn) AddConversationOption(conversation, "Okay, but what exactly should I do?", "offer") StartConversation(conversation, NPC, Spawn, "Outside the gates of Qeynos, Antonica is riddled with vermin. Serve Qeynos by destroying these infectious beasts.") end function offer(NPC, Spawn) OfferQuest(NPC, Spawn, QeynosianCivilService) end