astoneshellsnapper13.lua 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. --[[
  2. Script Name : SpawnScripts/Classic_forest/astoneshellsnapper13.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2022.10.12 07:10:10
  5. Script Purpose :
  6. :
  7. --]]
  8. require "SpawnScripts/Generic/NPCModule"
  9. function spawn(NPC, Spawn)
  10. NPCModule(NPC, Spawn)
  11. AddTimer(NPC, 6000, "waypoints")
  12. end
  13. function hailed(NPC, Spawn)
  14. FaceTarget(NPC, Spawn)
  15. end
  16. function respawn(NPC)
  17. spawn(NPC)
  18. end
  19. function waypoints(NPC)
  20. MovementLoopAddLocation(NPC, 1130.55, -22.33, -719.45, 1, 0)
  21. MovementLoopAddLocation(NPC, 1135.6, -22.73, -722.05, 1, math.random(5,10))
  22. MovementLoopAddLocation(NPC, 1135.6, -22.73, -722.05, 1, 0)
  23. MovementLoopAddLocation(NPC, 1126.28, -21.07, -718.65, 1, math.random(5,10))
  24. MovementLoopAddLocation(NPC, 1126.28, -21.07, -718.65, 1, 0)
  25. MovementLoopAddLocation(NPC, 1129.75, -22.84, -716.2, 1, 0)
  26. MovementLoopAddLocation(NPC, 1125.18, -22.7, -710.89, 1, 0)
  27. MovementLoopAddLocation(NPC, 1120.83, -21.92, -707.67, 1, math.random(5,10))
  28. MovementLoopAddLocation(NPC, 1120.83, -21.92, -707.67, 1, 0)
  29. MovementLoopAddLocation(NPC, 1126.74, -21.52, -714.59, 1, 0)
  30. MovementLoopAddLocation(NPC, 1128.22, -21.54, -720.27, 1, 0)
  31. MovementLoopAddLocation(NPC, 1130.69, -21.53, -722.83, 1, math.random(5,10))
  32. MovementLoopAddLocation(NPC, 1130.69, -21.53, -722.83, 1, 0)
  33. MovementLoopAddLocation(NPC, 1138.43, -22.88, -721.78, 1, 0)
  34. MovementLoopAddLocation(NPC, 1140.64, -23.02, -719.74, 1, 0)
  35. MovementLoopAddLocation(NPC, 1141.72, -22.25, -718.01, 1, math.random(5,10))
  36. MovementLoopAddLocation(NPC, 1141.72, -22.25, -718.01, 1, 0)
  37. MovementLoopAddLocation(NPC, 1140.07, -23.34, -720.42, 1, 0)
  38. MovementLoopAddLocation(NPC, 1136.44, -22.89, -721.58, 1, 0)
  39. MovementLoopAddLocation(NPC, 1130.38, -22.94, -716.87, 1, 0)
  40. MovementLoopAddLocation(NPC, 1128.58, -22.21, -716.5, 1, math.random(5,10))
  41. MovementLoopAddLocation(NPC, 1128.58, -22.21, -716.5, 1, 0)
  42. MovementLoopAddLocation(NPC, 1130.42, -21.66, -721.96, 1, math.random(5,10))
  43. MovementLoopAddLocation(NPC, 1130.42, -21.66, -721.96, 1, 0)
  44. MovementLoopAddLocation(NPC, 1130.55, -22.33, -719.45, 1, math.random(5,10))
  45. end