EarthforgottenguardianSTATIC.lua 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. --[[
  2. Script Name : SpawnScripts/Classic_forest/EarthforgottenguardianSTATIC.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2022.10.15 08:10:54
  5. Script Purpose :
  6. :
  7. --]]
  8. dofile("SpawnScripts/Generic/MonsterCallouts/BaseGolem1.lua")
  9. function spawn(NPC)
  10. SetSpawnAnimation(NPC, 13016)
  11. local Level = GetLevel(NPC)
  12. local level1 = 9
  13. local level2 = 10
  14. local level3 = 11
  15. local difficulty1 = 7
  16. local hp1 = 370
  17. local power1 = 160
  18. local difficulty2 = 7
  19. local hp2 = 430
  20. local power2 = 200
  21. local difficulty3 =7
  22. local hp3 = 580
  23. local power3 = 240
  24. if Level == level1 then
  25. SpawnSet(NPC, "difficulty", difficulty1)
  26. SpawnSet(NPC, "hp", hp1)
  27. SpawnSet(NPC, "power", power1)
  28. elseif Level == level2
  29. then
  30. SpawnSet(NPC, "difficulty", difficulty2)
  31. SpawnSet(NPC, "hp", hp2)
  32. SpawnSet(NPC, "power", power2)
  33. elseif Level == level3
  34. then
  35. SpawnSet(NPC, "difficulty", difficulty3)
  36. SpawnSet(NPC, "hp", hp3)
  37. SpawnSet(NPC, "power", power3)
  38. end
  39. AddTimer(NPC,4000,"ResetAnimation",1)
  40. end
  41. function respawn(NPC)
  42. spawn(NPC)
  43. end