9
3

rolling_rocks.lua 736 B

123456789101112131415161718192021222324
  1. --[[
  2. Script Name : SpawnScripts/FrostfangSea/rolling_rocks.lua
  3. Script Purpose : rolling rocks
  4. Script Author : theFoof
  5. Script Date : 2013.11.15
  6. Script Notes :
  7. --]]
  8. function spawn(NPC)
  9. AddTimer(NPC, math.random(0,3000), "MovementPath")
  10. end
  11. function respawn(NPC)
  12. spawn(NPC)
  13. end
  14. function MovementPath(NPC)
  15. MovementLoopAddLocation(NPC, -144.44, 134.08, -191.65, 4, 0)
  16. MovementLoopAddLocation(NPC, -151.8, 119.21, -205.99, 4, 0)
  17. MovementLoopAddLocation(NPC, -150.61, 102.01, -219.03, 4, 0)
  18. MovementLoopAddLocation(NPC, -137, 82.64, -236.36, 4, 0)
  19. MovementLoopAddLocation(NPC, -125.34, 58.25, -281.31, 4, 0)
  20. MovementLoopAddLocation(NPC, -64.76 + math.random(-10, 10), 32.92, -283.73 + math.random(-5,5), 4, 5, "Despawn")
  21. end