1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- --[[
- Script Name : SpawnScripts/IsleRefuge1/aGruttoothmystic2.lua
- Script Author : LordPazuzu
- Script Date : 2022.09.06 12:09:51
- Script Purpose :
- :
- --]]
- function spawn(NPC)
- local Level = GetLevel(NPC)
- local level1 = 3
- local level2 = 4
- local difficulty1 = 6
- local hp1 = 75
- local power1 = 55
- local difficulty2 = 6
- local hp2 = 110
- local power2 = 65
- 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, 116.87, 1.55, 115.45, 4, math.random(5,10))
- MovementLoopAddLocation(NPC, 126.95, 1.51, 100.08, 4, math.random(5,10))
- MovementLoopAddLocation(NPC, 126.95, 1.51, 100.08, 4, 0)
- MovementLoopAddLocation(NPC, 123.01, 1.53, 103.13, 4,math.random(5,10))
- MovementLoopAddLocation(NPC, 123.01, 1.53, 103.13, 4, 0)
- MovementLoopAddLocation(NPC, 137.92, 1.5, 99.36, 4, math.random(5,10))
- MovementLoopAddLocation(NPC, 137.92, 1.5, 99.36, 4, 0)
- MovementLoopAddLocation(NPC, 117.2, 1.55, 93.12, 4, math.random(5,10))
- MovementLoopAddLocation(NPC, 117.2, 1.55, 93.12, 4, 0)
- MovementLoopAddLocation(NPC, 137.15, 1.48, 95.36, 4, math.random(5,10))
- MovementLoopAddLocation(NPC, 137.15, 1.48, 95.36, 4, 0)
- MovementLoopAddLocation(NPC, 124.22, 1.52, 102.77, 4, math.random(5,10))
- MovementLoopAddLocation(NPC, 124.22, 1.52, 102.77, 4, 0)
- end
|