WillimBarclay.lua 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201
  1. --[[
  2. Script Name : SpawnScripts/Nettleville/WillimBarclay.lua
  3. Script Purpose : Willim Barclay
  4. Script Author : Scatman
  5. Script Date : 2009.08.08
  6. Script Notes :
  7. --]]
  8. require "SpawnScripts/Generic/DialogModule"
  9. local Mage2 = 5768
  10. function spawn(NPC)
  11. end
  12. function respawn(NPC)
  13. spawn(NPC)
  14. end
  15. function hailed(NPC, Spawn)
  16. FaceTarget(NPC, Spawn)
  17. Dialog.New(NPC, Spawn)
  18. Dialog.AddDialog("Perhaps we can speak another time? I have to allocate the barley, inventory the chicken feed, and distribute the wool.")
  19. Dialog.AddVoiceover("voiceover/english/willim_barclay/qey_village01/willimbarclay000.mp3", 3397569626, 186458292)
  20. PlayFlavor(NPC, "", "", "no", 0, 0, Spawn)
  21. if GetQuestStep(Spawn,Mage2)==1 then
  22. Dialog.AddOption("Can I help you?","Dialog1")
  23. end
  24. Dialog.AddOption("I see.")
  25. Dialog.Start()
  26. end
  27. function Dialog1(NPC,Spawn)
  28. FaceTarget(NPC, Spawn)
  29. Dialog.New(NPC, Spawn)
  30. Dialog.AddDialog("If you can help me win the love of Darlina, that would be great. Other than that, no one can help me.")
  31. Dialog.AddVoiceover("voiceover/english/willim_barclay/qey_village01/willimbarclay001.mp3", 247133491, 1867857417)
  32. PlayFlavor(NPC, "", "", "agree", 0, 0, Spawn)
  33. Dialog.AddOption("Who's Darlina?","Dialog2")
  34. Dialog.Start()
  35. end
  36. function Dialog2(NPC,Spawn)
  37. FaceTarget(NPC, Spawn)
  38. Dialog.New(NPC, Spawn)
  39. Dialog.AddDialog("She's the fairest creature to walk this earth. No one, not even the goddess of love, is as beautiful as she is. And I... I am nothing but a horrid looking troll.")
  40. Dialog.AddVoiceover("voiceover/english/willim_barclay/qey_village01/willimbarclay002.mp3", 4157819983, 93007360)
  41. PlayFlavor(NPC, "", "", "orate", 0, 0, Spawn)
  42. Dialog.AddOption("What do you mean?","Dialog3")
  43. Dialog.AddOption("I see. Well, I think you're selling yourself short. You just have no confidence.","Dialog4")
  44. Dialog.AddOption("That is true. You could do better in the looks department.","Dialog2a")
  45. Dialog.Start()
  46. end
  47. function Dialog2a(NPC,Spawn)
  48. FaceTarget(NPC, Spawn)
  49. Dialog.New(NPC, Spawn)
  50. Dialog.AddDialog("...")
  51. PlayFlavor(NPC, "", "", "glare", 0, 0, Spawn)
  52. Dialog.AddOption("...I mean, it can't be all bad... right?","Dialog3")
  53. Dialog.AddOption("...I mean, I think you're selling yourself short. You just have no confidence.","Dialog4")
  54. Dialog.Start()
  55. end
  56. function Dialog3(NPC,Spawn)
  57. FaceTarget(NPC, Spawn)
  58. Dialog.New(NPC, Spawn)
  59. Dialog.AddDialog("Look at me! I'd never have a chance with Darlina! I might as well just marry a gnoll and get it over with!")
  60. Dialog.AddVoiceover("voiceover/english/willim_barclay/qey_village01/willimbarclay003.mp3", 2767747634, 2031605868)
  61. PlayFlavor(NPC, "", "", "whome", 0, 0, Spawn)
  62. Dialog.AddOption("I see. Well, I think you're selling yourself short. You just have no confidence.","Dialog4")
  63. Dialog.AddOption("A gnoll could be an exciting experience...?","Dialog3a")
  64. Dialog.Start()
  65. end
  66. function Dialog3a(NPC,Spawn)
  67. FaceTarget(NPC, Spawn)
  68. Dialog.New(NPC, Spawn)
  69. Dialog.AddDialog("...")
  70. PlayFlavor(NPC, "", "", "shame", 0, 0, Spawn)
  71. Dialog.AddOption("...I mean, I think you're selling yourself short. You just have no confidence.","Dialog4")
  72. Dialog.Start()
  73. end
  74. function Dialog4(NPC,Spawn)
  75. FaceTarget(NPC, Spawn)
  76. Dialog.New(NPC, Spawn)
  77. Dialog.AddDialog("Now I'm too short? Great! First I was ugly, now I'm too short. Maybe I should just marry a goblin. Apparently gnolls are too good for me.")
  78. Dialog.AddVoiceover("voiceover/english/willim_barclay/qey_village01/willimbarclay004.mp3", 2536151447, 2058017298)
  79. PlayFlavor(NPC, "", "", "pout", 0, 0, Spawn)
  80. Dialog.AddOption("I've heard goblins are much better than gnolls anyway!","Dialog4a")
  81. Dialog.AddOption("That's not what I meant! I'm saying that you just need to build your self-esteem.","Dialog5")
  82. Dialog.Start()
  83. end
  84. function Dialog4a(NPC,Spawn)
  85. FaceTarget(NPC, Spawn)
  86. Dialog.New(NPC, Spawn)
  87. Dialog.AddDialog("...")
  88. PlayFlavor(NPC, "", "", "gag", 0, 0, Spawn)
  89. Dialog.AddOption("...I mean, that you just need to build your self-esteem!","Dialog5")
  90. Dialog.Start()
  91. end
  92. function Dialog5(NPC,Spawn)
  93. FaceTarget(NPC, Spawn)
  94. Dialog.New(NPC, Spawn)
  95. Dialog.AddDialog("Now it's self-esteem! Well, it's kind of hard to have self-esteem when you're short and ugly. Now do you see?")
  96. Dialog.AddVoiceover("voiceover/english/willim_barclay/qey_village01/willimbarclay005.mp3", 2901342115, 3612540491)
  97. PlayFlavor(NPC, "", "", "frustrated", 0, 0, Spawn)
  98. Dialog.AddOption("Yes, actually I do. I think you need a magical charm to help you.","Dialog6")
  99. Dialog.AddOption("And you could stand to lose a few pounds while you're at it.","Dialog5a")
  100. Dialog.Start()
  101. end
  102. function Dialog5a(NPC,Spawn)
  103. FaceTarget(NPC, Spawn)
  104. Dialog.New(NPC, Spawn)
  105. Dialog.AddDialog("...")
  106. PlayFlavor(NPC, "", "", "pout", 0, 0, Spawn)
  107. Dialog.AddOption("...I mean, I think you need a magical charm to help you","Dialog6")
  108. Dialog.Start()
  109. end
  110. function Dialog6(NPC,Spawn)
  111. FaceTarget(NPC, Spawn)
  112. Dialog.New(NPC, Spawn)
  113. Dialog.AddDialog("A magic charm? What would that do?")
  114. Dialog.AddVoiceover("voiceover/english/willim_barclay/qey_village01/willimbarclay006.mp3", 3843339191, 50613691)
  115. Dialog.AddOption("I am trying to perfect a new spell. I think I finally have it; I just need something to test it out on!","Dialog7")
  116. Dialog.Start()
  117. end
  118. function Dialog7(NPC,Spawn)
  119. FaceTarget(NPC, Spawn)
  120. Dialog.New(NPC, Spawn)
  121. Dialog.AddDialog("Really? I could never afford something like that on my salary.")
  122. Dialog.AddVoiceover("voiceover/english/willim_barclay/qey_village01/willimbarclay007.mp3", 1685022915, 3753235021)
  123. PlayFlavor(NPC, "", "", "no", 0, 0, Spawn)
  124. Dialog.AddOption("Oh no, no, no. You don't have to do anything! Here, you can have it, free of charge.","Dialog8")
  125. Dialog.Start()
  126. end
  127. function Dialog8(NPC,Spawn)
  128. FaceTarget(NPC, Spawn)
  129. Dialog.New(NPC, Spawn)
  130. Dialog.AddDialog("You'd just give it to me like that? Where is it? I can't see it.")
  131. Dialog.AddVoiceover("voiceover/english/willim_barclay/qey_village01/willimbarclay008.mp3", 2327092616, 2175769531)
  132. PlayFlavor(NPC, "", "", "confused", 0, 0, Spawn)
  133. Dialog.AddOption("Wow! This new spell sure is powerful!","Dialog9")
  134. Dialog.Start()
  135. end
  136. function Dialog9(NPC,Spawn)
  137. FaceTarget(NPC, Spawn)
  138. Dialog.New(NPC, Spawn)
  139. Dialog.AddDialog("Wow? You mean... like... wow, it worked?")
  140. Dialog.AddVoiceover("voiceover/english/willim_barclay/qey_village01/willimbarclay009.mp3", 3947896305, 4222087768)
  141. PlayFlavor(NPC, "", "", "boggle", 0, 0, Spawn)
  142. Dialog.AddOption("It did, indeed! You are the pinnacle of manliness! I can hardly believe my eyes!","Dialog10")
  143. Dialog.Start()
  144. end
  145. function Dialog10(NPC,Spawn)
  146. FaceTarget(NPC, Spawn)
  147. Dialog.New(NPC, Spawn)
  148. Dialog.AddDialog("Really? Wow! Wait a second... I wouldn't say 'wow.' I'd say something like... 'of course, I am.' HEY! I think it's working!")
  149. Dialog.AddVoiceover("voiceover/english/willim_barclay/qey_village01/willimbarclay010.mp3", 2352717769, 33832003)
  150. PlayFlavor(NPC, "", "", "sniff", 0, 0, Spawn)
  151. Dialog.AddOption("That's right!","Dialog11")
  152. Dialog.Start()
  153. end
  154. function Dialog11(NPC,Spawn)
  155. FaceTarget(NPC, Spawn)
  156. Dialog.New(NPC, Spawn)
  157. Dialog.AddDialog("Let me try another! \"M'lady, would you care to take a stroll?\" And how's this one? \"Darlina, would you like to step in for a nightcap?\"")
  158. Dialog.AddVoiceover("voiceover/english/willim_barclay/qey_village01/willimbarclay011.mp3", 2824359761, 59383061)
  159. PlayFlavor(NPC, "", "", "flirt", 0, 0, Spawn)
  160. Dialog.AddOption("...","Dialog11")
  161. Dialog.Start()
  162. end
  163. function Dialog12(NPC,Spawn)
  164. FaceTarget(NPC, Spawn)
  165. Dialog.New(NPC, Spawn)
  166. Dialog.AddDialog("Here, let me try another: \"Don't worry, ladies, there's enough of me to go around.\"")
  167. Dialog.AddVoiceover("voiceover/english/willim_barclay/qey_village01/willimbarclay012.mp3", 2824359761, 59383061)
  168. PlayFlavor(NPC, "", "", "flex", 0, 0, Spawn)
  169. Dialog.AddOption("...","Dialog13")
  170. Dialog.Start()
  171. end
  172. function Dialog12(NPC,Spawn)
  173. SetStepComplete(Spawn,Mage2,1)
  174. FaceTarget(NPC, Spawn)
  175. Dialog.New(NPC, Spawn)
  176. Dialog.AddDialog("Really? Oh. Okay, I'll remember that. I want to thank you so much for your help. I don't know how I can repay you.")
  177. Dialog.AddVoiceover("voiceover/english/willim_barclay/qey_village01/willimbarclay013.mp3", 1530745306, 4071019007)
  178. PlayFlavor(NPC, "", "", "confused", 0, 0, Spawn)
  179. Dialog.AddOption("Use it wisely. Take care.")
  180. Dialog.Start()
  181. end