9
3

TapsterBregun.lua 3.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. --[[
  2. Script Name : SpawnScripts/TheBaubbleshire/TapsterBregun.lua
  3. Script Purpose : Tapster Bregun <Bartender>
  4. Script Author : Dorbin
  5. Script Date : 2022.01.09
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. Notes: Updated Dialog Module - 2022.08.21 Dorbin
  8. --]]
  9. require "SpawnScripts/Generic/DialogModule"
  10. local YolaPicnic = 5442
  11. function spawn(NPC)
  12. SetPlayerProximityFunction(NPC, 4, "InRange", "LeaveRange")
  13. ProvidesQuest(NPC, YolaPicnic)
  14. end
  15. function respawn(NPC)
  16. spawn(NPC)
  17. end
  18. function InRange(NPC, Spawn)
  19. if not HasCompletedQuest(Spawn, YolaPicnic) and not HasQuest(Spawn, YolaPicnic) then
  20. FaceTarget(NPC, Spawn)
  21. PlayFlavor(NPC, "voiceover/english/tapster_bregun/qey_village06/100_tapster_bregun_multhail2_ccbdd67e.mp3", "Welcome to the Deepmug Tavern! I'm Bregun. Talk to me if you wanna lift a pint! Now, what are ya drinkin'?", "beckon", 2461588719, 573667497, Spawn)
  22. else
  23. FaceTarget(NPC, Spawn)
  24. PlayFlavor(NPC, "voiceover/english/tapster_bregun/qey_village06/100_tapster_bregun_bregun_first_1ee27a85.mp3", "Greetings, traveler. Is there something I can get ya today?", "hello", 3137139088, 2537693501, Spawn)
  25. end
  26. end
  27. function LeaveRange(NPC, Spawn)
  28. end
  29. function hailed(NPC, Spawn)
  30. if GetFactionAmount(Spawn,11) <0 then
  31. FaceTarget(NPC, Spawn)
  32. PlayFlavor(NPC, "", "", "shakefist", 0, 0, Spawn)
  33. else
  34. FaceTarget(NPC, Spawn)
  35. Dialog.New(NPC, Spawn)
  36. Dialog.AddDialog("Welcome to the Deepmug Tavern! I'm Bregun, and I'm the guy you'll be wanting to talk to if you feel the need to lift a pint! What'll ya be havin'?")
  37. Dialog.AddVoiceover("voiceover/english/tapster_bregun/qey_village06/tapsterbregun000.mp3", 3026913164, 1235641856)
  38. PlayFlavor(NPC, "", "", "hello", 0, 0, Spawn)
  39. Dialog.AddOption("Taverns are usually good places to find work. I need work if you know of any.", "DoorDash")
  40. Dialog.AddOptionRequirement(REQ_QUEST_DOESNT_HAVE_QUEST, YolaPicnic)
  41. Dialog.AddOptionRequirement(REQ_QUEST_NOT_HAS_COMPLETED_QUEST, YolaPicnic)
  42. Dialog.AddOption("I've delievered the picnic basket to Yola as requested.","DoorDashDone")
  43. Dialog.AddOptionRequirement(REQ_QUEST_ON_STEP, YolaPicnic , 2)
  44. Dialog.AddOption("I'm just here to enjoy the tavern. Thanks!")
  45. Dialog.Start()
  46. end
  47. end
  48. function DoorDash(NPC, Spawn)
  49. FaceTarget(NPC, Spawn)
  50. Dialog.New(NPC, Spawn)
  51. Dialog.AddDialog("Is that so? Then why don't you do me a favor? Those look like some nimble feet ya got. You can deliver a basket of food for me.")
  52. Dialog.AddVoiceover("voiceover/english/tapster_bregun/qey_village06/tapsterbregun001.mp3",1259014993, 3905164382)
  53. PlayFlavor(NPC, "", "", "ponder", 0, 0, Spawn)
  54. Dialog.AddOption("Delievered where?", "DoorDashQuest")
  55. Dialog.AddOption("I was hoping for something more... exciting. I'll pass.")
  56. Dialog.Start()
  57. end
  58. function DoorDashQuest (NPC, Spawn)
  59. FaceTarget(NPC, Spawn)
  60. OfferQuest(NPC, Spawn, YolaPicnic)
  61. end
  62. function DoorDashDone(NPC, Spawn)
  63. SetStepComplete(Spawn, YolaPicnic, 2)
  64. FaceTarget(NPC, Spawn)
  65. Dialog.New(NPC, Spawn)
  66. Dialog.AddDialog("So ya are! I hope she enjoys her lunch. I gave her my best breads and cheeses! Mmmm ... makes me hungry thinkin' about it! Here are the coins I promised.")
  67. Dialog.AddVoiceover("voiceover/english/tapster_bregun/qey_village06/tapsterbregun003.mp3",1121129450,2689540838)
  68. PlayFlavor(NPC, "", "", "thanks", 0, 0, Spawn)
  69. Dialog.AddOption("Thanks, Bregun")
  70. Dialog.Start()
  71. end