--[[ Script Name : SpawnScripts/Nettleville/AnevayaStarchaser.lua Script Author : Dorbin Script Date : 2022.06.22 05:06:26 Script Purpose : Actually for Avilon Blueheart after name change : --]] dofile("SpawnScripts/Generic/GenericEcologyVoiceOvers.lua") function spawn(NPC) waypoints(NPC) SetPlayerProximityFunction(NPC, 5, "InRange", "LeaveRange") end function hailed(NPC, Spawn) FaceTarget(NPC, Spawn) GenericEcologyHail(NPC, Spawn, faction) end function InRange(NPC,Spawn) GenericEcologyCallout(NPC, Spawn, faction) end function waypoints(NPC) MovementLoopAddLocation(NPC, 676.57, -20.36, 317.02, 2, 5) MovementLoopAddLocation(NPC, 676.57, -20.36, 317.02, 2, 52,"EcologyEmotes") MovementLoopAddLocation(NPC, 676.56, -20.37, 318.1, 2, 0) MovementLoopAddLocation(NPC, 674.78, -20.44, 320.6, 2, 0) MovementLoopAddLocation(NPC, 675.25, -20.54, 323.9, 2, 0) MovementLoopAddLocation(NPC, 678.53, -20.42, 332.51, 2, 0) MovementLoopAddLocation(NPC, 678.39, -20.35, 339.77, 2, 0) MovementLoopAddLocation(NPC, 676.19, -24.54, 350.38, 2, 0) MovementLoopAddLocation(NPC, 675.29, -24.71, 354.7, 2, 0) MovementLoopAddLocation(NPC, 669.2, -24.71, 361.29, 2, 0) MovementLoopAddLocation(NPC, 665.52, -24.59, 364.12, 2, 0) MovementLoopAddLocation(NPC, 665.73, -24.57, 364.79, 2, 1) MovementLoopAddLocation(NPC, 665.73, -24.57, 364.79, 2, 45,"Drink") MovementLoopAddLocation(NPC, 665.73, -24.57, 364.79, 2, 45,"Drink") MovementLoopAddLocation(NPC, 665.95, -24.55, 365.46, 2, 0) MovementLoopAddLocation(NPC, 665.04, -24.6, 363.9, 2, 0) MovementLoopAddLocation(NPC, 665.59, -24.82, 357.02, 2, 0) MovementLoopAddLocation(NPC, 670.77, -24.05, 344.67, 2, 0) MovementLoopAddLocation(NPC, 670.8, -23.14, 341.46, 2, 0) MovementLoopAddLocation(NPC, 661.23, -22.48, 335.84, 2, 0) MovementLoopAddLocation(NPC, 649.30, -22.27, 325.81, 2, 1) MovementLoopAddLocation(NPC, 649.30, -22.27, 325.81, 2, 55,"EcologyEmotes") MovementLoopAddLocation(NPC, 650.31, -22.29, 328.25, 2, 0) MovementLoopAddLocation(NPC, 654.48, -22.3, 329.73, 2, 0) MovementLoopAddLocation(NPC, 664.35, -20.44, 326.54, 2, 0) MovementLoopAddLocation(NPC, 667.64, -20.43, 318.17, 2, 0) MovementLoopAddLocation(NPC, 670.65, -20.38, 310.43, 2, 5) MovementLoopAddLocation(NPC, 670.65, -20.38, 310.43, 2, 55,"EcologyEmotes") MovementLoopAddLocation(NPC, 671.90, -20.41, 310.66, 2, 0) MovementLoopAddLocation(NPC, 671.21, -20.42, 313.6, 2, 0) MovementLoopAddLocation(NPC, 671.76, -20.42, 317.55, 2, 0) MovementLoopAddLocation(NPC, 674.93, -20.42, 315.75, 2, 0) end function Drink(NPC) PlayFlavor(NPC,"","","drinking_idle",0,0) AddTimer(NPC,8000, "Drink2") end function Drink2(NPC) choice = math.random(1,4) if choice == 1 then PlayFlavor(NPC,"","","yawn",0,0) elseif choice == 2 then PlayFlavor(NPC,"","","drinking_idle",0,0) elseif choice == 3 then PlayFlavor(NPC,"","","hungry",0,0) else PlayFlavor(NPC,"","","happy",0,0) end AddTimer(NPC,6000, "Drink3") end function Drink3(NPC) PlayFlavor(NPC,"","","drinking_idle",0,0) end