afiendishghoulPath.lua 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. --[[
  2. Script Name : SpawnScripts/TheGraveyard_Classic/afiendishghoulPath.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2023.08.14 08:08:20
  5. Script Purpose :
  6. :
  7. --]]
  8. require "SpawnScripts/Generic/NPCModule"
  9. function spawn(NPC, Spawn)
  10. NPCModule(NPC, Spawn)
  11. SetSpawnAnimation(NPC, 13016)
  12. waypoints(NPC)
  13. end
  14. function hailed(NPC, Spawn)
  15. FaceTarget(NPC, Spawn)
  16. end
  17. function respawn(NPC)
  18. spawn(NPC)
  19. end
  20. function waypoints(NPC)
  21. MovementLoopAddLocation(NPC, 0.37, -7.1, 24.92, 2, math.random(10,15))
  22. MovementLoopAddLocation(NPC, 0.37, -7.1, 24.92, 2, 0)
  23. MovementLoopAddLocation(NPC, -2.01, -7.29, 27.12, 2, 0)
  24. MovementLoopAddLocation(NPC, -2.01, -7.29, 27.12, 2, math.random(10,15))
  25. MovementLoopAddLocation(NPC, -1.09, -7.22, 33.07, 2, 0)
  26. MovementLoopAddLocation(NPC, -0.21, -7.29, 39.61, 2, 0)
  27. MovementLoopAddLocation(NPC, 0.24, -7.19, 50.39, 2, 0)
  28. MovementLoopAddLocation(NPC, -2.83, -7.36, 53.29, 2, 0)
  29. MovementLoopAddLocation(NPC, -4.47, -7.49, 53.43, 2, 0)
  30. MovementLoopAddLocation(NPC, -4.47, -7.49, 53.43, 2, math.random(10,15))
  31. MovementLoopAddLocation(NPC, -2.42, -7.32, 52.88, 2, 0)
  32. MovementLoopAddLocation(NPC, -0.85, -7.21, 49.98, 2, 0)
  33. MovementLoopAddLocation(NPC, -2.88, -7.36, 39.25, 2, 0)
  34. MovementLoopAddLocation(NPC, -2.88, -7.36, 39.25, 2, math.random(10,15))
  35. MovementLoopAddLocation(NPC, -1.17, -7.22, 30.63, 2, 0)
  36. MovementLoopAddLocation(NPC, -1.17, -7.22, 30.63, 2, math.random(10,15))
  37. MovementLoopAddLocation(NPC, 0.55, -7.23, 33.99, 2, 0)
  38. MovementLoopAddLocation(NPC, 0.3, -7.25, 37.32, 2, 0)
  39. MovementLoopAddLocation(NPC, 0.37, -7.25, 41.51, 2, 0)
  40. MovementLoopAddLocation(NPC, -2.84, -7.37, 43.88, 2, 0)
  41. MovementLoopAddLocation(NPC, -5.96, -7.61, 45.13, 2, 0)
  42. MovementLoopAddLocation(NPC, -5.96, -7.61, 45.13, 2, math.random(10,15))
  43. MovementLoopAddLocation(NPC, -4.59, -7.5, 44.66, 2, 0)
  44. MovementLoopAddLocation(NPC, -3.5, -7.42, 43.41, 2, 0)
  45. end