BarmaidEstellaMuddyfoot.lua 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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, 10, "InRange", "LeaveRange")
  10. waypoints(NPC)
  11. end
  12. function respawn(NPC)
  13. spawn(NPC)
  14. end
  15. function InRange(NPC, Spawn)
  16. end
  17. function LeaveRange(NPC, Spawn)
  18. end
  19. function waypoints(NPC)
  20. MovementLoopAddLocation(NPC, 882.68, -18.31, -445.37, 1, math.random(8, 15))
  21. MovementLoopAddLocation(NPC, 881.69, -18.31, -444.24, 1, 0)
  22. MovementLoopAddLocation(NPC, 880.83, -18.31, -442.82, 1, 0)
  23. MovementLoopAddLocation(NPC, 881.84, -18.31, -441.04, 1, 0)
  24. MovementLoopAddLocation(NPC, 881.4, -18.31, -439.63, 1, 0)
  25. MovementLoopAddLocation(NPC, 880.29, -18.31, -439.28, 1, 0)
  26. MovementLoopAddLocation(NPC, 879.01, -18.31, -439.34, 1, math.random(8, 15))
  27. MovementLoopAddLocation(NPC, 880.51, -18.31, -438.76, 2, 0)
  28. MovementLoopAddLocation(NPC, 881.23, -18.31, -437.99, 1, math.random(8, 15))
  29. MovementLoopAddLocation(NPC, 881.44, -18.31, -439.47, 1, 0)
  30. MovementLoopAddLocation(NPC, 881.79, -18.31, -441.09, 1, 0)
  31. MovementLoopAddLocation(NPC, 883.93, -18.31, -441.43, 1, 0)
  32. MovementLoopAddLocation(NPC, 886.1, -18.31, -441.78, 1, 0)
  33. MovementLoopAddLocation(NPC, 887.61, -18.31, -441.62, 1, math.random(8, 15))
  34. MovementLoopAddLocation(NPC, 886.42, -18.31, -442.78, 1, 0)
  35. MovementLoopAddLocation(NPC, 883.58, -18.31, -445.54, 1, 0)
  36. end
  37. function hailed(NPC, Spawn)
  38. FaceTarget(NPC, Spawn)
  39. local choice = math.random(1,3)
  40. --if choice == then (This is for Freeport/Evil aligned)
  41. --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)
  42. if choice == 1 then
  43. 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)
  44. elseif choice == 2 then
  45. 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)
  46. elseif choice == 3 then
  47. 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)
  48. else
  49. end
  50. end