BarmaidViolet.lua 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. --[[
  2. Script Name : SpawnScripts/Graystone/BarmaidViolet.lua
  3. Script Purpose : Barmaid Violet <Provisioner>
  4. Script Author : Dorbin
  5. Script Date : 2022.03.12
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. dofile("SpawnScripts/Generic/GenericEcologyVoiceOvers.lua")
  9. function spawn(NPC)
  10. waypoints(NPC)
  11. end
  12. function hailed(NPC, Spawn)
  13. FaceTarget(NPC, Spawn)
  14. GenericEcologyHail(NPC, Spawn, faction)
  15. end
  16. function waypoints(NPC)
  17. MovementLoopAddLocation(NPC, 859.86, -20.06, -120.83, 2, 0)
  18. MovementLoopAddLocation(NPC, 862.64, -20.03, -120.39, 2, 0)
  19. MovementLoopAddLocation(NPC, 866.48, -20.06, -121.48, 2, 0)
  20. MovementLoopAddLocation(NPC, 869.34, -20.06, -120.83, 2, 1,"FaceTable2")
  21. MovementLoopAddLocation(NPC, 869.34, -20.06, -120.83, 2, math.random(10, 15),"FaceTable")
  22. MovementLoopAddLocation(NPC, 868.83, -20.06, -120.78, 2, 0)
  23. MovementLoopAddLocation(NPC, 875.04, -20.06, -119.68, 2, 0)
  24. MovementLoopAddLocation(NPC, 876.95, -20.06, -117.84, 2, 1)
  25. MovementLoopAddLocation(NPC, 876.95, -20.06, -117.84, 2, 10, "VioletWaitsCopper")
  26. MovementLoopAddLocation(NPC, 877.33, -20.06, -117.6, 2, 0)
  27. MovementLoopAddLocation(NPC, 877.89, -20.06, -119.84, 2, 0)
  28. MovementLoopAddLocation(NPC, 879.27, -20.06, -119.74, 2, 0)
  29. MovementLoopAddLocation(NPC, 883.46, -20.06, -119.11, 2, 1)
  30. MovementLoopAddLocation(NPC, 883.46, -20.06, -119.11, 2, 10,"FaceTable")
  31. MovementLoopAddLocation(NPC, 883.88, -20.06, -118.7, 2, 0)
  32. MovementLoopAddLocation(NPC, 876.2, -20.06, -119.36, 2, 0)
  33. MovementLoopAddLocation(NPC, 873.36, -20.06, -116.48, 2, 0)
  34. MovementLoopAddLocation(NPC, 868.51, -20.06, -117.08, 2, 0)
  35. MovementLoopAddLocation(NPC, 864.92, -20.06, -119.74, 2, 0)
  36. MovementLoopAddLocation(NPC, 859.3, -20.06, -119.94, 2, math.random(10, 15))
  37. MovementLoopAddLocation(NPC, 860.69, -20.06, -125.12, 2, math.random(10, 15))
  38. end
  39. function FaceTable2(NPC)
  40. SpawnSet(NPC, "heading", "178")
  41. end
  42. function FaceTable(NPC)
  43. choice = math.random(1,3)
  44. if choice == 1 then
  45. PlayFlavor(NPC, "","", "nod", 0, 0)
  46. elseif choice == 2 then
  47. PlayFlavor(NPC, "","", "hello", 0, 0)
  48. else
  49. PlayFlavor(NPC, "","", "no", 0, 0)
  50. end
  51. end
  52. function CopperEmotes(NPC)
  53. local Copper = GetSpawn(NPC, 2350038)
  54. if Copper ~= nil then
  55. choice = math.random(1,3)
  56. if choice == 1 then
  57. PlayFlavor(Copper, "","", "shrug", 0, 0)
  58. elseif choice == 2 then
  59. PlayFlavor(Copper, "","", "agree", 0, 0)
  60. else
  61. PlayFlavor(Copper, "","", "heckno", 0, 0)
  62. end
  63. end
  64. end
  65. function VioletWaitsCopper(NPC)
  66. local Copper = GetSpawn(NPC, 2350038)
  67. if Copper ~= nil then
  68. choice = math.random(1,3)
  69. if choice == 1 then
  70. PlayFlavor(NPC, "","", "tap", 0, 0)
  71. elseif choice == 2 then
  72. PlayFlavor(NPC, "","", "scold", 0, 0)
  73. else
  74. PlayFlavor(NPC, "","", "threaten", 0, 0)
  75. AddTimer(NPC, 2000, "CopperEmotes")
  76. end
  77. end
  78. end
  79. --[[ Parsed data w/o Voiceovers
  80. choice = math.random(1,4)
  81. if choice == 1 then
  82. PlayFlavor(NPC, "", "Please mind the plates, they're very hot.", "scold", 1689589577, 4560189, Spawn)
  83. elseif choice == 2 then
  84. PlayFlavor(NPC, "", "Tell me, do you prefer Halfling or Elven cuisine? I myself have a hard time deciding between the two.", "confused", 1689589577, 4560189, Spawn)
  85. elseif choice == 3 then
  86. PlayFlavor(NPC, "", "Welcome friend, welcome. I hope you brought your appetite with you!", "wink", 1689589577, 4560189, Spawn)
  87. elseif choice == 4 then
  88. PlayFlavor(NPC, "", "Fresh baubbleberry pie, come and get some while it's hot!", "beckon", 1689589577, 4560189, Spawn)
  89. else
  90. end
  91. --]]