KennethAshburn.lua 5.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. --[[
  2. Script Name : SpawnScripts/Nettleville/KennethAshburn.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.06.27 05:06:25
  5. Script Purpose :
  6. :
  7. --]]
  8. function spawn(NPC)
  9. waypoints(NPC)
  10. SetPlayerProximityFunction(NPC, 6, "InRange", "LeaveRange")
  11. end
  12. function InRange(NPC, Spawn)
  13. if math.random(1,100)<33 then
  14. Talk(NPC,Spawn)
  15. end
  16. end
  17. function hailed(NPC, Spawn)
  18. Talk(NPC,Spawn)
  19. end
  20. function Talk(NPC,Spawn)
  21. FaceTarget(NPC, Spawn)
  22. local choice = math.random(1,9)
  23. if choice == 1 then
  24. PlayFlavor(NPC, "voiceover/english/human_eco_evil_1/ft/human/human_eco_evil_1_hail_gm_e1633802.mp3", "I was just saying to myself how I really don't like the way your face looks.", "agree", 2892144271, 4226558009, Spawn)
  25. elseif choice == 2 then
  26. PlayFlavor(NPC, "voiceover/english/human_eco_evil_1/ft/human/human_eco_evil_1_hail_gm_dfce6d9.mp3", "If you're looking for trouble, I've got a whole fistful of it waiting for you.", "threaten", 767826754, 1534633302, Spawn)
  27. elseif choice == 3 then
  28. PlayFlavor(NPC, "voiceover/english/human_eco_evil_1/ft/human/human_eco_evil_1_hail_gm_daf01a19.mp3", "If I had another five or six ales, maybe I wouldn't mind talking to you.", "chuckle", 3530112272, 2115498011, Spawn)
  29. elseif choice == 4 then
  30. PlayFlavor(NPC, "voiceover/english/human_eco_evil_1/ft/human/human_eco_evil_1_hail_gm_c467886b.mp3", "Do I look like someone who cares?", "whome", 2648633348, 1343979863, Spawn)
  31. elseif choice == 5 then
  32. PlayFlavor(NPC, "voiceover/english/human_eco_evil_1/ft/human/human_eco_evil_1_hail_gm_f47447aa.mp3", "Keep to yourself and you just might make it through another day.", "wink", 1457279923, 475736143, Spawn)
  33. elseif choice == 6 then
  34. PlayFlavor(NPC, "voiceover/english/human_eco_evil_1/ft/human/human_eco_evil_1_aoi_gm_a2d138b9.mp3", "Where the heck is that horrible stench coming from? Oh. You.", "stinky", 3989425659, 2701948732, Spawn)
  35. elseif choice == 7 then
  36. PlayFlavor(NPC, "voiceover/english/human_eco_evil_1/ft/human/human_eco_evil_1_aoi_gm_20171f6b.mp3", "If you know what's good for ya, you didn't see anything!", "scold", 369052520, 3267063374, Spawn)
  37. elseif choice == 8 then
  38. PlayFlavor(NPC, "voiceover/english/human_eco_evil_1/ft/human/human_eco_evil_1_hail_gm_34b6867c.mp3", "Get out of my face, loser!", "stare", 1398343887, 3015762585, Spawn)
  39. elseif choice == 9 then
  40. PlayFlavor(NPC, "voiceover/english/human_eco_evil_1/ft/human/human_eco_evil_1_hail_gm_528fccc.mp3", "That look's like an awfuly expensive pair of boots there.. friend.", "ponder", 623577963, 2384305800, Spawn)
  41. end
  42. end
  43. function waypoints(NPC)
  44. MovementLoopAddLocation(NPC, 573.02, -20.16, 328.83, 2, 1)
  45. MovementLoopAddLocation(NPC, 573.02, -20.16, 328.83, 2, 35,"Action")
  46. MovementLoopAddLocation(NPC, 573.09, -20.2, 330.62, 2, 0)
  47. MovementLoopAddLocation(NPC, 575.17, -20.27, 325.06, 2, 0)
  48. MovementLoopAddLocation(NPC, 577.74, -20.2, 318.24, 2, 0)
  49. MovementLoopAddLocation(NPC, 579.66, -20.05, 313.17, 2, 0)
  50. MovementLoopAddLocation(NPC, 581.81, -19.9, 309.2, 2, 0)
  51. MovementLoopAddLocation(NPC, 586.5, -20.3, 302.78, 2, 1)
  52. MovementLoopAddLocation(NPC, 586.5, -20.3, 302.78, 2, 18,"Action")
  53. MovementLoopAddLocation(NPC, 596.6, -20.37, 291.81, 2, 0)
  54. MovementLoopAddLocation(NPC, 599.14, -20.18, 289.06, 2, 0)
  55. MovementLoopAddLocation(NPC, 605.01, -20.12, 285.85, 2, 0)
  56. MovementLoopAddLocation(NPC, 614.96, -20.03, 281.82, 2, 0)
  57. MovementLoopAddLocation(NPC, 624.55, -20.36, 280.32, 2, 0)
  58. MovementLoopAddLocation(NPC, 633.35, -20.27, 276.78, 2, 1)
  59. MovementLoopAddLocation(NPC, 633.35, -20.27, 276.78, 2, 35,"Action")
  60. MovementLoopAddLocation(NPC, 634.73, -20.31, 276.25, 2, 0)
  61. MovementLoopAddLocation(NPC, 630.75, -20.28, 277.94, 2, 0)
  62. MovementLoopAddLocation(NPC, 624.96, -20.37, 280.39, 2, 0)
  63. MovementLoopAddLocation(NPC, 620.85, -20.27, 280.41, 2, 0)
  64. MovementLoopAddLocation(NPC, 614.36, -20.03, 281.9, 2, 0)
  65. MovementLoopAddLocation(NPC, 607.92, -19.96, 283.72, 2, 0)
  66. MovementLoopAddLocation(NPC, 606.47, -20.03, 284.66, 2, 1)
  67. MovementLoopAddLocation(NPC, 606.47, -20.03, 284.66, 2, 18,"Action")
  68. MovementLoopAddLocation(NPC, 594.11, -20.42, 294.36, 2, 0)
  69. MovementLoopAddLocation(NPC, 587.61, -20.39, 301.92, 2, 0)
  70. MovementLoopAddLocation(NPC, 583.45, -19.97, 306.34, 2, 0)
  71. MovementLoopAddLocation(NPC, 578.45, -20.23, 317.51, 2, 1)
  72. MovementLoopAddLocation(NPC, 578.45, -20.23, 317.51, 2, 18,"Action")
  73. end
  74. function Action(NPC)
  75. local choice = MakeRandomInt(1, 4)
  76. if choice == 1 then
  77. PlayFlavor(NPC, "", "", "peer", 0, 0, Spawn)
  78. elseif choice == 2 then
  79. PlayFlavor(NPC, "", "", "listen", 0, 0, Spawn)
  80. elseif choice == 3 then
  81. PlayFlavor(NPC, "", "", "sniff", 0, 0, Spawn)
  82. elseif choice == 4 then
  83. PlayFlavor(NPC, "", "", "tapfoot", 0, 0, Spawn)
  84. end
  85. end
  86. function respawn(NPC)
  87. spawn(NPC)
  88. end