9
3

aMudpawlookoutRoam1.lua 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. --[[
  2. Script Name : SpawnScripts/Caves/aMudpawlookoutRoam1.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2022.10.04 06:10:37
  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, 36.74, 12.38, -85.77, 2, math.random(5,10))
  38. MovementLoopAddLocation(NPC, 24.39, 12.38, -81.15, 2, math.random(5,10))
  39. MovementLoopAddLocation(NPC, 24.39, 12.38, -81.15, 2, 0)
  40. MovementLoopAddLocation(NPC, 22.18, 12.38, -63.93, 2, math.random(5,10))
  41. MovementLoopAddLocation(NPC, 22.18, 12.38, -63.93, 2, 0)
  42. MovementLoopAddLocation(NPC, 25.65, 12.38, -78.72, 2, math.random(5,10))
  43. MovementLoopAddLocation(NPC, 25.65, 12.38, -78.72, 2, 0)
  44. MovementLoopAddLocation(NPC, 13.18, 12.99, -82.22, 2, math.random(5,10))
  45. MovementLoopAddLocation(NPC, 13.18, 12.99, -82.22, 2, 0)
  46. MovementLoopAddLocation(NPC, 25.53, 12, -100.04, 2, math.random(5,10))
  47. MovementLoopAddLocation(NPC, 25.53, 12, -100.04, 2, 0)
  48. MovementLoopAddLocation(NPC, 8.37, 14.72, -84.19, 2, math.random(5,10))
  49. MovementLoopAddLocation(NPC, 8.37, 14.72, -84.19, 2, 0)
  50. MovementLoopAddLocation(NPC, 15.84, 12.6, -81.11, 2, 0)
  51. MovementLoopAddLocation(NPC, 26.51, 11.93, -89.3, 2, math.random(5,10))
  52. MovementLoopAddLocation(NPC, 26.51, 11.93, -89.3, 2, 0)
  53. MovementLoopAddLocation(NPC, 36.74, 12.38, -85.77, 2, 0)
  54. end