astoneshellsnapper6.lua 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. --[[
  2. Script Name : SpawnScripts/Classic_forest/astoneshellsnapper6.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2022.10.12 04:10:44
  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, 963.68, -24.08, -637.53, 1, 0)
  21. MovementLoopAddLocation(NPC, 957.73, -25.46, -634.93, 1, math.random(5,10))
  22. MovementLoopAddLocation(NPC, 957.73, -25.46, -634.93, 1, 0)
  23. MovementLoopAddLocation(NPC, 955.8, -27.23, -632.87, 1, 0)
  24. MovementLoopAddLocation(NPC, 950.77, -26.45, -633.32, 1, math.random(5,10))
  25. MovementLoopAddLocation(NPC, 950.77, -26.45, -633.32, 1, 0)
  26. MovementLoopAddLocation(NPC, 957.09, -26.03, -634.13, 1, 0)
  27. MovementLoopAddLocation(NPC, 958.41, -24.47, -636.4, 1, 0)
  28. MovementLoopAddLocation(NPC, 961.45, -23.55, -639.12, 1, math.random(5,10))
  29. MovementLoopAddLocation(NPC, 961.45, -23.55, -639.12, 1, 0)
  30. MovementLoopAddLocation(NPC, 968.27, -22.76, -637.23, 1, 0)
  31. MovementLoopAddLocation(NPC, 972.34, -22.49, -634.14, 1, 0)
  32. MovementLoopAddLocation(NPC, 978.9, -25.29, -627.6, 1, math.random(5,10))
  33. MovementLoopAddLocation(NPC, 978.9, -25.29, -627.6, 1, 0)
  34. MovementLoopAddLocation(NPC, 973.03, -26.06, -629.85, 1, 0)
  35. MovementLoopAddLocation(NPC, 966.01, -27.11, -633.89, 1, 0)
  36. MovementLoopAddLocation(NPC, 961.09, -26.28, -635.24, 1, math.random(5,10))
  37. MovementLoopAddLocation(NPC, 961.09, -26.28, -635.24, 1, 0)
  38. MovementLoopAddLocation(NPC, 958.92, -24.58, -636.43, 1, 0)
  39. MovementLoopAddLocation(NPC, 958.85, -22.79, -639.16, 1, math.random(5,10))
  40. MovementLoopAddLocation(NPC, 958.85, -22.79, -639.16, 1, 0)
  41. MovementLoopAddLocation(NPC, 963.68, -24.08, -637.53, 1, math.random(5,10))
  42. end