9
3

aruinsskulker2.lua 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. --[[
  2. Script Name : SpawnScripts/Classic_forest/aruinsskulker2.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2022.10.14 08:10:01
  5. Script Purpose :
  6. :
  7. --]]
  8. function spawn(NPC)
  9. local Level = GetLevel(NPC)
  10. local level1 = 9
  11. local level2 = 10
  12. local difficulty1 = 6
  13. local hp1 = 275
  14. local power1 = 110
  15. local difficulty2 = 6
  16. local hp2 = 370
  17. local power2 = 130
  18. if Level == level1 then
  19. SpawnSet(NPC, "difficulty", difficulty1)
  20. SpawnSet(NPC, "hp", hp1)
  21. SpawnSet(NPC, "power", power1)
  22. elseif Level == level2
  23. then
  24. SpawnSet(NPC, "difficulty", difficulty2)
  25. SpawnSet(NPC, "hp", hp2)
  26. SpawnSet(NPC, "power", power2)
  27. end
  28. waypoints(NPC)
  29. end
  30. function hailed(NPC, Spawn)
  31. FaceTarget(NPC, Spawn)
  32. end
  33. function respawn(NPC)
  34. spawn(NPC)
  35. end
  36. function waypoints(NPC)
  37. MovementLoopAddLocation(NPC, 997.99, -26.5, -907.33, 2, 0)
  38. MovementLoopAddLocation(NPC, 980.26, -26.69, -899.13, 2, 0)
  39. MovementLoopAddLocation(NPC, 957.91, -27.04, -884.64, 2, 0)
  40. MovementLoopAddLocation(NPC, 946.25, -24.76, -850.75, 2, 6)
  41. MovementLoopAddLocation(NPC, 946.25, -24.76, -850.75, 2, 0)
  42. MovementLoopAddLocation(NPC, 954.38, -25.36, -858, 2, 0)
  43. MovementLoopAddLocation(NPC, 973.92, -24.38, -871.07, 2, 0)
  44. MovementLoopAddLocation(NPC, 981.75, -24.57, -878.75, 2, 0)
  45. MovementLoopAddLocation(NPC, 993.5, -23.89, -880.54, 2, 0)
  46. MovementLoopAddLocation(NPC, 998.83, -25.05, -890.62, 2, 0)
  47. MovementLoopAddLocation(NPC, 997.99, -26.5, -907.33, 2, 6)
  48. end