12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- --[[
- Script Name : crypt_substance17.lua
- Script Purpose : Waypoint Path for crypt_substance17.lua
- Script Author : Devn00b
- Script Date : 05/13/2020 04:09:51 PM
- Script Notes : Locations collected from Live
- --]]
- function spawn(NPC)
- local Level = GetLevel(NPC)
- local level1 = 6
- local level2 = 5
- local difficulty1 = 6
- local hp1 = 150
- local power1 = 150
- local difficulty2 = 6
- local hp2 = 130
- local power2 = 130
- if Level == level1 then
- SpawnSet(NPC, "difficulty", difficulty1)
- SpawnSet(NPC, "hp", hp1)
- SpawnSet(NPC, "power", power1)
- elseif Level == level2
- then
- SpawnSet(NPC, "difficulty", difficulty2)
- SpawnSet(NPC, "hp", hp2)
- SpawnSet(NPC, "power", power2)
- end
- waypoints(NPC)
- end
- function hailed(NPC, Spawn)
- FaceTarget(NPC, Spawn)
- end
- function respawn(NPC)
- waypoints(NPC)
- end
- function waypoints(NPC)
- MovementLoopAddLocation(NPC, -156.74, -0.08, -127.03, 2, math.random(0,10))
- MovementLoopAddLocation(NPC, -157.23, -0.15, -111.53, 2, math.random(0,10))
- MovementLoopAddLocation(NPC, -156.26, 0.49, -107.53, 2, math.random(0,10))
- MovementLoopAddLocation(NPC, -149.68, -0.1, -92.05, 2, math.random(0,10))
- MovementLoopAddLocation(NPC, -143.19, -0.08, -78.86, 2, math.random(0,10))
- MovementLoopAddLocation(NPC, -146.02, -0.04, -85.06, 2, math.random(0,10))
- MovementLoopAddLocation(NPC, -162.28, -0.24, -76.88, 2, math.random(0,10))
- MovementLoopAddLocation(NPC, -168.37, -0.29, -74.12, 2, math.random(0,10))
- MovementLoopAddLocation(NPC, -162.28, -0.24, -76.88, 2, math.random(0,10))
- MovementLoopAddLocation(NPC, -146.02, -0.04, -85.06, 2, math.random(0,10))
- MovementLoopAddLocation(NPC, -143.19, -0.08, -78.86, 2, math.random(0,10))
- MovementLoopAddLocation(NPC, -149.68, -0.1, -92.05, 2, math.random(0,10))
- MovementLoopAddLocation(NPC, -156.26, 0.49, -107.53, 2, math.random(0,10))
- MovementLoopAddLocation(NPC, -157.23, -0.15, -111.53, 2, math.random(0,10))
- MovementLoopAddLocation(NPC, -156.74, -0.08, -127.03, 2, math.random(0,10))
- end
|