9
3

BarmaidEstellaMuddyfoot.lua 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. --[[
  2. Script Name : SpawnScripts/TheBaubbleshire/BarmaidEstellaMuddyfoot.lua
  3. Script Purpose : Barmaid Estella Muddyfoot <Provisioner>
  4. Script Author : Dorbin
  5. Script Date : 2022.01.08
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. function spawn(NPC)
  9. SetPlayerProximityFunction(NPC, 6, "InRange", "LeaveRange")
  10. waypoints(NPC)
  11. end
  12. function respawn(NPC)
  13. spawn(NPC)
  14. end
  15. function InRange(NPC, Spawn)
  16. if GetFactionAmount(Spawn,11)<0 then
  17. PlayFlavor(NPC, "voiceover/english/halfling_eco_good_1/ft/service/baker/halfling_baker_service_good_1_notcitizen_gf_77caad95.mp3", "How dare you enter our city! I won't sell goods to perpetuate the tyranny of Freeport!", "frustrated", 3167737425, 870327311, Spawn, 0)
  18. end
  19. end
  20. function LeaveRange(NPC, Spawn)
  21. end
  22. function waypoints(NPC)
  23. MovementLoopAddLocation(NPC, 882.68, -18.31, -445.37, 1, math.random(8, 20))
  24. MovementLoopAddLocation(NPC, 881.69, -18.31, -444.24, 1, 0)
  25. MovementLoopAddLocation(NPC, 880.83, -18.31, -442.82, 1, 0)
  26. MovementLoopAddLocation(NPC, 881.84, -18.31, -441.04, 1, 0)
  27. MovementLoopAddLocation(NPC, 881.4, -18.31, -439.63, 1, 0)
  28. MovementLoopAddLocation(NPC, 880.29, -18.31, -439.28, 1, 0)
  29. MovementLoopAddLocation(NPC, 879.01, -18.31, -439.34, 1, math.random(8, 20))
  30. MovementLoopAddLocation(NPC, 880.51, -18.31, -438.76, 2, 0)
  31. MovementLoopAddLocation(NPC, 881.23, -18.31, -437.99, 1, math.random(8, 20))
  32. MovementLoopAddLocation(NPC, 881.44, -18.31, -439.47, 1, 0)
  33. MovementLoopAddLocation(NPC, 881.79, -18.31, -441.09, 1, 0)
  34. MovementLoopAddLocation(NPC, 883.93, -18.31, -441.43, 1, 0)
  35. MovementLoopAddLocation(NPC, 886.1, -18.31, -441.78, 1, 0)
  36. MovementLoopAddLocation(NPC, 887.61, -18.31, -441.62, 1, math.random(8, 20))
  37. MovementLoopAddLocation(NPC, 886.42, -18.31, -442.78, 1, 0)
  38. MovementLoopAddLocation(NPC, 883.58, -18.31, -445.54, 1, 0)
  39. end
  40. function hailed(NPC, Spawn)
  41. FaceTarget(NPC, Spawn)
  42. if GetFactionAmount(Spawn,11)<0 then
  43. PlayFlavor(NPC, "voiceover/english/halfling_eco_good_1/ft/service/baker/halfling_baker_service_good_1_notcitizen_gf_77caad95.mp3", "How dare you enter our city! I won't sell goods to perpetuate the tyranny of Freeport!", "frustrated", 3167737425, 870327311, Spawn, 0)
  44. else
  45. local choice = MakeRandomInt(1,3)
  46. if choice == 1 then
  47. PlayFlavor(NPC, "voiceover/english/halfling_eco_good_1/ft/service/baker/halfling_baker_service_good_1_hail_gf_9db280de.mp3", "I love the smell of fresh bread in the oven!", "sigh", 1048257184, 2248522628, Spawn)
  48. elseif choice == 2 then
  49. PlayFlavor(NPC, "voiceover/english/halfling_eco_good_1/ft/service/baker/halfling_baker_service_good_1_hail_gf_cca9cdef.mp3", "Welcome friend, welcome. I hope you brought your appetite with you!", "wink", 22116398, 594684199, Spawn)
  50. elseif choice == 3 then
  51. PlayFlavor(NPC, "voiceover/english/halfling_eco_good_1/ft/service/baker/halfling_baker_service_good_1_hail_gf_3d1ca473.mp3", "Tell me, do you prefer Halfling or Elven cuisine? I myself have a hard time deciding between the two.", "confused", 1646021457, 4149179615, Spawn)
  52. end
  53. end
  54. end