theodoric.lua 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. --[[
  2. Script Name : theodoric.lua
  3. Script Purpose : Waypoint Path for theodoric.lua
  4. Script Author : Devn00b
  5. Script Date : 04/11/2020 07:19:05 PM
  6. Script Notes : Locations collected from Live
  7. --]]
  8. dofile("SpawnScripts/Generic/GenericEcologyVoiceOvers.lua")
  9. function spawn(NPC)
  10. waypoints(NPC)
  11. SetPlayerProximityFunction(NPC, 5, "InRange", "LeaveRange")
  12. end
  13. function InRange(NPC, Spawn)
  14. GenericDrunkCallout(NPC, Spawn, faction)
  15. end
  16. function hailed(NPC, Spawn)
  17. FaceTarget(NPC, Spawn)
  18. GenericDrunkHail(NPC, Spawn, faction)
  19. end
  20. function respawn(NPC)
  21. spawn(NPC)
  22. end
  23. function waypoints(NPC)
  24. MovementLoopAddLocation(NPC, 516.1, -9.57, 128.35, 2, 1)
  25. MovementLoopAddLocation(NPC, 516.1, -9.57, 128.35, 2, 30,"Drink")
  26. MovementLoopAddLocation(NPC, 516.74, -9.57, 131.87, 2, 1)
  27. MovementLoopAddLocation(NPC, 516.74, -9.57, 131.87, 2, 30,"Drink")
  28. MovementLoopAddLocation(NPC, 516.74, -9.57, 131.87, 2, 0)
  29. MovementLoopAddLocation(NPC, 532.62, -9.56, 132.75, 2, 0)
  30. MovementLoopAddLocation(NPC, 532.46, -9.56, 136.21, 2, 1)
  31. MovementLoopAddLocation(NPC, 532.46, -9.56, 136.21, 2, 30,"Drink")
  32. MovementLoopAddLocation(NPC, 532.46, -9.56, 136.21, 2, 0)
  33. MovementLoopAddLocation(NPC, 532.05, -9.56, 132.94, 2, 0)
  34. MovementLoopAddLocation(NPC, 540.22, -9.56, 133.93, 2, 0)
  35. MovementLoopAddLocation(NPC, 542.24, -9.56, 136.1, 2, 0)
  36. MovementLoopAddLocation(NPC, 561.26, -9.56, 133.56, 2, 0)
  37. MovementLoopAddLocation(NPC, 572.73, -9.43, 136.49, 2, 0)
  38. MovementLoopAddLocation(NPC, 572.91, -8.47, 131.8, 2, 0)
  39. MovementLoopAddLocation(NPC, 580.87, -8.48, 130.61, 2, 10)
  40. MovementLoopAddLocation(NPC, 578.34, -8.48, 127.68, 2, 1)
  41. MovementLoopAddLocation(NPC, 578.34, -8.48, 127.68, 2, 30,"Drink")
  42. MovementLoopAddLocation(NPC, 578.34, -8.48, 127.68, 2, 25,"Drink")
  43. MovementLoopAddLocation(NPC, 578.07, -8.48, 126.71, 2, 0)
  44. MovementLoopAddLocation(NPC, 576.29, -8.47, 127.62, 2, 0)
  45. MovementLoopAddLocation(NPC, 575.25, -8.47, 131.3, 2, 0)
  46. MovementLoopAddLocation(NPC, 572.61, -8.47, 131.21, 2, 0)
  47. MovementLoopAddLocation(NPC, 571.26, -9.43, 127.3, 2, 0)
  48. MovementLoopAddLocation(NPC, 566.1, -9.56, 130.01, 2, 0)
  49. MovementLoopAddLocation(NPC, 553.61, -9.56, 134.67, 2, 0)
  50. MovementLoopAddLocation(NPC, 540.58, -9.56, 134.62, 2, 0)
  51. MovementLoopAddLocation(NPC, 529.62, -9.56, 133.41, 2, 0)
  52. MovementLoopAddLocation(NPC, 519.98, -9.56, 132.37, 2, 0)
  53. end
  54. function Drink(NPC)
  55. PlayAnimation(NPC,11422)
  56. AddTimer(NPC,8000, "Drink2")
  57. end
  58. function Drink2(NPC)
  59. choice = math.random(1,3)
  60. if choice == 1 then
  61. PlayAnimation(NPC,891)
  62. elseif choice == 2 then
  63. PlayAnimation(NPC,11422)
  64. else
  65. PlayAnimation(NPC,11668)
  66. end
  67. AddTimer(NPC,6000, "Drink3")
  68. end
  69. function Drink3(NPC)
  70. PlayAnimation(NPC,11422)
  71. end