aMudpawguardPatrol2.lua 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. --[[
  2. Script Name : SpawnScripts/Caves/aMudpawguardPatrol2.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2022.10.04 07:10:36
  5. Script Purpose :
  6. :
  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. waypoints(NPC)
  30. end
  31. function respawn(NPC)
  32. spawn(NPC)
  33. end
  34. function waypoints(NPC)
  35. MovementLoopAddLocation(NPC, 47.86, 12.08, -90.9, 2, 6)
  36. MovementLoopAddLocation(NPC, 47.86, 12.08, -90.9, 2, 0)
  37. MovementLoopAddLocation(NPC, 53.08, 12.38, -88.33, 2, 0)
  38. MovementLoopAddLocation(NPC, 54.67, 12.38, -79.65, 2, 0)
  39. MovementLoopAddLocation(NPC, 59.06, 13.21, -75.33, 2, 0)
  40. MovementLoopAddLocation(NPC, 63.13, 12.45, -74.57, 2, 6)
  41. MovementLoopAddLocation(NPC, 63.13, 12.45, -74.57, 2, 0)
  42. MovementLoopAddLocation(NPC, 65.42, 12.43, -68.8, 2, 6)
  43. MovementLoopAddLocation(NPC, 65.42, 12.43, -68.8, 2, 0)
  44. MovementLoopAddLocation(NPC, 63.55, 12.42, -71.94, 2, 0)
  45. MovementLoopAddLocation(NPC, 61.66, 12.41, -71.8, 2, 6)
  46. MovementLoopAddLocation(NPC, 61.66, 12.41, -71.8, 2, 0)
  47. MovementLoopAddLocation(NPC, 59.29, 13.18, -74.63, 2, 0)
  48. MovementLoopAddLocation(NPC, 55.7, 12.39, -78.18, 2, 0)
  49. MovementLoopAddLocation(NPC, 55.24, 12.38, -84.96, 2, 0)
  50. MovementLoopAddLocation(NPC, 47.86, 12.08, -90.9, 2, 0)
  51. end