MaldreyaDarkheart.lua 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. --[[
  2. Script Name : SpawnScripts/Freeport/MaldreyaDarkheart.lua
  3. Script Author : Premierio015
  4. Script Date : 2021.05.02 09:05:28
  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, -82.80, -7.28, -176.61, 2)
  13. MoveToLocation(NPC, -67.46, -9.91, -172.30, 2)
  14. MoveToLocation(NPC, -70.90, -9.91, -159.75, 2, "heading")
  15. end
  16. function heading(NPC)
  17. SetHeading(NPC, 156.22)
  18. AddTimer(NPC, 10000, "movement_loop_continue", 1)
  19. end
  20. function movement_loop_continue(NPC)
  21. MoveToLocation(NPC, -67.46, -9.91, -172.30, 2)
  22. MoveToLocation(NPC, -82.80, -7.28, -176.61, 2)
  23. MoveToLocation(NPC, -85.73, -7.02, -184.78, 2, "heading2")
  24. end
  25. function heading2(NPC)
  26. SetHeading(NPC, 15.00)
  27. AddTimer(NPC, 10000, "movement_loop_continue", 1)
  28. end
  29. function hailed(NPC, Spawn)
  30. FaceTarget(NPC, Spawn)
  31. PlayFlavor(NPC, "", "What business have you with Dismal Rage?", "", 0 ,0, Spawn)
  32. AddTimer(NPC, 10000, "movement_loop_start", 1)
  33. end
  34. function respawn(NPC)
  35. spawn(NPC)
  36. end