Raghunatha.lua 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197
  1. --[[
  2. Script Name : SpawnScripts/ButcherblockMountains/Raghunatha.lua
  3. Script Purpose : Raghunatha <Emissary of Gorowyn>
  4. Script Author : jakejp
  5. Script Date : 2018.06.04
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. local SarnakSympathizerPart1 = 274
  9. function spawn(NPC)
  10. ProvidesQuest(NPC, SarnakSympathizerPart1)
  11. end
  12. function respawn(NPC)
  13. spawn(NPC)
  14. end
  15. function hailed(NPC, Spawn)
  16. FaceTarget(NPC, Spawn)
  17. conversation = CreateConversation()
  18. if HasCompletedQuest(Spawn, SarnakSympathizerPart1) == false and HasQuest(Spawn, SarnakSympathizerPart1) == false and CanReceiveQuest(Spawn, SarnakSympathizerPart1) == true then
  19. PlayFlavor(NPC, "raghuntha/_exp03/exp03_rgn_butcherblock/sarnak_sympathizer/raghunatha/raghunatha001.mp3", "", "", 62910123, 2692407233, Spawn)
  20. AddConversationOption(conversation, "Indeed, I was wondering. Care to explain?", "dlg_1_1")
  21. AddConversationOption(conversation, "Not at all, actually.")
  22. StartConversation(conversation, NPC, Spawn, "Greetings, stranger. I'm sure you're wondering what a sarnak like myself is doing all the way here in the Butcherblock Mountains.")
  23. elseif GetQuestStep(Spawn, SarnakSympathizerPart1) == 1 then
  24. PlayFlavor(NPC, "", "Please return to me once you've completed all the Irontoe Dwarf Tasks", "thanks", 1689589577, 4560189, Spawn)
  25. elseif HasCompletedQuest(Spawn, SarnakSympathizerPart2) == true then
  26. PlayFlavor(NPC, "", "Thanks again for all your help!", "thanks", 1689589577, 4560189, Spawn)
  27. else
  28. PlayFlavor(NPC, "raghuntha/_exp03/exp03_rgn_butcherblock/sarnak_sympathizer/raghunatha/raghunatha001.mp3", "", "", 62910123, 2692407233, Spawn)
  29. end
  30. if convo==6 then
  31. PlayFlavor(NPC, "raghuntha/_exp03/exp03_rgn_butcherblock/sarnak_sympathizer/raghunatha/raghunatha009.mp3", "", "", 3098514065, 2686440714, Spawn)
  32. AddConversationOption(conversation, "I'm just glad I could help.", "dlg_6_1")
  33. StartConversation(conversation, NPC, Spawn, "Friend, it's so very good to see you again. I've spoken with all the dwarves on the list I gave you. They've all said very kind things about your dedication to the tasks they've given you.")
  34. end
  35. end
  36. function dlg_1_1(NPC, Spawn)
  37. FaceTarget(NPC, Spawn)
  38. conversation = CreateConversation()
  39. PlayFlavor(NPC, "raghuntha/_exp03/exp03_rgn_butcherblock/sarnak_sympathizer/raghunatha/raghunatha002.mp3", "", "", 1071485609, 2454621762, Spawn)
  40. AddConversationOption(conversation, "Were the Haoaerans successful?", "dlg_1_2")
  41. StartConversation(conversation, NPC, Spawn, "A small delegation of Gorwynian citizens have traveled across the Timorous Deep to enlist the help of the dwarves of Butcherblock and Kaladim. Our first concern was that the blasted Haoaerans would rouse the Kragploom aviaks into action and cause them to join their cause.")
  42. end
  43. function dlg_1_2(NPC, Spawn)
  44. FaceTarget(NPC, Spawn)
  45. conversation = CreateConversation()
  46. PlayFlavor(NPC, "raghuntha/_exp03/exp03_rgn_butcherblock/sarnak_sympathizer/raghunatha/raghunatha003.mp3", "", "", 3690188667, 1562372666, Spawn)
  47. AddConversationOption(conversation, "Are the dwarves unwilling to help at all?", "dlg_1_3")
  48. StartConversation(conversation, NPC, Spawn, "So far, no. Our allies have prevented the two aviak tribes from conspiring with one another, though convincing the dwarves to assist us has proved more difficult than we originally anticipated.")
  49. end
  50. function dlg_1_3(NPC, Spawn)
  51. FaceTarget(NPC, Spawn)
  52. conversation = CreateConversation()
  53. PlayFlavor(NPC, "raghuntha/_exp03/exp03_rgn_butcherblock/sarnak_sympathizer/raghunatha/raghunatha004.mp3", "", "", 833410768, 1027249809, Spawn)
  54. AddConversationOption(conversation, "I'll help if I can. What's the problem?", "dlg_1_4")
  55. AddConversationOption(conversation, "Ah, good luck then!")
  56. StartConversation(conversation, NPC, Spawn, "Not exactly. The dwarves here are actually sympathetic to our plight. Afterall, they know firsthand what it's like to have an enemy encroach upon your ancestral lands.")
  57. end
  58. function dlg_1_4(NPC, Spawn)
  59. FaceTarget(NPC, Spawn)
  60. conversation = CreateConversation()
  61. PlayFlavor(NPC, "raghuntha/_exp03/exp03_rgn_butcherblock/sarnak_sympathizer/raghunatha/raghunatha005.mp3", "", "", 518757181, 1757436789, Spawn)
  62. AddConversationOption(conversation, "I can. Is there anything I can do to help?", "dlg_1_5")
  63. AddConversationOption(conversation, "Sorry to hear that. Well, I need to leave. Good-bye!")
  64. StartConversation(conversation, NPC, Spawn, "Simply put, it is a matter of resources. The dwarves here in this outpost are an extremely busy lot. As much as they would like to assist us, they need to take care of their own problems first. A most frustrating dilemma for our cause, I'm sure you can imagine.")
  65. end
  66. function dlg_1_5(NPC, Spawn)
  67. FaceTarget(NPC, Spawn)
  68. conversation = CreateConversation()
  69. PlayFlavor(NPC, "raghuntha/_exp03/exp03_rgn_butcherblock/sarnak_sympathizer/raghunatha/raghunatha006.mp3", "", "", 1066732182, 1623424378, Spawn)
  70. AddConversationOption(conversation, "Yes, I will help.", "GiveSarnakSympathizerPart1")
  71. StartConversation(conversation, NPC, Spawn, "You would be willing to assist us? Marvelous! Yes, please, I've taken it upon myself to assist the dwarves in their own problems in hope that with enough assistance, they would be able to return the favor. Would you be willing to speak with several of the dwarves around these lands, and help them in their duties?")
  72. end
  73. function dlg_1_12(NPC, Spawn)
  74. FaceTarget(NPC, Spawn)
  75. conversation = CreateConversation()
  76. PlayFlavor(NPC, "raghuntha/_exp03/exp03_rgn_butcherblock/sarnak_sympathizer/raghunatha/raghunatha007.mp3", "", "", 3396264823, 906309207, Spawn)
  77. AddConversationOption(conversation, "I'll begin at once!", "dlg_1_13")
  78. StartConversation(conversation, NPC, Spawn, "Thank you, friend, I'll do my best to make sure you're rewarded kindly. Now, let me write down the names of all the dwarves you'll need to speak with. Complete their tasks and then return to me. Time is of the essence, and the Haoaeran's attacks grow stronger every day.")
  79. end
  80. function dlg_6_1(NPC, Spawn)
  81. FaceTarget(NPC, Spawn)
  82. conversation = CreateConversation()
  83. PlayFlavor(NPC, "raghuntha/_exp03/exp03_rgn_butcherblock/sarnak_sympathizer/raghunatha/raghunatha010.mp3", "", "", 3327757984, 2621465746, Spawn)
  84. AddConversationOption(conversation, "Good to hear. Good-bye, Raghuntha.", "dlg_6_2")
  85. StartConversation(conversation, NPC, Spawn, "Indeed, you've helped both our causes tremendously. I'm happy to add that just this morning the dwarves here have agreed to lend both military and engineering support back to Gorowyn so we can finally gain the upper hand in our fight against the Haoaerans and drive them back whence they came!")
  86. end
  87. function dlg_10_1(NPC, Spawn)
  88. FaceTarget(NPC, Spawn)
  89. conversation = CreateConversation()
  90. PlayFlavor(NPC, "raghuntha/_exp03/exp03_rgn_butcherblock/sarnak_sympathizer/raghunatha/raghunatha002.mp3", "", "", 1071485609, 2454621762, Spawn)
  91. AddConversationOption(conversation, "Were the Haoaerans successful?", "dlg_10_2")
  92. StartConversation(conversation, NPC, Spawn, "A small delegation of Gorwynian citizens have traveled across the Timorous Deep to enlist the help of the dwarves of Butcherblock and Kaladim. Our first concern was that the blasted Haoaerans would rouse the Kragploom aviaks into action and cause them to join their cause.")
  93. end
  94. function dlg_10_2(NPC, Spawn)
  95. FaceTarget(NPC, Spawn)
  96. conversation = CreateConversation()
  97. PlayFlavor(NPC, "raghuntha/_exp03/exp03_rgn_butcherblock/sarnak_sympathizer/raghunatha/raghunatha003.mp3", "", "", 3690188667, 1562372666, Spawn)
  98. AddConversationOption(conversation, "Are the dwarves unwilling to help at all?", "dlg_10_3")
  99. StartConversation(conversation, NPC, Spawn, "So far, no. Our allies have prevented the two aviak tribes from conspiring with one another, though convincing the dwarves to assist us has proved more difficult than we originally anticipated.")
  100. end
  101. function dlg_10_3(NPC, Spawn)
  102. FaceTarget(NPC, Spawn)
  103. conversation = CreateConversation()
  104. PlayFlavor(NPC, "raghuntha/_exp03/exp03_rgn_butcherblock/sarnak_sympathizer/raghunatha/raghunatha004.mp3", "", "", 833410768, 1027249809, Spawn)
  105. AddConversationOption(conversation, "Then what's the problem?", "dlg_10_4")
  106. StartConversation(conversation, NPC, Spawn, "Not exactly. The dwarves here are actually sympathetic to our plight. Afterall, they know firsthand what it's like to have an enemy encroach upon your ancestral lands.")
  107. end
  108. function dlg_14_1(NPC, Spawn)
  109. FaceTarget(NPC, Spawn)
  110. conversation = CreateConversation()
  111. PlayFlavor(NPC, "raghuntha/_exp03/exp03_rgn_butcherblock/sarnak_sympathizer/raghunatha/raghunatha002.mp3", "", "", 1071485609, 2454621762, Spawn)
  112. AddConversationOption(conversation, "Were the Haoaerans successful?", "dlg_14_2")
  113. StartConversation(conversation, NPC, Spawn, "A small delegation of Gorwynian citizens have traveled across the Timorous Deep to enlist the help of the dwarves of Butcherblock and Kaladim. Our first concern was that the blasted Haoaerans would rouse the Kragploom aviaks into action and cause them to join their cause.")
  114. end
  115. function dlg_14_2(NPC, Spawn)
  116. FaceTarget(NPC, Spawn)
  117. conversation = CreateConversation()
  118. PlayFlavor(NPC, "raghuntha/_exp03/exp03_rgn_butcherblock/sarnak_sympathizer/raghunatha/raghunatha003.mp3", "", "", 3690188667, 1562372666, Spawn)
  119. AddConversationOption(conversation, "Are the dwarves unwilling to help at all?", "dlg_14_3")
  120. StartConversation(conversation, NPC, Spawn, "So far, no. Our allies have prevented the two aviak tribes from conspiring with one another, though convincing the dwarves to assist us has proved more difficult than we originally anticipated.")
  121. end
  122. function dlg_14_3(NPC, Spawn)
  123. FaceTarget(NPC, Spawn)
  124. conversation = CreateConversation()
  125. PlayFlavor(NPC, "raghuntha/_exp03/exp03_rgn_butcherblock/sarnak_sympathizer/raghunatha/raghunatha004.mp3", "", "", 833410768, 1027249809, Spawn)
  126. AddConversationOption(conversation, "Then what's the problem?", "dlg_14_4")
  127. StartConversation(conversation, NPC, Spawn, "Not exactly. The dwarves here are actually sympathetic to our plight. Afterall, they know firsthand what it's like to have an enemy encroach upon your ancestral lands.")
  128. end
  129. function dlg_14_4(NPC, Spawn)
  130. FaceTarget(NPC, Spawn)
  131. conversation = CreateConversation()
  132. PlayFlavor(NPC, "raghuntha/_exp03/exp03_rgn_butcherblock/sarnak_sympathizer/raghunatha/raghunatha005.mp3", "", "", 518757181, 1757436789, Spawn)
  133. AddConversationOption(conversation, "I can. Is there anything I can do to help?", "dlg_14_5")
  134. StartConversation(conversation, NPC, Spawn, "Simply put, it is a matter of resources. The dwarves here in this outpost are an extremely busy lot. As much as they would like to assist us, they need to take care of their own problems first. A most frustrating dilemma for our cause, I'm sure you can imagine.")
  135. end
  136. function dlg_14_5(NPC, Spawn)
  137. FaceTarget(NPC, Spawn)
  138. conversation = CreateConversation()
  139. PlayFlavor(NPC, "raghuntha/_exp03/exp03_rgn_butcherblock/sarnak_sympathizer/raghunatha/raghunatha006.mp3", "", "", 1066732182, 1623424378, Spawn)
  140. AddConversationOption(conversation, "Yes, I will help.", "dlg_14_6")
  141. StartConversation(conversation, NPC, Spawn, "You would be willing to assist us? Marvelous! Yes, please, I've taken it upon myself to assist the dwarves in their own problems in hope that with enough assistance, they would be able to return the favor. Would you be willing to speak with several of the dwarves around these lands, and help them in their duties?")
  142. end
  143. function dlg_14_6(NPC, Spawn)
  144. FaceTarget(NPC, Spawn)
  145. conversation = CreateConversation()
  146. PlayFlavor(NPC, "raghuntha/_exp03/exp03_rgn_butcherblock/sarnak_sympathizer/raghunatha/raghunatha007.mp3", "", "", 3396264823, 906309207, Spawn)
  147. AddConversationOption(conversation, "I'll begin at once!", "dlg_14_7")
  148. StartConversation(conversation, NPC, Spawn, "Thank you, friend, I'll do my best to make sure you're rewarded kindly. Now, let me write down the names of all the dwarves you'll need to speak with. Complete their tasks and then return to me. Time is of the essence, and the Haoaeran's attacks grow stronger every day.")
  149. end
  150. function GiveSarnakSympathizerPart1(NPC, Spawn)
  151. OfferQuest(NPC, Spawn, SarnakSympathizerPart1)
  152. end
  153. --[[ raw_conversations
  154. PlayFlavor(NPC, "", "Thanks again for all your help!", "thanks", 1689589577, 4560189, Spawn)
  155. --]]