aMudpawlookout.lua 853 B

1234567891011121314151617181920212223242526272829303132333435363738
  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. function spawn(NPC)
  10. local Level = GetLevel(NPC)
  11. local level1 = 8
  12. local level2 = 9
  13. local difficulty1 = 6
  14. local hp1 = 240
  15. local power1 = 100
  16. local difficulty2 = 6
  17. local hp2 = 290
  18. local power2 = 110
  19. if Level == level1 then
  20. SpawnSet(NPC, "difficulty", difficulty1)
  21. SpawnSet(NPC, "hp", hp1)
  22. SpawnSet(NPC, "power", power1)
  23. elseif Level == level2
  24. then
  25. SpawnSet(NPC, "difficulty", difficulty2)
  26. SpawnSet(NPC, "hp", hp2)
  27. SpawnSet(NPC, "power", power2)
  28. end
  29. end
  30. function respawn(NPC, Spawn)
  31. spawn(NPC)
  32. end