amonkey.lua 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. --[[
  2. Script Name : SpawnScripts/SinkingSands/amonkey.lua
  3. Script Author : premierio015
  4. Script Date : 2023.12.15 05:12:49
  5. Script Purpose : movement script for a monkey.
  6. :
  7. --]]
  8. function spawn(NPC)
  9. movement(NPC)
  10. end
  11. function hailed(NPC, Spawn)
  12. FaceTarget(NPC, Spawn)
  13. end
  14. function respawn(NPC)
  15. spawn(NPC)
  16. end
  17. function movement(NPC)
  18. if GetSpawnLocationID(NPC) == 306476 then
  19. MovementLoopAddLocation(NPC, -1500.85, -214.43, -408.72, 2, math.random(11, 17))
  20. MovementLoopAddLocation(NPC, -1493.80, -215.28, -404.18, 2, math.random(11, 17))
  21. MovementLoopAddLocation(NPC, -1490.80, -215.73, -392.88, 2, math.random(11, 17))
  22. MovementLoopAddLocation(NPC, -1467.61, -223.93, -393.10, 2, math.random(11, 17))
  23. MovementLoopAddLocation(NPC, -1468.17, -223.61, -411.79, 2, math.random(11, 17))
  24. MovementLoopAddLocation(NPC, -1507.61, -214.14, -410.05, 2, math.random(11, 17))
  25. MovementLoopAddLocation(NPC, -1540.10, -220.06, -406.76, 2, math.random(11, 17))
  26. MovementLoopAddLocation(NPC, -1542.53, -221.06, -392.51, 2, math.random(11, 17))
  27. MovementLoopAddLocation(NPC, -1515.34, -214.54, -390.25, 2, math.random(11, 17))
  28. elseif GetSpawnLocationID(NPC) == 306470 then
  29. MovementLoopAddLocation(NPC, -1552.46, -225.09, -407.42, 2, math.random(11, 17))
  30. MovementLoopAddLocation(NPC, -1553.12, -225.35, -391.71, 2, math.random(11, 17))
  31. MovementLoopAddLocation(NPC, -1519.69, -214.91, -391.87, 2, math.random(11, 17))
  32. MovementLoopAddLocation(NPC, -1493.44, -215.33, -392.00, 2, math.random(11, 17))
  33. MovementLoopAddLocation(NPC, -1493.91, -215.26, -408.47, 2, math.random(11, 17))
  34. MovementLoopAddLocation(NPC, -1471.09, -222.13, -391.36, 2, math.random(11, 17))
  35. MovementLoopAddLocation(NPC, -1500.46, -214.44, -389.31, 2, math.random(11, 17))
  36. end
  37. end