Bermo.lua 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. --[[
  2. Script Name : SpawnScripts/Starcrest/Bermo.lua
  3. Script Purpose : Bermo <Bartender>
  4. Script Author : John Adams
  5. Script Date : 2008.09.23
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. -- Quest ID's
  9. local GATHERING_GLOWMYST = 244 -- was 36
  10. function spawn(NPC)
  11. ProvidesQuest(NPC, GATHERING_GLOWMYST)
  12. end
  13. function respawn(NPC)
  14. spawn(NPC)
  15. end
  16. function targeted(NPC, Spawn)
  17. hailed(NPC, Spawn)
  18. end
  19. function hailed(NPC, Spawn)
  20. FaceTarget(NPC, Spawn)
  21. conversation = CreateConversation()
  22. if HasCompletedQuest(Spawn, GATHERING_GLOWMYST) then
  23. AllMannerOfFermented(NPC, Spawn)
  24. elseif HasQuest(Spawn, GATHERING_GLOWMYST) then
  25. if GetQuestStep(Spawn, GATHERING_GLOWMYST) == 2 then
  26. AllMannerOfFermentedDone(NPC, Spawn)
  27. else
  28. AllMannerOfFermented(NPC, Spawn)
  29. end
  30. else
  31. AllMannerOfFermentedNoQuest(NPC, Spawn)
  32. end
  33. end
  34. ---------------------------------------------------------------------------------------------------------------------
  35. -- QUEST 1
  36. ---------------------------------------------------------------------------------------------------------------------
  37. function AllMannerOfFermentedDone(NPC, Spawn)
  38. FaceTarget(NPC, Spawn)
  39. conversation = CreateConversation()
  40. PlayFlavor(NPC, "voiceover/english/bartender_bermo/qey_village02/bartenderbermo.mp3", "", "", 861640330, 2606733244, Spawn)
  41. AddConversationOption(conversation, "I've brought back the glowmyst juice you needed!", "GotJuice")
  42. AddConversationOption(conversation, "No thanks.")
  43. StartConversation(conversation, NPC, Spawn, "All manner of fermented beverages available here, all with my special Glowmyst juice added!")
  44. end
  45. function AllMannerOfFermentedNoQuest(NPC, Spawn)
  46. FaceTarget(NPC, Spawn)
  47. conversation = CreateConversation()
  48. PlayFlavor(NPC, "voiceover/english/bartender_bermo/qey_village02/bartenderbermo.mp3", "", "", 861640330, 2606733244, Spawn)
  49. AddConversationOption(conversation, "Glowmyst juice? What's that? ", "dlg_15_1")
  50. AddConversationOption(conversation, "No thanks.")
  51. StartConversation(conversation, NPC, Spawn, "All manner of fermented beverages available here, all with my special Glowmyst juice added!")
  52. end
  53. function AllMannerOfFermented(NPC, Spawn)
  54. FaceTarget(NPC, Spawn)
  55. conversation = CreateConversation()
  56. PlayFlavor(NPC, "voiceover/english/bartender_bermo/qey_village02/bartenderbermo.mp3", "", "", 861640330, 2606733244, Spawn)
  57. AddConversationOption(conversation, "No thanks.")
  58. StartConversation(conversation, NPC, Spawn, "All manner of fermented beverages available here, all with my special Glowmyst juice added!")
  59. end
  60. function dlg_15_1(NPC, Spawn)
  61. FaceTarget(NPC, Spawn)
  62. conversation = CreateConversation()
  63. PlayFlavor(NPC, "voiceover/english/bartender_bermo/qey_village02/bartenderbermo000.mp3", "", "", 2271463066, 2768575441, Spawn)
  64. AddConversationOption(conversation, "Sure, why not?", "dlg_15_2")
  65. AddConversationOption(conversation, "I don't think I'm cut out for that.")
  66. StartConversation(conversation, NPC, Spawn, "It's a special juice I squeeze from the glowmyst beetles and I'm running short on the stuff; my customers love it. Hey, you're a stout one, would you mind squeezing me some?")
  67. end
  68. function dlg_15_2(NPC, Spawn)
  69. FaceTarget(NPC, Spawn)
  70. conversation = CreateConversation()
  71. PlayFlavor(NPC, "voiceover/english/bartender_bermo/qey_village02/bartenderbermo001.mp3", "", "", 1349632986, 1200312116, Spawn)
  72. AddConversationOption(conversation, "I'll get you some.", "OfferQuest1")
  73. StartConversation(conversation, NPC, Spawn, "You must go to the Oakymyst forest and harvest the beetles. I'll need at least a handful of the beetles -- their juice doesn't add to or take away from the flavor of my drinks, but it gives them a slight, radiant glow.")
  74. end
  75. function GotJuice(NPC, Spawn)
  76. SetStepComplete(Spawn, GATHERING_GLOWMYST, 2)
  77. FaceTarget(NPC, Spawn)
  78. conversation = CreateConversation()
  79. AddConversationOption(conversation, "Thanks Bermo!")
  80. StartConversation(conversation, NPC, Spawn, "Great! This will last at least a week! If you wait just a minute...Ahh, here we are! Take some money for your troubles. I insist!")
  81. end
  82. function OfferQuest1(NPC, Spawn)
  83. OfferQuest(NPC, Spawn, GATHERING_GLOWMYST)
  84. end