9
3

aMudpawlookoutRoam3.lua 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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. 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, 15.17, 12.38, -72.08, 2, math.random(5,10))
  36. MovementLoopAddLocation(NPC, 12.28, 12.38, -64.99, 2, math.random(5,10))
  37. MovementLoopAddLocation(NPC, 12.28, 12.38, -64.99, 2, 0)
  38. MovementLoopAddLocation(NPC, 13.73, 12.38, -72.32, 2, 0)
  39. MovementLoopAddLocation(NPC, 8.54, 13.84, -76.15, 2, 0)
  40. MovementLoopAddLocation(NPC, 10.04, 14.13, -92.25, 2, math.random(5,10))
  41. MovementLoopAddLocation(NPC, 10.04, 14.13, -92.25, 2, 0)
  42. MovementLoopAddLocation(NPC, 10.79, 14.05, -84.96, 2, 0)
  43. MovementLoopAddLocation(NPC, 26.97, 12.38, -73.86, 2, math.random(5,10))
  44. MovementLoopAddLocation(NPC, 26.97, 12.38, -73.86, 2, 0)
  45. MovementLoopAddLocation(NPC, 24.87, 12.38, -74.74, 2, 0)
  46. MovementLoopAddLocation(NPC, 11.9, 12.33, -62.51, 2, math.random(5,10))
  47. MovementLoopAddLocation(NPC, 11.9, 12.33, -62.51, 2, 0)
  48. MovementLoopAddLocation(NPC, 12.98, 12.38, -66.5, 2, 0)
  49. MovementLoopAddLocation(NPC, 2.56, 14.62, -72.7, 2, math.random(5,10))
  50. MovementLoopAddLocation(NPC, 2.56, 14.62, -72.7, 2, 0)
  51. MovementLoopAddLocation(NPC, 11.27, 12.38, -67.23, 2, 0)
  52. MovementLoopAddLocation(NPC, 15.17, 12.38, -72.08, 2, 0)
  53. end