aportaljumpedRyGorrraider.lua 624 B

12345678910111213141516171819202122232425
  1. --[[
  2. Script Name : SpawnScripts/FrostfangSea/aportaljumpedRyGorrraider.lua
  3. Script Purpose : for the raiders that pop out of the portal in frostfang
  4. Script Author : theFoof
  5. Script Date : 2013.6.8
  6. Script Notes :
  7. --]]
  8. function spawn(NPC)
  9. local choice = math.random(1,2)
  10. SetSpeed(NPC, 7)
  11. if choice == 1 then
  12. MoveToLocation(NPC, 713.49 + math.random(-7,7), 100.34, -446.09 + math.random(-7,7))
  13. else
  14. MoveToLocation(NPC, 692.41 + math.random(-7,7), 96.14, -466.44 + math.random(-7,7))
  15. end
  16. end
  17. function respawn(NPC)
  18. spawn(NPC)
  19. end
  20. function hailed(NPC, Spawn)
  21. FaceTarget(NPC, Spawn)
  22. end