aHaoaeranlightfoot.lua 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. --[[
  2. Script Name : <script-name>
  3. Script Purpose : <purpose>
  4. Script Author : <author-name>
  5. Script Date : <date>
  6. Script Notes : <special-instructions>
  7. --]]
  8. function spawn(NPC)
  9. AddTimer(NPC, math.random(0, 1000), "FigureOutMovement")
  10. end
  11. function hailed(NPC, Spawn)
  12. end
  13. function respawn(NPC)
  14. spawn(NPC)
  15. end
  16. function FigureOutMovement(NPC)
  17. choice = math.random(1, 3)
  18. if choice == 1 then
  19. Bird1(NPC)
  20. elseif choice == 2 then
  21. Bird2(NPC)
  22. elseif choice == 3 then
  23. Bird3(NPC)
  24. end
  25. end
  26. function Bird1(NPC)
  27. MovementLoopAddLocation(NPC, 442.17, 168.95, 70.54, 10, 0)
  28. MovementLoopAddLocation(NPC, 555.02, 164.1, 197.12, 10, 0)
  29. end
  30. function Bird2(NPC)
  31. MovementLoopAddLocation(NPC, 458.55, 168.23, 69.26, 10, 0)
  32. MovementLoopAddLocation(NPC, 508.19, 162.41, 125.31, 10, 0)
  33. MovementLoopAddLocation(NPC, 555.44, 163.9, 194.55, 10, 0)
  34. end
  35. function Bird3(NPC)
  36. MovementLoopAddLocation(NPC, 443.06, 166.78, 80.48, 10, 0)
  37. MovementLoopAddLocation(NPC, 501.88, 164.17, 156.77, 10, 0)
  38. MovementLoopAddLocation(NPC, 506.71, 170.49, 169.25, 10, 0)
  39. MovementLoopAddLocation(NPC, 527.83, 166.48, 194.78, 10, 0)
  40. MovementLoopAddLocation(NPC, 555.54, 164.19, 198.2, 10, 0)
  41. end