9
3

aGiantslayerbruteBARBARIAN.lua 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. --[[
  2. Script Name : SpawnScripts/TheSprawl_Classic/aGiantslayerbruteBARBARIAN.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2023.11.12 07:11:16
  5. Script Purpose :
  6. :
  7. --]]
  8. require "SpawnScripts/Generic/CombatModule"
  9. function spawn(NPC, Spawn)
  10. combatModule(NPC, Spawn)
  11. Appearance(NPC)
  12. local Level = GetLevel(NPC)
  13. local level1 = 4
  14. local level2 = 5
  15. local difficulty1 = 6
  16. local hp1 = 110
  17. local power1 = 55
  18. local difficulty2 = 6
  19. local hp2 = 130
  20. local power2 = 65
  21. if Level == level1 then
  22. SpawnSet(NPC, "difficulty", difficulty1)
  23. SpawnSet(NPC, "hp", hp1)
  24. SpawnSet(NPC, "power", power1)
  25. elseif Level == level2
  26. then
  27. SpawnSet(NPC, "difficulty", difficulty2)
  28. SpawnSet(NPC, "hp", hp2)
  29. SpawnSet(NPC, "power", power2)
  30. end
  31. end
  32. function hailed(NPC, Spawn)
  33. FaceTarget(NPC, Spawn)
  34. end
  35. function respawn(NPC)
  36. spawn(NPC)
  37. end
  38. function Appearance(NPC)
  39. if GetGender(NPC)==2 then
  40. SpawnSet(NPC,"model_type",111)
  41. else
  42. SpawnSet(NPC,"model_type",112)
  43. end
  44. end