123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- --[[
- Script Name : SpawnScripts/TheSprawl_Classic/aGiantslayerbruteBARBARIAN.lua
- Script Author : LordPazuzu
- Script Date : 2023.11.12 07:11:16
- Script Purpose :
- :
- --]]
- require "SpawnScripts/Generic/CombatModule"
- function spawn(NPC, Spawn)
- combatModule(NPC, Spawn)
- Appearance(NPC)
- local Level = GetLevel(NPC)
- local level1 = 4
- local level2 = 5
- local difficulty1 = 6
- local hp1 = 110
- local power1 = 55
- local difficulty2 = 6
- local hp2 = 130
- 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
- end
- function hailed(NPC, Spawn)
- FaceTarget(NPC, Spawn)
- end
- function respawn(NPC)
- spawn(NPC)
- end
- function Appearance(NPC)
- if GetGender(NPC)==2 then
- SpawnSet(NPC,"model_type",111)
- else
- SpawnSet(NPC,"model_type",112)
- end
- end
|