aDismalRageadherent56348.lua 923 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. --[[
  2. Script Name : SpawnScripts/Freeport/aDismalRageadherent56348.lua
  3. Script Author : Premierio015
  4. Script Date : 2021.05.02 09:05:27
  5. Script Purpose :
  6. :
  7. --]]
  8. function spawn(NPC)
  9. movement_loop_start(NPC)
  10. end
  11. function movement_loop_start(NPC)
  12. MoveToLocation(NPC,-68.43, -7.95, -97.19, 2)
  13. MoveToLocation(NPC, -71.94, -7.96, -95.07, 2, "heading")
  14. end
  15. function heading(NPC)
  16. SetHeading(NPC, 155.31)
  17. AddTimer(NPC, 7000, "movement_loop_continue", 1)
  18. end
  19. function movement_loop_continue(NPC)
  20. MoveToLocation(NPC,-68.43, -7.95, -97.19, 2)
  21. MoveToLocation(NPC, -48.35, -7.96, -153.06, 2, "heading2")
  22. end
  23. function heading2(NPC)
  24. SetHeading(NPC, 29.93)
  25. AddTimer(NPC, 7000, "movement_loop_start", 1)
  26. end
  27. function hailed(NPC, Spawn)
  28. FaceTarget(NPC, Spawn)
  29. AddTimer(NPC, 7000, "movement_loop_start", 1)
  30. end
  31. function respawn(NPC)
  32. spawn(NPC)
  33. end