BroganMacLellan.lua 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198
  1. --[[
  2. Script Name : SpawnScripts/FrostfangSea/BroganMacLellan.lua
  3. Script Purpose : Brogan MacLellan
  4. Script Author : theFoof
  5. Script Date : 2013.08.19
  6. Script Notes :
  7. --]]
  8. local TrustIssues = 85
  9. local TrustedReferral = 86
  10. function spawn(NPC)
  11. ProvidesQuest(NPC, TrustIssues)
  12. end
  13. function respawn(NPC)
  14. spawn(NPC)
  15. end
  16. function hailed(NPC, Spawn)
  17. FaceTarget(NPC, Spawn)
  18. conversation = CreateConversation()
  19. if not HasCompletedQuest(Spawn, TrustIssues) and not HasQuest(Spawn, TrustIssues) then
  20. PlayFlavor(NPC, "brogan_maclellan/halas/new_halas_guard_house/brogan_maclellan001.mp3", "", "", 2714538944, 2338955741, Spawn)
  21. AddConversationOption(conversation, "It isn't for everyone.", "Quest1Chat_1")
  22. AddConversationOption(conversation, "'Paradise' is subjective.", "Quest1Chat_4")
  23. AddConversationOption(conversation, "The population is mostly barbarians, right?", "Quest1Chat_5")
  24. AddConversationOption(conversation, "I'm not interested in figuring this out.")
  25. StartConversation(conversation, NPC, Spawn, "It's a diverse group of fellers living together on this frigid rock. There are a number of folks like me, sure. But what do the other inhabitants see in Erollis? Why do they stay here? It's not like this is a verdant paradise.")
  26. elseif HasQuest(Spawn, TrustIssues) and GetQuestStep(Spawn, TrustIssues) < 5 then
  27. PlayFlavor(NPC, "", "Talk to them, and find out why they're here.", "hello", 0, 0, Spawn)
  28. elseif GetQuestStep(Spawn, TrustIssues) == 5 then
  29. AddConversationOption(conversation, "They've all got valid reasons for staying in Erollis.", "Quest1Chat_9")
  30. AddConversationOption(conversation, "There is a rich history for this place, and each newcomer is a part of it.", "Quest1Chat_9")
  31. AddConversationOption(conversation, 'Not surprisingly, everyone has their own motivation and "angle".', "Quest1Chat_9")
  32. StartConversation(conversation, NPC, Spawn, "Back already, " .. GetName(Spawn) .. "? Well, don't be shy. What did you find out?")
  33. elseif HasCompletedQuest(Spawn, TrustIssues) and not HasCompletedQuest(Spawn, TrustedReferral) and not HasQuest(Spawn, TrustedReferral) then
  34. Quest2Chat_1(NPC, Spawn)
  35. end
  36. end
  37. function Quest1Chat_1(NPC, Spawn)
  38. FaceTarget(NPC, Spawn)
  39. conversation = CreateConversation()
  40. PlayFlavor(NPC, "brogan_maclellan/halas/new_halas_guard_house/brogan_maclellan003.mp3", "", "", 111727266, 1713011810, Spawn)
  41. AddConversationOption(conversation, "Marr blessed this place.", "Quest1Chat_2")
  42. AddConversationOption(conversation, "Some find frontier life exciting.", "Quest1Chat_6")
  43. AddConversationOption(conversation, "I prefer natural skins and furs to cotton fabric.", "Quest1Chat_7")
  44. AddConversationOption(conversation, "Perhaps some other time. Goodbye.")
  45. StartConversation(conversation, NPC, Spawn, "You've got that right. And I'm not just talking about the obvious need for skins and furs, which aren't everyone's mug of ale. Erollis is isolated, and it's a hostile environment.")
  46. end
  47. function Quest1Chat_2(NPC, Spawn)
  48. FaceTarget(NPC, Spawn)
  49. conversation = CreateConversation()
  50. PlayFlavor(NPC, "brogan_maclellan/halas/new_halas_guard_house/brogan_maclellan006.mp3", "", "", 385456101, 752051368, Spawn)
  51. AddConversationOption(conversation, "I wonder why the others are here.", "Quest1Chat_3")
  52. AddConversationOption(conversation, "I'm not interested in figuring this out.")
  53. StartConversation(conversation, NPC, Spawn, "Yeah, he plopped down a fetching statue and showed pilgrims the way here, but that doesn't make the environment any more palatable.")
  54. end
  55. function Quest1Chat_3(NPC, Spawn)
  56. FaceTarget(NPC, Spawn)
  57. conversation = CreateConversation()
  58. PlayFlavor(NPC, "brogan_maclellan/halas/new_halas_guard_house/brogan_maclellan005.mp3", "", "", 3080293935, 4050287444, Spawn)
  59. AddConversationOption(conversation, "Sure. I wouldn't mind learning their motives as well.", "OfferTrustIssues")
  60. AddConversationOption(conversation, "Why not? Could meet some interesting people.", "OfferTrustIssues")
  61. AddConversationOption(conversation, "Might as well. I don't trust them either.", "OfferTrustIssues")
  62. AddConversationOption(conversation, "I'd rather not get too close to strangers.")
  63. StartConversation(conversation, NPC, Spawn, "Yeah, I'd like to learn each major faction's angle. Call me paranoid, but I'd feel safer knowing more about the motivations of the folks that share the town. Care to do a little asking around?")
  64. end
  65. function Quest1Chat_4(NPC, Spawn)
  66. FaceTarget(NPC, Spawn)
  67. conversation = CreateConversation()
  68. PlayFlavor(NPC, "brogan_maclellan/halas/new_halas_guard_house/brogan_maclellan002.mp3", "", "", 1097446882, 2575906543, Spawn)
  69. AddConversationOption(conversation, "I wonder why the others are here.", "Quest1Chat_3")
  70. AddConversationOption(conversation, "I'm not interested in figuring this out.")
  71. StartConversation(conversation, NPC, Spawn, "True. It looks an awful lot like the Halas of old, or so I've gathered, which is what drew me here. You could say it's my paradise. But not even my people can agree to appreciate this weather.")
  72. end
  73. function Quest1Chat_5(NPC, Spawn)
  74. FaceTarget(NPC, Spawn)
  75. conversation = CreateConversation()
  76. PlayFlavor(NPC, "brogan_maclellan/halas/new_halas_guard_house/brogan_maclellan004.mp3", "", "", 1786838303, 2147071004, Spawn)
  77. AddConversationOption(conversation, "I wonder why the others are here.", "Quest1Chat_3")
  78. AddConversationOption(conversation, "I'm not interested in figuring this out.")
  79. StartConversation(conversation, NPC, Spawn, "Eh. We make up around half the population, give or take. The rest is primarily frogloks and coldain with a smattering of other offshore races mixed in.")
  80. end
  81. function Quest1Chat_6(NPC, Spawn)
  82. FaceTarget(NPC, Spawn)
  83. conversation = CreateConversation()
  84. PlayFlavor(NPC, "brogan_maclellan/halas/new_halas_guard_house/brogan_maclellan007.mp3", "", "", 1338892240, 118117761, Spawn)
  85. AddConversationOption(conversation, "It might be worth looking into people's motivations.", "Quest1Chat_3")
  86. AddConversationOption(conversation, "I'm not interested in figuring this out.")
  87. StartConversation(conversation, NPC, Spawn, "The thrill-seekers and folks looking to start a new life, possibly. Though, I don't trust the former and the latter make me nervous.")
  88. end
  89. function Quest1Chat_7(NPC, Spawn)
  90. FaceTarget(NPC, Spawn)
  91. conversation = CreateConversation()
  92. PlayFlavor(NPC, "brogan_maclellan/halas/new_halas_guard_house/brogan_maclellan008.mp3", "", "", 618404562, 3809310014, Spawn)
  93. AddConversationOption(conversation, "And it's comfortable, to boot!", "Quest1Chat_8")
  94. AddConversationOption(conversation, "But fashion alone isn't a reason to live on Erollis, is it?", "Quest1Chat_3")
  95. AddConversationOption(conversation, "I'm not interested in figuring this out.")
  96. StartConversation(conversation, NPC, Spawn, "You and me both. There's nothing like supple hide and animal hair to ward off the winter's chill, especially when it comes to footwear.")
  97. end
  98. function Quest1Chat_8(NPC, Spawn)
  99. FaceTarget(NPC, Spawn)
  100. conversation = CreateConversation()
  101. AddConversationOption(conversation, "Glad you liked it.", "Quest1Chat_3")
  102. AddConversationOption(conversation, "I'm too busy chuckling to go on. Let me catch my breath.")
  103. StartConversation(conversation, NPC, Spawn, "If words were weapons, that pun would have slain me where I stood.")
  104. end
  105. function Quest1Chat_9(NPC, Spawn)
  106. SetStepComplete(Spawn, TrustIssues, 5)
  107. FaceTarget(NPC, Spawn)
  108. conversation = CreateConversation()
  109. AddConversationOption(conversation, "I'm not sure that can be helped.", "Quest2Chat_1")
  110. AddConversationOption(conversation, "You have real trust issues, MacLellan.", "Quest2Chat_1")
  111. AddConversationOption(conversation, "Trust is a commodity that we can't always afford.", "Quest2Chat_1")
  112. StartConversation(conversation, NPC, Spawn, "Hmm. I supposed we're all new here, in one way or another, but I still don't trust the others.")
  113. end
  114. function Quest2Chat_1(NPC, Spawn)
  115. FaceTarget(NPC, Spawn)
  116. conversation = CreateConversation()
  117. AddConversationOption(conversation, "Is there anything else I can do for you?", "Quest2Chat_2")
  118. AddConversationOption(conversation, "I'm glad I could. Good day, Brogan.")
  119. StartConversation(conversation, NPC, Spawn, "I may be reluctant to trust the others here, but you've proven yourself to me.")
  120. end
  121. function Quest2Chat_2(NPC, Spawn)
  122. FaceTarget(NPC, Spawn)
  123. conversation = CreateConversation()
  124. AddConversationOption(conversation, "Sure.", "Quest2Chat_5")
  125. AddConversationOption(conversation, "I hadn't thought of it.", "Quest2Chat_4")
  126. AddConversationOption(conversation, "No. Not yet.", "Quest2Chat_3")
  127. StartConversation(conversation, NPC, Spawn, "Not for me, " .. GetName(Spawn) .. ". Are you willing to travel to another land?")
  128. end
  129. function Quest2Chat_3(NPC, Spawn)
  130. FaceTarget(NPC, Spawn)
  131. PlayFlavor(NPC, "", "Well, come back to me when you are looking to travel.", "agree", 0, 0, Spawn)
  132. end
  133. function Quest2Chat_4(NPC, Spawn)
  134. FaceTarget(NPC, Spawn)
  135. conversation = CreateConversation()
  136. AddConversationOption(conversation, "More coin would be useful.", "Quest2Chat_5")
  137. AddConversationOption(conversation, "That's true.", "Quest2Chat_3")
  138. StartConversation(conversation, NPC, Spawn, "Well, when you need more coin you will.")
  139. end
  140. function Quest2Chat_5(NPC, Spawn)
  141. FaceTarget(NPC, Spawn)
  142. conversation = CreateConversation()
  143. AddConversationOption(conversation, "I can do that.", "OfferTrustedReferral")
  144. AddConversationOption(conversation, "Where's that?", "Quest2Chat_6")
  145. AddConversationOption(conversation, "I have no plans to travel to Butcherblock.")
  146. StartConversation(conversation, NPC, Spawn, "Then I suggest you speak with my cousin, Belinda. She's at the docks in the Butcherblock Mountains.")
  147. end
  148. function Quest2Chat_6(NPC, Spawn)
  149. FaceTarget(NPC, Spawn)
  150. conversation = CreateConversation()
  151. AddConversationOption(conversation, "I can do that.", "OfferTrustedReferral")
  152. AddConversationOption(conversation, "I have no plans to travel to Butcherblock.")
  153. StartConversation(conversation, NPC, Spawn, "Butcherblock Mountains is on the continent of Faydwer. You can travel there by taking the griffon down at the Erollis docks.")
  154. end
  155. function OfferTrustedReferral(NPC, Spawn)
  156. OfferQuest(NPC, Spawn, TrustedReferral)
  157. end
  158. function OfferTrustIssues(NPC, Spawn)
  159. SendPopUpMessage(Spawn, "This quest is not implemented yet. Requires NPC in Butcherblock.", 255, 0, 0)
  160. --OfferQuest(NPC, Spawn, TrustIssues)
  161. end