SDreadGuard2.lua 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. --[[
  2. Script Name : SpawnScripts/Neriak/SDreadGuard2.lua
  3. Script Purpose : Waypoint Path for Dread Guard 2 Indigo Hollow
  4. Script Author : Cynnar
  5. Script Date : 5/7/2018 12:00:00 AM
  6. Script Notes : This is the Dread Guard starting at New Foreign Quarter Neriak Indigo Hollow.
  7. --]]
  8. function spawn(NPC)
  9. SetMount(NPC, 7242)
  10. SetMountColor(NPC, 65, 52, 44, 58, 59, 151)
  11. waypoints(NPC)
  12. end
  13. function hailed(NPC, Spawn)
  14. FaceTarget(NPC, Spawn)
  15. end
  16. function respawn(NPC)
  17. end
  18. function randmount(NPC)
  19. local choice = math.random(1, 2)
  20. if choice == 1 then
  21. SetMount(NPC, 24936)
  22. SetMountColor(NPC, 255, 255, 255, 255, 255, 255)
  23. end
  24. end
  25. function waypoints(NPC)
  26. MovementLoopAddLocation(NPC, 80.68, 17.42, 11.01, 2, 0)
  27. MovementLoopAddLocation(NPC, 60.86, 16.96, 7.3, 2, 0)
  28. MovementLoopAddLocation(NPC, 55.95, 17.22, 4.69, 2, 0)
  29. MovementLoopAddLocation(NPC, 32.11, 17.02, -5.75, 2, 0)
  30. MovementLoopAddLocation(NPC, 19.47, 17.01, 9.67, 2, 0)
  31. MovementLoopAddLocation(NPC, 24.35, 16.31, 32.83, 2, 0)
  32. MovementLoopAddLocation(NPC, 19.47, 17.01, 9.67, 2, 0)
  33. MovementLoopAddLocation(NPC, 32.11, 17.02, -5.75, 2, 0)
  34. MovementLoopAddLocation(NPC, 55.95, 17.22, 4.69, 2, 0)
  35. MovementLoopAddLocation(NPC, 60.86, 16.96, 7.3, 2, 0)
  36. end