12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- --[[
- Script Name : SpawnScripts/Classic_forest/astoneshellsnapper7.lua
- Script Author : LordPazuzu
- Script Date : 2022.10.12 04:10:06
- Script Purpose :
- :
- --]]
- function spawn(NPC)
- local Level = GetLevel(NPC)
- local level1 = 5
- local level2 = 6
- local level3 = 7
- local difficulty1 = 6
- local hp1 = 130
- local power1 = 65
- local difficulty2 = 6
- local hp2 = 150
- local power2 = 80
- local difficulty3 =6
- local hp3 = 200
- local power3 = 90
- 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)
- elseif Level == level3
- then
- SpawnSet(NPC, "difficulty", difficulty3)
- SpawnSet(NPC, "hp", hp3)
- SpawnSet(NPC, "power", power3)
- end
- waypoints(NPC)
- end
- function hailed(NPC, Spawn)
- FaceTarget(NPC, Spawn)
- end
- function respawn(NPC)
- spawn(NPC)
- end
- function waypoints(NPC)
- MovementLoopAddLocation(NPC, 939.95, -25.64, -626.15, 1, 0)
- MovementLoopAddLocation(NPC, 944.12, -24.73, -630.87, 1, math.random(5,10))
- MovementLoopAddLocation(NPC, 944.12, -24.73, -630.87, 1, 0)
- MovementLoopAddLocation(NPC, 941.33, -26.26, -623.96, 1, math.random(5,10))
- MovementLoopAddLocation(NPC, 941.33, -26.26, -623.96, 1, 0)
- MovementLoopAddLocation(NPC, 945.4, -26.74, -627.3, 1, 0)
- MovementLoopAddLocation(NPC, 947.08, -25.57, -631.86, 1, 0)
- MovementLoopAddLocation(NPC, 950.99, -26.31, -633.69, 1, math.random(5,10))
- MovementLoopAddLocation(NPC, 956.45, -26.65, -633.56, 1, 0)
- MovementLoopAddLocation(NPC, 959.33, -25.15, -635.85, 1, math.random(5,10))
- MovementLoopAddLocation(NPC, 959.33, -25.15, -635.85, 1, 0)
- MovementLoopAddLocation(NPC, 954.76, -24.52, -635.31, 1, 0)
- MovementLoopAddLocation(NPC, 950.52, -26.37, -633.44, 1, 0)
- MovementLoopAddLocation(NPC, 947.73, -25.44, -632.84, 1, math.random(5,10))
- MovementLoopAddLocation(NPC, 947.73, -25.44, -632.84, 1, 0)
- MovementLoopAddLocation(NPC, 945.87, -26.38, -628.8, 1, 0)
- MovementLoopAddLocation(NPC, 942.74, -26.6, -624.85, 1, 0)
- MovementLoopAddLocation(NPC, 939.95, -25.64, -626.15, 1, math.random(5,10))
- end
|