MorakAttack428890.lua 961 B

123456789101112131415161718192021222324252627282930313233343536
  1. --[[
  2. Script Name : SpawnScripts/QueensColony/MorakAttack428890.lua
  3. Script Purpose : waypoint to their death
  4. Script Author : premierio015
  5. Script Date : 2020.04.18
  6. Script Notes :
  7. --]]
  8. function spawn(NPC, Spawn)
  9. waypoints(NPC)
  10. local Westfall01 = GetSpawn(Spawn, 433081)
  11. local Westfall02 = GetSpawn(Spawn, 133771741)
  12. Westfall(NPC)
  13. end
  14. function respawn(NPC)
  15. spawn(NPC)
  16. end
  17. function waypoints(NPC)
  18. MoveToLocation(NPC, 254.46, -5.10, 65.5, 7, "aggro", false)
  19. MoveToLocation(NPC, 246.03, -6.98, 83.05, 7, "aggro", false)
  20. MoveToLocation(NPC, 233.07, -4.19, 148.65, 7, "aggro", false)
  21. MoveToLocation(NPC, 232.17, -3.42, 152.3, 7, "aggro", false)
  22. -- AddTimer(NPC, 30000, "Westfall")
  23. end
  24. function Westfall(NPC)
  25. if Westfall01 ~= nil then
  26. Attack(NPC, Westfall01)
  27. end
  28. if Westfall02 ~= nil then
  29. Attack(NPC, Westfall02)
  30. end
  31. end