acryptsubstanceU1.lua 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. --[[
  2. Script Name : SpawnScripts/DownBelow_Classic/acryptsubstanceU1.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2023.01.10 09:01:29
  5. Script Purpose :
  6. :
  7. --]]
  8. require "SpawnScripts/Generic/NPCModule"
  9. function spawn(NPC, Spawn)
  10. NPCModule(NPC, Spawn)
  11. AddTimer(NPC, 5000, "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, -183.14, -0.09, -189.84, 2, math.random(5,10))
  21. MovementLoopAddLocation(NPC, -183.14, -0.09, -189.84, 2, 0)
  22. MovementLoopAddLocation(NPC, -182.21, -0.09, -191.95, 2, math.random(5,10))
  23. MovementLoopAddLocation(NPC, -182.21, -0.09, -191.95, 2, 0)
  24. MovementLoopAddLocation(NPC, -183.22, -0.09, -190.2, 2, 0)
  25. MovementLoopAddLocation(NPC, -183.7, -0.09, -187.35, 2, math.random(5,10))
  26. MovementLoopAddLocation(NPC, -183.7, -0.09, -187.35, 2, 0)
  27. MovementLoopAddLocation(NPC, -182.87, -0.09, -189.78, 2, 0)
  28. MovementLoopAddLocation(NPC, -179.02, -0.14, -189.84, 2, 0)
  29. MovementLoopAddLocation(NPC, -177.76, -0.08, -188.56, 2, math.random(5,10))
  30. MovementLoopAddLocation(NPC, -177.76, -0.08, -188.56, 2, 0)
  31. MovementLoopAddLocation(NPC, -179.62, -0.14, -189.92, 2, 0)
  32. MovementLoopAddLocation(NPC, -181.47, -0.18, -190.61, 2, math.random(5,10))
  33. MovementLoopAddLocation(NPC, -181.47, -0.18, -190.61, 2, 0)
  34. MovementLoopAddLocation(NPC, -183.77, -0.09, -189.8, 2, math.random(5,10))
  35. MovementLoopAddLocation(NPC, -183.77, -0.09, -189.8, 2, 0)
  36. end