9
3

aMudpawlookoutRoam2.lua 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. --[[
  2. Script Name : SpawnScripts/Caves/aMudpawlookoutRoam2.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2022.10.04 06:10:49
  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 hailed(NPC, Spawn)
  34. FaceTarget(NPC, Spawn)
  35. end
  36. function respawn(NPC)
  37. spawn(NPC)
  38. end
  39. function waypoints(NPC)
  40. MovementLoopAddLocation(NPC, 33.07, 11.93, -101.24, 2, math.random(5,10))
  41. MovementLoopAddLocation(NPC, 26.63, 11.93, -89.47, 2, math.random(5,10))
  42. MovementLoopAddLocation(NPC, 26.63, 11.93, -89.47, 2, 0)
  43. MovementLoopAddLocation(NPC, 24.02, 12.38, -82.38, 2, 0)
  44. MovementLoopAddLocation(NPC, 4.61, 15.12, -79.04, 2, math.random(5,10))
  45. MovementLoopAddLocation(NPC, 4.61, 15.12, -79.04, 2, 0)
  46. MovementLoopAddLocation(NPC, 17.89, 12.38, -79.6, 2, 0)
  47. MovementLoopAddLocation(NPC, 32.68, 11.93, -97.67, 2, math.random(5,10))
  48. MovementLoopAddLocation(NPC, 32.68, 11.93, -97.67, 2, 0)
  49. MovementLoopAddLocation(NPC, 15.92, 14.15, -90.05, 2, math.random(5,10))
  50. MovementLoopAddLocation(NPC, 15.92, 14.15, -90.05, 2, 0)
  51. MovementLoopAddLocation(NPC, 26.22, 12.38, -74.63, 2, math.random(5,10))
  52. MovementLoopAddLocation(NPC, 26.22, 12.38, -74.63, 2, 0)
  53. MovementLoopAddLocation(NPC, 24.78, 12.38, -79.95, 2, 0)
  54. MovementLoopAddLocation(NPC, 33.07, 11.93, -101.24, 2, 0)
  55. end