9
3

BanaShez.lua 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. --[[
  2. Script Name : SpawnScripts/Nettleville/BanaShez.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.06.22 01:06:16
  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,6)
  23. if choice == 1 then
  24. PlayFlavor(NPC, "voiceover/english/kerran_eco_evil_1/ft/kerran/kerran_eco_evil_1_hail_gf_164ffd98.mp3", "I can purr my way out of anything.", "wink", 4263608089, 504552247, Spawn)
  25. elseif choice == 2 then
  26. PlayFlavor(NPC, "voiceover/english/kerran_eco_evil_1/ft/kerran/kerran_eco_evil_1_hail_gf_8a065b90.mp3", "I am a kindly master just so long you remember your place.", "blush", 2082721768, 1564608519, Spawn)
  27. elseif choice == 3 then
  28. PlayFlavor(NPC, "voiceover/english/kerran_eco_evil_1/ft/kerran/kerran_eco_evil_1_hail_gf_5beacd8e.mp3", "Deep down we're all driven by urges. I just have the courage to live by them!", "agree", 1853094076, 969912178, Spawn)
  29. elseif choice == 4 then
  30. PlayFlavor(NPC, "voiceover/english/kerran_eco_evil_1/ft/kerran/kerran_eco_evil_1_hail_gf_3fe55b38.mp3", "Why, don't I seem to be the popular one today?", "ponder", 946610860, 3180537294, Spawn)
  31. elseif choice == 5 then
  32. PlayFlavor(NPC, "voiceover/english/kerran_eco_evil_1/ft/kerran/kerran_eco_evil_1_hail_gf_895b5e07.mp3", "Everything has a price. What's yours?", "nod", 1824945885, 3397633823, Spawn)
  33. elseif choice == 6 then
  34. PlayFlavor(NPC, "voiceover/english/kerran_eco_evil_1/ft/kerran/kerran_eco_evil_1_hail_gf_996fcd0c.mp3", "I wouldn't be caught dead wearing something like that!", "no", 1201795983, 50062692, Spawn)
  35. end
  36. end
  37. function respawn(NPC)
  38. spawn(NPC)
  39. end
  40. function waypoints(NPC)
  41. MovementLoopAddLocation(NPC, 585.73, -20.37, 317.45, 2, 1)
  42. MovementLoopAddLocation(NPC, 585.73, -20.37, 317.45, 2, 35,"Action")
  43. MovementLoopAddLocation(NPC, 585.73, -20.37, 317.45, 2, 35,"Action")
  44. MovementLoopAddLocation(NPC, 584.45, -20.41, 318.08, 2, 0)
  45. MovementLoopAddLocation(NPC, 583.27, -20.38, 316.59, 2, 0)
  46. MovementLoopAddLocation(NPC, 583.91, -20.31, 313.96, 2, 0)
  47. MovementLoopAddLocation(NPC, 586.34, -20.29, 310.43, 2, 0)
  48. MovementLoopAddLocation(NPC, 589.79, -20.38, 305.61, 2, 18,"Action")
  49. MovementLoopAddLocation(NPC, 595.86, -20.42, 297.43, 2, 0)
  50. MovementLoopAddLocation(NPC, 603.38, -20.33, 291.06, 2, 0)
  51. MovementLoopAddLocation(NPC, 612.22, -20.28, 288.8, 2, 1)
  52. MovementLoopAddLocation(NPC, 612.22, -20.28, 288.8, 2, 18,"Action")
  53. MovementLoopAddLocation(NPC, 619.35, -20.34, 284.92, 2, 1)
  54. MovementLoopAddLocation(NPC, 619.35, -20.34, 284.92, 2, 45,"Action")
  55. MovementLoopAddLocation(NPC, 606.72, -20.42, 289.69, 2, 0)
  56. MovementLoopAddLocation(NPC, 602.78, -20.3, 291.44, 2, 0)
  57. MovementLoopAddLocation(NPC, 599.03, -20.38, 294.61, 2, 1)
  58. MovementLoopAddLocation(NPC, 599.03, -20.38, 294.61, 2, 18,"Action")
  59. MovementLoopAddLocation(NPC, 590.13, -20.35, 305.84, 2, 1)
  60. MovementLoopAddLocation(NPC, 590.13, -20.35, 305.84, 2, 18,"Action")
  61. MovementLoopAddLocation(NPC, 583.97, -20.35, 312.16, 2, 0)
  62. MovementLoopAddLocation(NPC, 583.26, -20.33, 314.87, 2, 0)
  63. end
  64. function Action(NPC)
  65. local choice = MakeRandomInt(1, 4)
  66. if choice == 1 then
  67. PlayFlavor(NPC, "", "", "peer", 0, 0, Spawn)
  68. elseif choice == 2 then
  69. PlayFlavor(NPC, "", "", "listen", 0, 0, Spawn)
  70. elseif choice == 3 then
  71. PlayFlavor(NPC, "", "", "sniff", 0, 0, Spawn)
  72. elseif choice == 4 then
  73. PlayFlavor(NPC, "", "", "tapfoot", 0, 0, Spawn)
  74. end
  75. end