9
3

aportaljumpedRyGorrraider.lua 732 B

1234567891011121314151617181920212223242526272829
  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 : Added Despawn so orcs don't stand around forever.
  7. --]]
  8. function spawn(NPC)
  9. AddTimer(NPC,60000,"despawn")
  10. local choice = math.random(1,2)
  11. SetSpeed(NPC, 7)
  12. if choice == 1 then
  13. MoveToLocation(NPC, 713.49 + math.random(-7,7), 100.34, -446.09 + math.random(-7,7))
  14. else
  15. MoveToLocation(NPC, 692.41 + math.random(-7,7), 96.14, -466.44 + math.random(-7,7))
  16. end
  17. end
  18. function respawn(NPC)
  19. spawn(NPC)
  20. end
  21. function hailed(NPC, Spawn)
  22. end
  23. function despawn(NPC)
  24. Despawn (NPC)
  25. end