aMudpawlookoutRoam3.lua 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. --[[
  2. Script Name : SpawnScripts/Caves/aMudpawlookoutRoam3.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2022.10.04 06:10:07
  5. Script Purpose :
  6. :
  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. waypoints(NPC)
  32. end
  33. function respawn(NPC)
  34. spawn(NPC)
  35. end
  36. function waypoints(NPC)
  37. MovementLoopAddLocation(NPC, 15.17, 12.38, -72.08, 2, math.random(5,10))
  38. MovementLoopAddLocation(NPC, 12.28, 12.38, -64.99, 2, math.random(5,10))
  39. MovementLoopAddLocation(NPC, 12.28, 12.38, -64.99, 2, 0)
  40. MovementLoopAddLocation(NPC, 13.73, 12.38, -72.32, 2, 0)
  41. MovementLoopAddLocation(NPC, 8.54, 13.84, -76.15, 2, 0)
  42. MovementLoopAddLocation(NPC, 10.04, 14.13, -92.25, 2, math.random(5,10))
  43. MovementLoopAddLocation(NPC, 10.04, 14.13, -92.25, 2, 0)
  44. MovementLoopAddLocation(NPC, 10.79, 14.05, -84.96, 2, 0)
  45. MovementLoopAddLocation(NPC, 26.97, 12.38, -73.86, 2, math.random(5,10))
  46. MovementLoopAddLocation(NPC, 26.97, 12.38, -73.86, 2, 0)
  47. MovementLoopAddLocation(NPC, 24.87, 12.38, -74.74, 2, 0)
  48. MovementLoopAddLocation(NPC, 11.9, 12.33, -62.51, 2, math.random(5,10))
  49. MovementLoopAddLocation(NPC, 11.9, 12.33, -62.51, 2, 0)
  50. MovementLoopAddLocation(NPC, 12.98, 12.38, -66.5, 2, 0)
  51. MovementLoopAddLocation(NPC, 2.56, 14.62, -72.7, 2, math.random(5,10))
  52. MovementLoopAddLocation(NPC, 2.56, 14.62, -72.7, 2, 0)
  53. MovementLoopAddLocation(NPC, 11.27, 12.38, -67.23, 2, 0)
  54. MovementLoopAddLocation(NPC, 15.17, 12.38, -72.08, 2, 0)
  55. end