aMudpawlookout.lua 933 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. --[[
  2. Script Name : SpawnScripts/Caves/aMudpawlookout.lua
  3. Script Purpose : a Mudpaw lookout
  4. Script Author : LordPazuzu
  5. Script Date : 10/4/2022
  6. Script Notes :
  7. --]]
  8. dofile("SpawnScripts/Generic/MonsterCallouts/BaseGnoll1.lua")
  9. require "SpawnScripts/Generic/CombatModule"
  10. function spawn(NPC, Spawn)
  11. combatModule(NPC, Spawn)
  12. local Level = GetLevel(NPC)
  13. local level1 = 8
  14. local level2 = 9
  15. local difficulty1 = 6
  16. local hp1 = 240
  17. local power1 = 100
  18. local difficulty2 = 6
  19. local hp2 = 290
  20. local power2 = 110
  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 respawn(NPC, Spawn)
  33. spawn(NPC)
  34. end