theodoric.lua 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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. PlayFlavor(NPC,"","","drinking_idle",0,0)
  56. AddTimer(NPC,8000, "Drink2")
  57. end
  58. function Drink2(NPC)
  59. choice = math.random(1,4)
  60. if choice == 1 then
  61. PlayFlavor(NPC,"","","yawn",0,0)
  62. elseif choice == 2 then
  63. PlayFlavor(NPC,"","","drinking_idle",0,0)
  64. elseif choice == 3 then
  65. PlayFlavor(NPC,"","","hungry",0,0)
  66. else
  67. PlayFlavor(NPC,"","","happy",0,0)
  68. end
  69. AddTimer(NPC,6000, "Drink3")
  70. end
  71. function Drink3(NPC)
  72. PlayFlavor(NPC,"","","drinking_idle",0,0)
  73. end