--[[ Script Name : SpawnScripts/QeynosHarbor/JayvelleNightcry.lua Script Author : Dorbin Script Date : 2022.06.10 03:06:09 Script Purpose : : --]] dofile("SpawnScripts/Generic/GenericEcologyVoiceOvers.lua") function spawn(NPC) waypoints(NPC) SetPlayerProximityFunction(NPC, 6, "InRange", "LeaveRange") end function hailed(NPC, Spawn) FaceTarget(NPC, Spawn) GenericRaceCheckHail(NPC, Spawn, faction) end function InRange(NPC,Spawn) GenericRaceCheckCallout(NPC, Spawn, faction) end function respawn(NPC) spawn(NPC) end function waypoints(NPC) MovementLoopAddLocation(NPC, 822.93, -23.36, 109.69, 2, 1) MovementLoopAddLocation(NPC, 822.93, -23.36, 109.69, 2, math.random(20,35),"EcologyEmotes") MovementLoopAddLocation(NPC, 816.26, -23.34, 115.98, 2, 0) MovementLoopAddLocation(NPC, 800.96, -23.36, 117.09, 2, 0) MovementLoopAddLocation(NPC, 792.84, -23.37, 116.66, 2, 1) MovementLoopAddLocation(NPC, 792.84, -23.37, 116.66, 2, math.random(20,35),"EcologyEmotes") MovementLoopAddLocation(NPC, 785.55, -23.34, 107.14, 2, 0) MovementLoopAddLocation(NPC, 781.15, -23.34, 98.94, 2, 0) MovementLoopAddLocation(NPC, 779.5, -23.31, 82.95, 2, 1) MovementLoopAddLocation(NPC, 779.5, -23.31, 82.95, 2, math.random(20,35),"EcologyEmotes") MovementLoopAddLocation(NPC, 777.81, -23.36, 83.7, 2, 0) MovementLoopAddLocation(NPC, 780.16, -23.31, 77.42, 2, 0) MovementLoopAddLocation(NPC, 796.54, -23.24, 80.39, 2, 0) MovementLoopAddLocation(NPC, 809.02, -23.35, 82.93, 2, 0) MovementLoopAddLocation(NPC, 819.26, -23.32, 82.85, 2, 0) MovementLoopAddLocation(NPC, 835.93, -23.48, 53.2, 2, 1) MovementLoopAddLocation(NPC, 835.93, -23.48, 53.2, 2, math.random(20,35),"EcologyEmotes") MovementLoopAddLocation(NPC, 837.13, -23.51, 52.59, 2, 0) MovementLoopAddLocation(NPC, 834.58, -23.35, 52.15, 2, 0) MovementLoopAddLocation(NPC, 836.53, -23.31, 45.92, 2, 0) MovementLoopAddLocation(NPC, 845.2, -23.13, 44.74, 2, 0) MovementLoopAddLocation(NPC, 857.81, -25.38, 43.01, 2, 0) MovementLoopAddLocation(NPC, 863.32, -25.42, 44.27, 2, 0) MovementLoopAddLocation(NPC, 882.7, -25.42, 48.18, 2, 0) MovementLoopAddLocation(NPC, 889.35, -25.44, 47.69, 2, 0) MovementLoopAddLocation(NPC, 893.33, -25.44, 45.4, 2, 0) MovementLoopAddLocation(NPC, 899.72, -25.48, 43.48, 2, 0) MovementLoopAddLocation(NPC, 912.41, -25.35, 48.74, 2, 0) MovementLoopAddLocation(NPC, 924.45, -25.49, 53.74, 2, 0) MovementLoopAddLocation(NPC, 945.23, -25.56, 62.88, 2, 1) MovementLoopAddLocation(NPC, 945.23, -25.56, 62.88, 2, math.random(20,35),"EcologyEmotes") MovementLoopAddLocation(NPC, 945.4, -25.56, 61.51, 2, 0) MovementLoopAddLocation(NPC, 924.77, -25.49, 54.33, 2, 0) MovementLoopAddLocation(NPC, 922.19, -25.49, 56.28, 2, 0) MovementLoopAddLocation(NPC, 917.71, -25.49, 60.25, 2, 1) MovementLoopAddLocation(NPC, 917.71, -25.49, 60.25, 2, math.random(20,35),"EcologyEmotes") MovementLoopAddLocation(NPC, 916.48, -25.49, 60.94, 2, 0) MovementLoopAddLocation(NPC, 919.93, -25.49, 64.16, 2, 0) MovementLoopAddLocation(NPC, 904.31, -25.29, 90.67, 2, 1) MovementLoopAddLocation(NPC, 904.31, -25.29, 90.67, 2, math.random(20,35),"EcologyEmotes") MovementLoopAddLocation(NPC, 904.12, -25.32, 86.26, 2, 0) MovementLoopAddLocation(NPC, 919.67, -25.49, 63.05, 2, 0) MovementLoopAddLocation(NPC, 922.03, -25.49, 58.72, 2, 0) MovementLoopAddLocation(NPC, 897.05, -25.49, 46.81, 2, 0) MovementLoopAddLocation(NPC, 893.57, -25.44, 45.27, 2, 0) MovementLoopAddLocation(NPC, 885.36, -25.43, 48.47, 2, 0) MovementLoopAddLocation(NPC, 872.09, -25.45, 46.93, 2, 0) MovementLoopAddLocation(NPC, 862.94, -25.37, 54.57, 2, 1) MovementLoopAddLocation(NPC, 862.94, -25.37, 54.57, 2, math.random(20,35),"EcologyEmotes") MovementLoopAddLocation(NPC, 864.34, -25.43, 44.68, 2, 0) MovementLoopAddLocation(NPC, 857.08, -25.3, 43.21, 2, 0) MovementLoopAddLocation(NPC, 836.28, -23.31, 46.09, 2, 0) MovementLoopAddLocation(NPC, 827.6, -23.38, 42.02, 2, 0) MovementLoopAddLocation(NPC, 818.4, -23.3, 31.3, 2, 1) MovementLoopAddLocation(NPC, 818.4, -23.3, 31.3, 2, math.random(20,35),"EcologyEmotes") MovementLoopAddLocation(NPC, 818.7, -23.29, 35.15, 2, 0) MovementLoopAddLocation(NPC, 815.39, -23.26, 38.6, 2, 0) MovementLoopAddLocation(NPC, 811.13, -23.2, 38.38, 2, 0) MovementLoopAddLocation(NPC, 804.87, -23.29, 36.05, 2, 0) MovementLoopAddLocation(NPC, 792.95, -23.32, 54.54, 2, 0) MovementLoopAddLocation(NPC, 784.56, -23.24, 67.95, 2, 0) MovementLoopAddLocation(NPC, 798.01, -23.2, 74.4, 2, 1) MovementLoopAddLocation(NPC, 798.01, -23.2, 74.4, 2, math.random(20,35),"EcologyEmotes") MovementLoopAddLocation(NPC, 808.63, -23.32, 83.81, 2, 0) MovementLoopAddLocation(NPC, 809.5, -23.34, 85.04, 2, 1) MovementLoopAddLocation(NPC, 809.5, -23.34, 85.04, 2, math.random(20,35),"EcologyEmotes") MovementLoopAddLocation(NPC, 812.04, -23.34, 90.94, 2, 0) MovementLoopAddLocation(NPC, 811.31, -23.35, 101.37, 2, 0) MovementLoopAddLocation(NPC, 809.94, -23.33, 109.28, 2, 0) MovementLoopAddLocation(NPC, 807.73, -23.32, 117.6, 2, 0) MovementLoopAddLocation(NPC, 818.83, -23.36, 124.31, 2, 0) MovementLoopAddLocation(NPC, 819.48, -23.37, 122.99, 2, 1) MovementLoopAddLocation(NPC, 819.48, -23.37, 122.99, 2, math.random(20,35),"EcologyEmotes") end