analabastergolemPatrol.lua 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. --[[
  2. Script Name : SpawnScripts/classic_caves/analabastergolemPatrol.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2022.09.03 09:09:10
  5. Script Purpose :
  6. :
  7. --]]
  8. dofile("SpawnScripts/Generic/MonsterCallouts/BaseGolem1.lua")
  9. function spawn(NPC)
  10. local Level = GetLevel(NPC)
  11. local level1 = 7
  12. local level2 = 8
  13. local difficulty1 = 6
  14. local hp1 = 200
  15. local power1 = 90
  16. local difficulty2 = 6
  17. local hp2 = 240
  18. local power2 = 100
  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. waypoints(NPC)
  30. end
  31. function respawn(NPC)
  32. end
  33. function waypoints(NPC)
  34. MovementLoopAddLocation(NPC, 3.29, 12.05, -107.54, 1, 5)
  35. MovementLoopAddLocation(NPC, 3.49, 12.04, -103.14, 1, 0)
  36. MovementLoopAddLocation(NPC, 2.48, 12.07, -99.93, 1, 0)
  37. MovementLoopAddLocation(NPC, -0.92, 12.02, -97.99, 1, 0)
  38. MovementLoopAddLocation(NPC, -9.01, 12.05, -96.58, 1, 0)
  39. MovementLoopAddLocation(NPC, -11.41, 12.12, -94.99, 1, 0)
  40. MovementLoopAddLocation(NPC, -14.96, 12.13, -91.2, 1, 0)
  41. MovementLoopAddLocation(NPC, -16.27, 12.03, -87.24, 1, 0)
  42. MovementLoopAddLocation(NPC, -15.64, 12.07, -74.81, 1, 0)
  43. MovementLoopAddLocation(NPC, -15.32, 12.04, -70.24, 1, 0)
  44. MovementLoopAddLocation(NPC, -15.04, 12.04, -63.17, 1, 0)
  45. MovementLoopAddLocation(NPC, -15.51, 12.08, -59.69, 1, 5)
  46. MovementLoopAddLocation(NPC, -15.51, 12.08, -59.69, 1, 0)
  47. MovementLoopAddLocation(NPC, -14.95, 12.03, -64.69, 1, 0)
  48. MovementLoopAddLocation(NPC, -16.95, 12.01, -80.95, 1, 0)
  49. MovementLoopAddLocation(NPC, -16.82, 12.01, -85.35, 1, 0)
  50. MovementLoopAddLocation(NPC, -16.3, 12.03, -88.74, 1, 0)
  51. MovementLoopAddLocation(NPC, -13.66, 12.16, -92.68, 1, 0)
  52. MovementLoopAddLocation(NPC, -11.82, 12.12, -94.57, 1, 0)
  53. MovementLoopAddLocation(NPC, -8.52, 12.08, -96.07, 1, 0)
  54. MovementLoopAddLocation(NPC, -1.62, 12.06, -97.4, 1, 0)
  55. MovementLoopAddLocation(NPC, 1.53, 12.03, -99.14, 1, 0)
  56. MovementLoopAddLocation(NPC, 2.98, 12.09, -101.99, 1, 0)
  57. MovementLoopAddLocation(NPC, 3.09, 12.07, -103.79, 1, 0)
  58. MovementLoopAddLocation(NPC, 3.29, 12.05, -107.54, 1, 5)
  59. end