EnvoyTamiSwifthammer.lua 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  1. --[[
  2. Script Name : SpawnScripts/FrostfangSea/EnvoyTamiSwifthammer.lua
  3. Script Purpose : Envoy Tami Swifthammer
  4. Script Author : EmemJr
  5. Script Date : 2/16/2021
  6. Script Notes : WIP
  7. --]]
  8. local QUEST_1 = 4678 --Introduction to the Ravens
  9. local QUEST_2 = 4685 --Restocking the Cookie Jar
  10. local QUEST_3 = 4680 --Let The Spinning Wheel Spin
  11. local QUEST_4 = 4681 --Party Plates
  12. local QUEST_5 = 4684 --Rattled by Rats
  13. local QUEST_6 = 4679 --Fast Fabrication
  14. local QUEST_7 = 4686 --Storage Situation
  15. local QUEST_8 = 4683 --Premonitions of Disaster
  16. function spawn(NPC)
  17. ProvidesQuest (NPC,QUEST_1)
  18. ProvidesQuest (NPC,QUEST_2)
  19. ProvidesQuest (NPC,QUEST_3)
  20. ProvidesQuest (NPC,QUEST_4)
  21. ProvidesQuest (NPC,QUEST_5)
  22. ProvidesQuest (NPC,QUEST_6)
  23. ProvidesQuest (NPC,QUEST_7)
  24. ProvidesQuest (NPC,QUEST_8)
  25. end
  26. function respawn(NPC)
  27. spawn(NPC)
  28. end
  29. function hailed(NPC, Spawn)
  30. FaceTarget(NPC, Spawn)
  31. --local choice = math.random(1,2)
  32. --if choice == 1 then
  33. -- PlayFlavor(NPC, "", "Marr's blessings!", "", 0, 0, Spawn)
  34. --elseif choice == 2 then
  35. -- PlayFlavor(NPC, "", "Good day!", "", 1689589577, 4560189, Spawn)
  36. --end
  37. FaceTarget(NPC, Spawn)
  38. local conversation = CreateConversation()
  39. if not HasQuest(Spawn,QUEST_1) and not HasCompletedQuest(Spawn, QUEST_1)then
  40. AddConversationOption(conversation, "Why yes, I am.", "Option1")
  41. AddConversationOption(conversation, "Not right now, thank you.")
  42. StartConversation(conversation, NPC, Spawn, "Greetings, friend! You look like someone who's picked up a few crafting skills here and there. Are you looking for some work?")
  43. elseif HasQuest(Spawn,QUEST_1) then
  44. if not HasCompletedQuest(Spawn, QUEST_1) then
  45. AddConversationOption(conversation, "I haven't actually delevered it yet, but I'll be right back when I have.")
  46. StartConversation(conversation, NPC, Spawn, "Welcome back, er, " .. GetName(Spawn) .. ", was it? I do appreciate you delivering that letter for me, it's given me time to get my tasks all sorted out and catch up with my local contacts.")
  47. end
  48. end
  49. -- AddConversationOption(conversation, "You're welcome, I trust you're all settled in now.", "Option2")
  50. -- StartConversation(conversation, NPC, Spawn, "Welcome back, er, " .. GetName(Spawn) .. ", was it? I do appreciate you delivering that letter for me, it's given me time to get my tasks all sorted out and catch up with my local contacts.")
  51. -- AddConversationOption(conversation, "Oh? And how will you do that?", "Option3")
  52. -- StartConversation(conversation, NPC, Spawn, "I'm a bit more organized now, and I've got an idea of some of the ways we could assist. But first of all, I'm in a new place, and it's time to get to know people!")
  53. -- AddConversationOption(conversation, "I did, here you go.", "Option4")
  54. -- StartConversation(conversation, NPC, Spawn, "Welcome back again! The cookies are all baked, did you find me some nice fruits and berries for the next batch?")
  55. -- AddConversationOption(conversation, "All right.")
  56. -- StartConversation(conversation, NPC, Spawn, "Thank you for your help! Now let's get to work. You take a batch of cookies and I'll take another batch, and we'll see what's on people's minds around here.")
  57. -- AddConversationOption(conversation, "I discovered several people had some concerns we could help with.", "Option5")
  58. -- StartConversation(conversation, NPC, Spawn, "So, what news did you gather around town?")
  59. -- AddConversationOption(conversation, "I seem to have lost the recipe you gave me.", "Option6")
  60. -- AddConversationOption(conversation, "No problems at all, I replaced them.", "Option7")
  61. -- StartConversation(conversation, NPC, Spawn, "How did you manage with the spinning wheels?")
  62. -- AddConversationOption(conversation, "Yes, all the extra plates they had in storage were broken somehow, and now there aren't enough for the upcoming banquet.", "Option8")
  63. -- StartConversation(conversation, NPC, Spawn, "Thank you again for the help, the new spinning wheels should get the work back on track right away. Now, we should address some of the other problems we discovered around town. I heard something about a problem at the banquet hall?")
  64. end
  65. function Option1(NPC, Spawn)
  66. FaceTarget(NPC, Spawn)
  67. local conversation = CreateConversation()
  68. AddConversationOption(conversation, "First of all, who are you?", "Option9")
  69. StartConversation(conversation, NPC, Spawn, "Oh, I hoped that would be your answer! There's a lot to do and extra hands make light the work, as they say.")
  70. end
  71. function Option9(NPC, Spawn)
  72. FaceTarget(NPC, Spawn)
  73. local conversation = CreateConversation()
  74. AddConversationOption(conversation, "And I am " .. GetName(Spawn) .. ", it's a pleasure to meet you. So, what needs doing?", "Option10")
  75. StartConversation(conversation, NPC, Spawn, "Oh! My apologies. I'm Tami, from the Ironforge Exchange in Qeynos. I'm here to coordinate the efforts of crafters from Qeynos and our allied cities who wish to help the settlement of New Halas.")
  76. end
  77. function Option10(NPC, Spawn)
  78. FaceTarget(NPC, Spawn)
  79. local conversation = CreateConversation()
  80. OfferQuest(NPC,Spawn,QUEST_1)
  81. AddConversationOption(conversation, "Very well, I'll be right back.")
  82. StartConversation(conversation, NPC, Spawn, "Well, I've only just got here myself, so I'm still getting sorted out. You could do me a big favor if you'd take this letter of introduction down to the local tradeskill faction for me. They're called the Ravens of the North, and I understand you can find them down through the tunnel to the east.")
  83. end
  84. function Option2(NPC, Spawn)
  85. FaceTarget(NPC, Spawn)
  86. local conversation = CreateConversation()
  87. AddConversationOption(conversation, "Oh? And how will you do that?", "Option11")
  88. StartConversation(conversation, NPC, Spawn, "I'm a bit more organized now, and I've got an idea of some of the ways we could assist. But first of all, I'm in a new place, and it's time to get to know people!")
  89. end
  90. function Option11(NPC, Spawn)
  91. FaceTarget(NPC, Spawn)
  92. local conversation = CreateConversation()
  93. AddConversationOption(conversation, "Cookies are not a worthy cause, sorry.")
  94. StartConversation(conversation, NPC, Spawn, "Why cookies, of course! Everybody loves cookies. And what better excuse to stop by and chat? Perhaps you could gather a few edibles to replenish my supplies, while I bake up a fresh batch of cookies?")
  95. end
  96. function Option3(NPC, Spawn)
  97. FaceTarget(NPC, Spawn)
  98. local conversation = CreateConversation()
  99. AddConversationOption(conversation, "I suppose I can help, but I trust there will be payment other than cookies.")
  100. AddConversationOption(conversation, "If there are cookies involved, say no more!")
  101. StartConversation(conversation, NPC, Spawn, "Why cookies, of course! Everybody loves cookies. And what better excuse to stop by and chat? Perhaps you could gather a few edibles to replenish my supplies, while I bake up a fresh batch of cookies?")
  102. end
  103. function Option4(NPC, Spawn)
  104. FaceTarget(NPC, Spawn)
  105. local conversation = CreateConversation()
  106. AddConversationOption(conversation, "Not right now.")
  107. StartConversation(conversation, NPC, Spawn, "Thank you for your help! Now let's get to work. You take a batch of cookies and I'll take another batch, and we'll see what's on people's minds around here.")
  108. end
  109. function Option5(NPC, Spawn)
  110. FaceTarget(NPC, Spawn)
  111. local conversation = CreateConversation()
  112. AddConversationOption(conversation, "Nobody saw how that happened?", "Option12")
  113. StartConversation(conversation, NPC, Spawn, "I learned a lot from chatting to people, as you did. And when I returned here, I noticed that the spinning wheels had broken, too!")
  114. end
  115. function Option12(NPC, Spawn)
  116. FaceTarget(NPC, Spawn)
  117. local conversation = CreateConversation()
  118. AddConversationOption(conversation, "I can make new spinning wheels, if you give me instructions.")
  119. StartConversation(conversation, NPC, Spawn, "No, apparently it happened at a moment when everybody had stepped out of the building. Very suspicious. But, that's something that you could help fix, if you are willing.")
  120. end
  121. function Option6(NPC, Spawn)
  122. FaceTarget(NPC, Spawn)
  123. local conversation = CreateConversation()
  124. AddConversationOption(conversation, "I'm very sorry.")
  125. StartConversation(conversation, NPC, Spawn, "Here you are again. Please don't lose this one!")
  126. end
  127. function Option7(NPC, Spawn)
  128. FaceTarget(NPC, Spawn)
  129. local conversation = CreateConversation()
  130. AddConversationOption(conversation, "Yes, all the extra plates they had in storage were broken somehow, and now there aren't enough for the upcoming banquet.", "Option13")
  131. StartConversation(conversation, NPC, Spawn, "Thank you again for the help, the new spinning wheels should get the work back on track right away. Now, we should address some of the other problems we discovered around town. I heard something about a problem at the banquet hall?")
  132. end
  133. function Option13(NPC, Spawn)
  134. FaceTarget(NPC, Spawn)
  135. local conversation = CreateConversation()
  136. AddConversationOption(conversation, "I'm afraid you're going to get started on your own, I don't have time right now.")
  137. StartConversation(conversation, NPC, Spawn, "That's a problem indeed! But I'm sure we can set it right. Take a copy of my recipe here, and if you make some plates and I make some plates, I'm sure we'll have enough in no time.")
  138. end
  139. function Option8(NPC, Spawn)
  140. FaceTarget(NPC, Spawn)
  141. local conversation = CreateConversation()
  142. AddConversationOption(conversation, "I'll get right to work.")
  143. StartConversation(conversation, NPC, Spawn, "That's a problem indeed! But I'm sure we can set it right. Take a copy of my recipe here, and if you make some plates and I make some plates, I'm sure we'll have enough in no time.")
  144. end