9
3

aMudpawlookoutRoam1.lua 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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. 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, 36.74, 12.38, -85.77, 2, math.random(5,10))
  36. MovementLoopAddLocation(NPC, 24.39, 12.38, -81.15, 2, math.random(5,10))
  37. MovementLoopAddLocation(NPC, 24.39, 12.38, -81.15, 2, 0)
  38. MovementLoopAddLocation(NPC, 22.18, 12.38, -63.93, 2, math.random(5,10))
  39. MovementLoopAddLocation(NPC, 22.18, 12.38, -63.93, 2, 0)
  40. MovementLoopAddLocation(NPC, 25.65, 12.38, -78.72, 2, math.random(5,10))
  41. MovementLoopAddLocation(NPC, 25.65, 12.38, -78.72, 2, 0)
  42. MovementLoopAddLocation(NPC, 13.18, 12.99, -82.22, 2, math.random(5,10))
  43. MovementLoopAddLocation(NPC, 13.18, 12.99, -82.22, 2, 0)
  44. MovementLoopAddLocation(NPC, 25.53, 12, -100.04, 2, math.random(5,10))
  45. MovementLoopAddLocation(NPC, 25.53, 12, -100.04, 2, 0)
  46. MovementLoopAddLocation(NPC, 8.37, 14.72, -84.19, 2, math.random(5,10))
  47. MovementLoopAddLocation(NPC, 8.37, 14.72, -84.19, 2, 0)
  48. MovementLoopAddLocation(NPC, 15.84, 12.6, -81.11, 2, 0)
  49. MovementLoopAddLocation(NPC, 26.51, 11.93, -89.3, 2, math.random(5,10))
  50. MovementLoopAddLocation(NPC, 26.51, 11.93, -89.3, 2, 0)
  51. MovementLoopAddLocation(NPC, 36.74, 12.38, -85.77, 2, 0)
  52. end