aSabertoothoracle.lua 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. --[[
  2. Script Name : SpawnScripts/Blackburrow/aSabertoothoracle.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.07.11 07:07:38
  5. Script Purpose :
  6. :
  7. --]]
  8. function spawn(NPC)
  9. local Level = GetLevel(NPC)
  10. local level1 = 16
  11. local level2 = 17
  12. local difficulty1 = 7
  13. local hp1 = 1450
  14. local power1 = 475
  15. local difficulty2 = 7
  16. local hp2 = 1650
  17. local power2 = 500
  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,2)
  32. if choice == 1 then
  33. dofile("SpawnScripts/Generic/MonsterCallouts/BaseGnoll1.lua")
  34. elseif choice == 2 then
  35. dofile("SpawnScripts/Generic/MonsterCallouts/SabertoothGnoll3.lua")
  36. end
  37. end
  38. function hailed(NPC, Spawn)
  39. FaceTarget(NPC, Spawn)
  40. end
  41. function respawn(NPC)
  42. spawn(NPC)
  43. end