1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- --[[
- Script Name : SpawnScripts/Caves/analbinoarachnid3.lua
- Script Author : LordPazuzu
- Script Date : 2022.10.05 10:10:15
- Script Purpose :
- :
- --]]
- function spawn(NPC)
- local Level = GetLevel(NPC)
- local level1 = 10
- local level2 = 11
- local difficulty1 = 6
- local hp1 = 370
- local power1 = 130
- local difficulty2 = 6
- local hp2 = 430
- local power2 = 160
- 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)
- spawn(NPC)
- end
- function waypoints(NPC)
- MovementLoopAddLocation(NPC, -2.04, 37.87, -36.37, 2, math.random(5,10))
- MovementLoopAddLocation(NPC, 0.84, 37.87, -34.95, 2, 0)
- MovementLoopAddLocation(NPC, 5.31, 37.87, -25.1, 2, math.random(5,10))
- MovementLoopAddLocation(NPC, 5.31, 37.87, -25.1, 2, 0)
- MovementLoopAddLocation(NPC, -4.5, 37.87, -24.27, 2, 0)
- MovementLoopAddLocation(NPC, -8.53, 37.88, -23.19, 2, math.random(5,10))
- MovementLoopAddLocation(NPC, -8.53, 37.88, -23.19, 2, 0)
- MovementLoopAddLocation(NPC, 4.08, 37.87, -35.27, 2, math.random(5,10))
- MovementLoopAddLocation(NPC, 4.08, 37.87, -35.27, 2, 0)
- MovementLoopAddLocation(NPC, -15.12, 37.87, -40.86, 2, math.random(5,10))
- MovementLoopAddLocation(NPC, -15.12, 37.87, -40.86, 2, 0)
- MovementLoopAddLocation(NPC, -7.17, 38.34, -43.27, 2, math.random(5,10))
- MovementLoopAddLocation(NPC, -7.17, 38.34, -43.27, 2, 0)
- MovementLoopAddLocation(NPC, -10.2, 38.01, -61.1, 2, math.random(5,10))
- MovementLoopAddLocation(NPC, -10.2, 38.01, -61.1, 2, 0)
- MovementLoopAddLocation(NPC, -9.82, 38.72, -50.08, 2, 0)
- MovementLoopAddLocation(NPC, 3.36, 37.87, -40.68, 2, math.random(5,10))
- MovementLoopAddLocation(NPC, 3.36, 37.87, -40.68, 2, 0)
- MovementLoopAddLocation(NPC, -2.04, 37.87, -36.37, 2, 0)
- end
|