WillimBarclay.lua 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202
  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. SetInfoStructString(NPC, "action_state", "ponder")
  12. end
  13. function respawn(NPC)
  14. spawn(NPC)
  15. end
  16. function hailed(NPC, Spawn)
  17. FaceTarget(NPC, Spawn)
  18. Dialog.New(NPC, Spawn)
  19. Dialog.AddDialog("Perhaps we can speak another time? I have to allocate the barley, inventory the chicken feed, and distribute the wool.")
  20. Dialog.AddVoiceover("voiceover/english/willim_barclay/qey_village01/willimbarclay000.mp3", 3397569626, 186458292)
  21. PlayFlavor(NPC, "", "", "no", 0, 0, Spawn)
  22. if GetQuestStep(Spawn,Mage2)==1 then
  23. Dialog.AddOption("Can I help you?","Dialog1")
  24. end
  25. Dialog.AddOption("I see.")
  26. Dialog.Start()
  27. end
  28. function Dialog1(NPC,Spawn)
  29. FaceTarget(NPC, Spawn)
  30. Dialog.New(NPC, Spawn)
  31. Dialog.AddDialog("If you can help me win the love of Darlina, that would be great. Other than that, no one can help me.")
  32. Dialog.AddVoiceover("voiceover/english/willim_barclay/qey_village01/willimbarclay001.mp3", 247133491, 1867857417)
  33. PlayFlavor(NPC, "", "", "agree", 0, 0, Spawn)
  34. Dialog.AddOption("Who's Darlina?","Dialog2")
  35. Dialog.Start()
  36. end
  37. function Dialog2(NPC,Spawn)
  38. FaceTarget(NPC, Spawn)
  39. Dialog.New(NPC, Spawn)
  40. 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.")
  41. Dialog.AddVoiceover("voiceover/english/willim_barclay/qey_village01/willimbarclay002.mp3", 4157819983, 93007360)
  42. PlayFlavor(NPC, "", "", "orate", 0, 0, Spawn)
  43. Dialog.AddOption("What do you mean?","Dialog3")
  44. Dialog.AddOption("I see. Well, I think you're selling yourself short. You just have no confidence.","Dialog4")
  45. Dialog.AddOption("That is true. You could do better in the looks department.","Dialog2a")
  46. Dialog.Start()
  47. end
  48. function Dialog2a(NPC,Spawn)
  49. FaceTarget(NPC, Spawn)
  50. Dialog.New(NPC, Spawn)
  51. Dialog.AddDialog("...")
  52. PlayFlavor(NPC, "", "", "glare", 0, 0, Spawn)
  53. Dialog.AddOption("...I mean, it can't be all bad... right?","Dialog3")
  54. Dialog.AddOption("...I mean, I think you're selling yourself short. You just have no confidence.","Dialog4")
  55. Dialog.Start()
  56. end
  57. function Dialog3(NPC,Spawn)
  58. FaceTarget(NPC, Spawn)
  59. Dialog.New(NPC, Spawn)
  60. 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!")
  61. Dialog.AddVoiceover("voiceover/english/willim_barclay/qey_village01/willimbarclay003.mp3", 2767747634, 2031605868)
  62. PlayFlavor(NPC, "", "", "whome", 0, 0, Spawn)
  63. Dialog.AddOption("I see. Well, I think you're selling yourself short. You just have no confidence.","Dialog4")
  64. Dialog.AddOption("A gnoll could be an exciting experience...?","Dialog3a")
  65. Dialog.Start()
  66. end
  67. function Dialog3a(NPC,Spawn)
  68. FaceTarget(NPC, Spawn)
  69. Dialog.New(NPC, Spawn)
  70. Dialog.AddDialog("...")
  71. PlayFlavor(NPC, "", "", "shame", 0, 0, Spawn)
  72. Dialog.AddOption("...I mean, I think you're selling yourself short. You just have no confidence.","Dialog4")
  73. Dialog.Start()
  74. end
  75. function Dialog4(NPC,Spawn)
  76. FaceTarget(NPC, Spawn)
  77. Dialog.New(NPC, Spawn)
  78. 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.")
  79. Dialog.AddVoiceover("voiceover/english/willim_barclay/qey_village01/willimbarclay004.mp3", 2536151447, 2058017298)
  80. PlayFlavor(NPC, "", "", "pout", 0, 0, Spawn)
  81. Dialog.AddOption("I've heard goblins are much better than gnolls anyway!","Dialog4a")
  82. Dialog.AddOption("That's not what I meant! I'm saying that you just need to build your self-esteem.","Dialog5")
  83. Dialog.Start()
  84. end
  85. function Dialog4a(NPC,Spawn)
  86. FaceTarget(NPC, Spawn)
  87. Dialog.New(NPC, Spawn)
  88. Dialog.AddDialog("...")
  89. PlayFlavor(NPC, "", "", "gag", 0, 0, Spawn)
  90. Dialog.AddOption("...I mean, that you just need to build your self-esteem!","Dialog5")
  91. Dialog.Start()
  92. end
  93. function Dialog5(NPC,Spawn)
  94. FaceTarget(NPC, Spawn)
  95. Dialog.New(NPC, Spawn)
  96. 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?")
  97. Dialog.AddVoiceover("voiceover/english/willim_barclay/qey_village01/willimbarclay005.mp3", 2901342115, 3612540491)
  98. PlayFlavor(NPC, "", "", "frustrated", 0, 0, Spawn)
  99. Dialog.AddOption("Yes, actually I do. I think you need a magical charm to help you.","Dialog6")
  100. Dialog.AddOption("And you could stand to lose a few pounds while you're at it.","Dialog5a")
  101. Dialog.Start()
  102. end
  103. function Dialog5a(NPC,Spawn)
  104. FaceTarget(NPC, Spawn)
  105. Dialog.New(NPC, Spawn)
  106. Dialog.AddDialog("...")
  107. PlayFlavor(NPC, "", "", "sulk", 0, 0, Spawn)
  108. Dialog.AddOption("...I mean, I think you need a magical charm to help you","Dialog6")
  109. Dialog.Start()
  110. end
  111. function Dialog6(NPC,Spawn)
  112. FaceTarget(NPC, Spawn)
  113. Dialog.New(NPC, Spawn)
  114. Dialog.AddDialog("A magic charm? What would that do?")
  115. Dialog.AddVoiceover("voiceover/english/willim_barclay/qey_village01/willimbarclay006.mp3", 3843339191, 50613691)
  116. 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")
  117. Dialog.Start()
  118. end
  119. function Dialog7(NPC,Spawn)
  120. FaceTarget(NPC, Spawn)
  121. Dialog.New(NPC, Spawn)
  122. Dialog.AddDialog("Really? I could never afford something like that on my salary.")
  123. Dialog.AddVoiceover("voiceover/english/willim_barclay/qey_village01/willimbarclay007.mp3", 1685022915, 3753235021)
  124. PlayFlavor(NPC, "", "", "no", 0, 0, Spawn)
  125. Dialog.AddOption("Oh no, no, no. You don't have to do anything! Here, you can have it, free of charge.","Dialog8")
  126. Dialog.Start()
  127. end
  128. function Dialog8(NPC,Spawn)
  129. FaceTarget(NPC, Spawn)
  130. Dialog.New(NPC, Spawn)
  131. Dialog.AddDialog("You'd just give it to me like that? Where is it? I can't see it.")
  132. Dialog.AddVoiceover("voiceover/english/willim_barclay/qey_village01/willimbarclay008.mp3", 2327092616, 2175769531)
  133. PlayFlavor(NPC, "", "", "confused", 0, 0, Spawn)
  134. Dialog.AddOption("Wow! This new spell sure is powerful!","Dialog9")
  135. Dialog.Start()
  136. end
  137. function Dialog9(NPC,Spawn)
  138. FaceTarget(NPC, Spawn)
  139. Dialog.New(NPC, Spawn)
  140. Dialog.AddDialog("Wow? You mean... like... wow, it worked?")
  141. Dialog.AddVoiceover("voiceover/english/willim_barclay/qey_village01/willimbarclay009.mp3", 3947896305, 4222087768)
  142. PlayFlavor(NPC, "", "", "boggle", 0, 0, Spawn)
  143. Dialog.AddOption("It did, indeed! You are the pinnacle of manliness! I can hardly believe my eyes!","Dialog10")
  144. Dialog.Start()
  145. end
  146. function Dialog10(NPC,Spawn)
  147. FaceTarget(NPC, Spawn)
  148. Dialog.New(NPC, Spawn)
  149. 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!")
  150. Dialog.AddVoiceover("voiceover/english/willim_barclay/qey_village01/willimbarclay010.mp3", 2352717769, 33832003)
  151. PlayFlavor(NPC, "", "", "sniff", 0, 0, Spawn)
  152. Dialog.AddOption("That's right!","Dialog11")
  153. Dialog.Start()
  154. end
  155. function Dialog11(NPC,Spawn)
  156. FaceTarget(NPC, Spawn)
  157. Dialog.New(NPC, Spawn)
  158. 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?\"")
  159. Dialog.AddVoiceover("voiceover/english/willim_barclay/qey_village01/willimbarclay011.mp3", 2824359761, 59383061)
  160. PlayFlavor(NPC, "", "", "flirt", 0, 0, Spawn)
  161. Dialog.AddOption("...","Dialog12")
  162. Dialog.Start()
  163. end
  164. function Dialog12(NPC,Spawn)
  165. FaceTarget(NPC, Spawn)
  166. Dialog.New(NPC, Spawn)
  167. Dialog.AddDialog("Here, let me try another: \"Don't worry, ladies, there's enough of me to go around.\"")
  168. Dialog.AddVoiceover("voiceover/english/willim_barclay/qey_village01/willimbarclay012.mp3", 437548265, 1378409043)
  169. PlayFlavor(NPC, "", "", "flex", 0, 0, Spawn)
  170. Dialog.AddOption("Watch out, friend. If you get too proud, the charm will turn you into a toad.","Dialog13")
  171. Dialog.Start()
  172. end
  173. function Dialog13(NPC,Spawn)
  174. SetStepComplete(Spawn,Mage2,1)
  175. FaceTarget(NPC, Spawn)
  176. Dialog.New(NPC, Spawn)
  177. 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.")
  178. Dialog.AddVoiceover("voiceover/english/willim_barclay/qey_village01/willimbarclay013.mp3", 1530745306, 4071019007)
  179. PlayFlavor(NPC, "", "", "confused", 0, 0, Spawn)
  180. Dialog.AddOption("Use it wisely. Take care.")
  181. Dialog.Start()
  182. end