ashiningnibbler.lua 723 B

12345678910111213141516171819202122232425262728293031
  1. --[[
  2. Script Name : SpawnScripts/Castleview/ashiningnibbler.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.01.29 04:01:27
  5. Script Purpose :
  6. :
  7. --]]
  8. function spawn(NPC)
  9. waypoints(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 waypoints(NPC)
  18. if GetSpawnLocationID(NPC)==418671 then
  19. MovementLoopAddLocation(NPC, 805.12, -40.76, -109.95, 2, 0)
  20. MovementLoopAddLocation(NPC, 759.09, -42.80, -92.50, 2, 0)
  21. elseif GetSpawnLocationID(NPC)==418622 then
  22. MovementLoopAddLocation(NPC, 797.46, -41.43, -103.47, 2, 0)
  23. MovementLoopAddLocation(NPC, 749.28, -41.14, -93.90, 2, 0)
  24. end
  25. end