9
3

tesilah.lua 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. --[[
  2. Script Name : tesilah.lua
  3. Script Purpose : Waypoint Path for tesilah.lua
  4. Script Author : Devn00b
  5. Script Date : 04/11/2020 03:21:57 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, 7, "InRange", "LeaveRange")
  12. end
  13. function hailed(NPC, Spawn)
  14. FaceTarget(NPC, Spawn)
  15. GenericEcologyHail(NPC, Spawn, faction)
  16. end
  17. function InRange(NPC,Spawn)
  18. GenericEcologyCallout(NPC, Spawn, faction)
  19. end
  20. --[[function hailed(NPC, Spawn)
  21. FaceTarget(NPC, Spawn)
  22. local choice = math.random(1,7)
  23. if choice == 1 then
  24. PlayFlavor(NPC, "voiceover/english/human_eco_good_1/ft/human/human_eco_good_1_aoi_gm_2c5409ba.mp3", "Another lovely day in the city of Qeynos!", "sigh", 2759856909, 614688407, Spawn)
  25. elseif choice == 2 then
  26. PlayFlavor(NPC, "voiceover/english/human_eco_good_1/ft/human/human_eco_good_1_hail_gm_ef2b9651.mp3", "Will you quit pestering me? Don't force me to summon the guards!", "tapfoot", 3345611839, 1442739842, Spawn)
  27. elseif choice == 3 then
  28. PlayFlavor(NPC, "voiceover/english/human_eco_good_1/ft/human/human_eco_good_1_aoi_gm_4d212798.mp3", "I'm confident that the merchants of our village will fill all equipment needs with the utmost hospitality.", "smile", 2600666744, 586734676, Spawn)
  29. elseif choice == 4 then
  30. PlayFlavor(NPC, "voiceover/english/human_eco_good_1/ft/human/human_eco_good_1_hail_gm_e58035f3.mp3", "What do you want? Leave me be!", "shrug", 1323474108, 3355478224, Spawn)
  31. elseif choice == 5 then
  32. PlayFlavor(NPC, "voiceover/english/human_eco_good_1/ft/human/human_eco_good_1_hail_gm_9b2049a3.mp3", "Well met, friend. It's good to make your acquaintance!", "bow", 754727055, 3165426316, Spawn)
  33. elseif choice == 6 then
  34. PlayFlavor(NPC, "voiceover/english/human_eco_good_1/ft/human/human_eco_good_1_hail_gm_7e3b456a.mp3", "Hail, pleasure to meet you.", "agree", 471367832, 2417424572, Spawn)
  35. elseif choice == 7 then
  36. PlayFlavor(NPC, "voiceover/english/human_eco_good_1/ft/human/human_eco_good_1_hail_gm_13b79d2d.mp3", "Welcome...welcome traveler, to the fair city of Qeynos! My, isn't it a magnificent day?", "hello", 3746934207, 794965138, Spawn)
  37. else
  38. end
  39. end]]--
  40. function respawn(NPC)
  41. spawn(NPC)
  42. end
  43. function waypoints(NPC)
  44. MovementLoopAddLocation(NPC, 710.44, -19.45, 176.78, 2, 0)
  45. MovementLoopAddLocation(NPC, 708.82, -19.45, 180.77, 2, 0)
  46. MovementLoopAddLocation(NPC, 705.8, -19.54, 188.21, 2, 0)
  47. MovementLoopAddLocation(NPC, 703.43, -19.53, 195.03, 2, 0)
  48. MovementLoopAddLocation(NPC, 690.8, -19.52, 198.95, 2, 0)
  49. MovementLoopAddLocation(NPC, 686.49, -19.52, 213.39, 2, 0)
  50. MovementLoopAddLocation(NPC, 682.72, -19.49, 216.29, 2, 0)
  51. MovementLoopAddLocation(NPC, 637.94, -19.1, 229.9, 2, 0)
  52. MovementLoopAddLocation(NPC, 636.11, -17.14, 224.31, 2, 0)
  53. MovementLoopAddLocation(NPC, 626.03, -17.14, 226.88, 2, 0)
  54. MovementLoopAddLocation(NPC, 610.99, -16.46, 229.12, 2, 0)
  55. MovementLoopAddLocation(NPC, 595.42, -16.57, 232.07, 2, 0)
  56. MovementLoopAddLocation(NPC, 576.71, -16.57, 235.12, 2, 0)
  57. MovementLoopAddLocation(NPC, 573.15, -16.57, 235.49, 2, 0)
  58. MovementLoopAddLocation(NPC, 573.66, -17.93, 241.36, 2, 0)
  59. MovementLoopAddLocation(NPC, 552.73, -17.69, 242.2, 2, 0)
  60. MovementLoopAddLocation(NPC, 531.54, -18.37, 241.84, 2, 0)
  61. MovementLoopAddLocation(NPC, 494.22, -20.02, 239.88, 2, 0)
  62. MovementLoopAddLocation(NPC, 467.68, -21.75, 234.49, 2, 0)
  63. MovementLoopAddLocation(NPC, 458.2, -21.43, 226.86, 2, 0)
  64. MovementLoopAddLocation(NPC, 463.73, -21.39, 213.35, 2, 0)
  65. MovementLoopAddLocation(NPC, 469, -21.28, 200.5, 2, 0)
  66. MovementLoopAddLocation(NPC, 463.68, -20.77, 191.39, 2, 0)
  67. MovementLoopAddLocation(NPC, 469, -21.28, 200.5, 2, 0)
  68. MovementLoopAddLocation(NPC, 463.73, -21.39, 213.35, 2, 0)
  69. MovementLoopAddLocation(NPC, 458.2, -21.43, 226.86, 2, 0)
  70. MovementLoopAddLocation(NPC, 467.68, -21.75, 234.49, 2, 0)
  71. MovementLoopAddLocation(NPC, 494.22, -20.02, 239.88, 2, 0)
  72. MovementLoopAddLocation(NPC, 531.54, -18.37, 241.84, 2, 0)
  73. MovementLoopAddLocation(NPC, 552.73, -17.69, 242.2, 2, 0)
  74. MovementLoopAddLocation(NPC, 573.66, -17.93, 241.36, 2, 0)
  75. MovementLoopAddLocation(NPC, 573.15, -16.57, 235.49, 2, 0)
  76. MovementLoopAddLocation(NPC, 576.71, -16.57, 235.12, 2, 0)
  77. MovementLoopAddLocation(NPC, 595.42, -16.57, 232.07, 2, 0)
  78. MovementLoopAddLocation(NPC, 610.99, -16.46, 229.12, 2, 0)
  79. MovementLoopAddLocation(NPC, 626.03, -17.14, 226.88, 2, 0)
  80. MovementLoopAddLocation(NPC, 636.11, -17.14, 224.31, 2, 0)
  81. MovementLoopAddLocation(NPC, 637.94, -19.1, 229.9, 2, 0)
  82. MovementLoopAddLocation(NPC, 682.72, -19.49, 216.29, 2, 0)
  83. MovementLoopAddLocation(NPC, 686.49, -19.52, 213.39, 2, 0)
  84. MovementLoopAddLocation(NPC, 690.8, -19.52, 198.95, 2, 0)
  85. MovementLoopAddLocation(NPC, 703.43, -19.53, 195.03, 2, 0)
  86. MovementLoopAddLocation(NPC, 705.8, -19.54, 188.21, 2, 0)
  87. MovementLoopAddLocation(NPC, 708.82, -19.45, 180.77, 2, 0)
  88. MovementLoopAddLocation(NPC, 710.44, -19.45, 176.78, 2, 0)
  89. end