--[[ Script Name : SpawnScripts/Antonica/AroofWolfchaser.lua Script Purpose : Aroof Wolfchaser Script Author : geordie0511 Script Date : 2019.03.18 Script Notes : Auto-Generated Conversation from PacketParser Data --]] local Killing = 466 function spawn(NPC) SetPlayerProximityFunction(NPC, 10, "InRange", "LeaveRange") end function respawn(NPC) spawn(NPC) end function InRange(NPC, Spawn) local choice = math.random(1,4) if choice == 1 then PlayFlavor(NPC, "", "What? Where?", "confused", 1689589577, 4560189, Spawn) elseif choice == 2 then PlayFlavor(NPC, "", "Hic...", "", 1689589577, 4560189, Spawn) elseif choice == 3 then PlayFlavor(NPC, "", "Urrp, ello there, why are there two of you...", "squeal", 1689589577, 4560189, Spawn) elseif choice == 4 then PlayFlavor(NPC, "", "Hail to you too!", "wave", 1689589577, 4560189, Spawn) else end end function LeaveRange(NPC, Spawn) end function hailed(NPC, Spawn) FaceTarget(NPC, Spawn) conversation = CreateConversation() if GetQuestStep(Spawn, Killing) == 1 then PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_2_1002.mp3", "", "", 0, 0, Spawn) AddConversationOption(conversation, "Have some soup.", "dlg_2_1") AddConversationOption(conversation, "Eww...") StartConversation(conversation, NPC, Spawn, "Hail!") else AddConversationOption(conversation, "Eww...") StartConversation(conversation, NPC, Spawn, "Hail!") end end function dlg_2_1(NPC, Spawn) FaceTarget(NPC, Spawn) conversation = CreateConversation() PlayFlavor(NPC, "", "", "", 0, 0, Spawn) AddConversationOption(conversation, "Sober up.", "dlg_2_2") StartConversation(conversation, NPC, Spawn, "Thanks!") SetStepComplete(Spawn, Killing, 1) end function dlg_2_2(NPC, Spawn) FaceTarget(NPC, Spawn) conversation = CreateConversation() PlayFlavor(NPC, "", "", "", 0, 0, Spawn) AddConversationOption(conversation, "Sober up.", "dlg_2_3") StartConversation(conversation, NPC, Spawn, "What?!") end function dlg_2_3(NPC, Spawn) FaceTarget(NPC, Spawn) conversation = CreateConversation() PlayFlavor(NPC, "", "", "", 0, 0, Spawn) AddConversationOption(conversation, "Okay...", "dlg_2_4") StartConversation(conversation, NPC, Spawn, "Yeah!") SetStepComplete(Spawn, Achoo, 2) end