astalwartSabertooth.lua 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. --[[
  2. Script Name : SpawnScripts/Blackburrow/astalwartSabertooth.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.07.11 06:07:41
  5. Script Purpose :
  6. :
  7. --]]
  8. function spawn(NPC)
  9. local Level = GetLevel(NPC)
  10. local level1 = 15
  11. local level2 = 16
  12. local difficulty1 = 7
  13. local hp1 = 1275
  14. local power1 = 400
  15. local difficulty2 = 7
  16. local hp2 = 1500
  17. local power2 = 425
  18. if Level == level1 then
  19. SpawnSet(NPC, "difficulty", difficulty1)
  20. SpawnSet(NPC, "hp", hp1)
  21. SpawnSet(NPC, "power", power1)
  22. elseif Level == level2
  23. then
  24. SpawnSet(NPC, "difficulty", difficulty2)
  25. SpawnSet(NPC, "hp", hp2)
  26. SpawnSet(NPC, "power", power2)
  27. end
  28. VoiceBox(NPC)
  29. end
  30. function VoiceBox(NPC)
  31. local choice = MakeRandomInt(1,3)
  32. if choice == 1 then
  33. dofile("SpawnScripts/Generic/MonsterCallouts/BaseGnoll1.lua")
  34. elseif choice == 2 then
  35. dofile("SpawnScripts/Generic/MonsterCallouts/SabertoothGnoll1.lua")
  36. elseif choice == 3 then
  37. dofile("SpawnScripts/Generic/MonsterCallouts/SabertoothGnoll2.lua")
  38. end
  39. end
  40. function hailed(NPC, Spawn)
  41. FaceTarget(NPC, Spawn)
  42. end
  43. function respawn(NPC)
  44. spawn(NPC)
  45. end