aRyGorrcenturion.lua 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. --[[
  2. Script Name : Quests/FrostfangSea/arygorrcenturion.lua
  3. Script Purpose : the spawn "a Ry'Gorr centurion"
  4. Script Author : theFoof
  5. Script Date : 2013.5.16
  6. --]]
  7. function spawn(NPC)
  8. MovementLoopAddLocation(NPC, -304.78 + math.random(-7,7), 18.51, -611.98, 3, math.random(2,6))
  9. MovementLoopAddLocation(NPC, -321.28 + math.random(-7,7), 27.91, -659.17 + math.random(-7,7), 4, math.random(2,6))
  10. if GetSpawnLocationID(NPC) == 572680 or GetSpawnLocationID(NPC) == 572681 then
  11. MovementLoopAddLocation(NPC, -319.99, 33.45, -703.09, 7, math.random(3,4))
  12. MovementLoopAddLocation(NPC, -312.91, 33.33, -707.07, 3, math.random(1,2))
  13. MovementLoopAddLocation(NPC, -324.50, 33.89, -702.57, 3, math.random(4,7))
  14. MovementLoopAddLocation(NPC, -312.91, 33.33, -707.07, 3, math.random(4,7))
  15. elseif GetSpawnLocationID(NPC) == 572682 or GetSpawnLocationID(NPC) == 572683 then
  16. MovementLoopAddLocation(NPC, -344.56, 33.45, -699.75, 7, math.random(3,4))
  17. MovementLoopAddLocation(NPC, -338.27, 34.1, -701.33, 3, math.random(1,2))
  18. MovementLoopAddLocation(NPC, -347.24, 32.61, -697.9, 3, math.random(4,7))
  19. MovementLoopAddLocation(NPC, -360.37, 34.7, -702.44, 7, math.random(5,10))
  20. MovementLoopAddLocation(NPC, -338.27, 34.1, -701.33, 3, math.random(4,7))
  21. elseif GetSpawnLocationID(NPC) == 572684 then
  22. MovementLoopAddLocation(NPC, -360.37, 34.7, -702.44, 7, math.random(5,20))
  23. end
  24. end
  25. function respawn(NPC)
  26. spawn(NPC)
  27. end
  28. function hailed(NPC, Spawn)
  29. FaceTarget(NPC, Spawn)
  30. end
  31. function death(NPC)
  32. SpawnByLocationID(GetZone(NPC), GetSpawnLocationID(NPC))
  33. end