atinkererassistant.lua 937 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. --[[
  2. Script Name : SpawnScripts/Freeport/atinkererassistant.lua
  3. Script Author : Premierio015
  4. Script Date : 2021.05.09 08:05:57
  5. Script Purpose :
  6. :
  7. --]]
  8. function spawn(NPC)
  9. premove(NPC)
  10. end
  11. function premove(NPC)
  12. MoveToLocation(NPC, -116.07, -22.54, 119.40, 2, "animation1")
  13. end
  14. function animation1(NPC)
  15. PlayAnimation(NPC, 11976)
  16. AddTimer(NPC, 10000, "move")
  17. end
  18. function move(NPC)
  19. MoveToLocation(NPC, -112.94, -22.80, 117.95, 2)
  20. MoveToLocation(NPC, -109.91, -22.80, 119.96, 2, "waypoint_delay")
  21. end
  22. function waypoint_delay(NPC)
  23. SetHeading(NPC, 212.82)
  24. AddTimer(NPC, 5000, "point", 1) -- delay before animation
  25. end
  26. function point(NPC)
  27. PlayAnimation(NPC, 12030)
  28. AddTimer(NPC, 10000, "premove")
  29. end
  30. function hailed(NPC, Spawn)
  31. FaceTarget(NPC, Spawn)
  32. AddTimer(NPC, 10000, "movement_loop_start", 1)
  33. end
  34. function respawn(NPC)
  35. spawn(NPC)
  36. end