ataintedSapswillinvader.lua 799 B

1234567891011121314151617181920212223242526
  1. --[[
  2. Script Name : SpawnScripts/QueensColony/aTaintedSapswillInvader.lua
  3. Script Purpose : a Tainted Sapswill Invader
  4. Script Author : John Adams
  5. Script Date : 2008.10.27
  6. Script Notes : 6 wandering sapswills, random destination coords
  7. --]]
  8. function spawn(NPC)
  9. local dest = math.random(1,3)
  10. if dest == 1 then
  11. MovementLoopAddLocation(NPC, 61.3, -4.2, 180.5, 2, 1)
  12. MovementLoopAddLocation(NPC, 64.5, -4, 193, 2, 1)
  13. MovementLoopAddLocation(NPC, 78, -4.3, 182.4, 2, 10)
  14. elseif dest == 2 then
  15. MovementLoopAddLocation(NPC, 75.9, -4.4, 160.5, 2, 1)
  16. MovementLoopAddLocation(NPC, 73.6, -4.3, 170.8, 2, 1)
  17. MovementLoopAddLocation(NPC, 81.2, -4.5, 172.4, 2, 10)
  18. else
  19. MovementLoopAddLocation(NPC, 75, -4, 171, 2, 10)
  20. end
  21. end
  22. function respawn(NPC)
  23. spawn(NPC)
  24. end