123456789101112131415161718192021222324252627282930313233343536373839 |
- --[[
- Script Name : SpawnScripts/Oakmyst_Classic/anOakmystroyaldefender.lua
- Script Author : LordPazuzu
- Script Date : 2022.10.19 04:10:16
- Script Purpose :
- :
- --]]
- function spawn(NPC)
- SetSpawnAnimation(NPC, 13016)
- local Level = GetLevel(NPC)
- local level1 = 8
- local level2 = 9
- local difficulty1 = 8
- local hp1 = 485
- local power1 = 200
- local difficulty2 = 8
- local hp2 = 555
- local power2 = 240
- 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
- end
- function hailed(NPC, Spawn)
- FaceTarget(NPC, Spawn)
- end
- function respawn(NPC)
- spawn(NPC)
- end
|