9
3

AulusCrispian.lua 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  1. --[[
  2. Script Name : SpawnScripts/NorthFreeport/AulusCrispian.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.06.19 12:06:37
  5. Script Purpose :
  6. :
  7. --]]
  8. require "SpawnScripts/Generic/DialogModule"
  9. local Mage1 = 5902
  10. function spawn(NPC)
  11. end
  12. function respawn(NPC)
  13. spawn(NPC)
  14. end
  15. function hailed(NPC, Spawn)
  16. Dialog1(NPC, Spawn)
  17. end
  18. function Dialog1(NPC, Spawn)
  19. FaceTarget(NPC, Spawn)
  20. Dialog.New(NPC, Spawn)
  21. Dialog.AddDialog("Welcome to Torlig's Herbs and Potions. I sell many magicial reagents and herbs. But, I warn you, you must possess amazing skill to handle them properly.")
  22. Dialog.AddVoiceover("voiceover/english/alchemist_aulus_crispian/fprt_north/mer_auluscrispian.mp3", 3874372728, 2977782311)
  23. Dialog.AddOption("These herbs are not my cup of tea. I think I will look elsewhere.")
  24. if HasQuest(Spawn,Mage1) and GetQuestStep(Spawn,Mage1) == 3 then
  25. Dialog.AddOption("Arcanist Sonius is concerned with the price increases on research supplies.", "Dialog3")
  26. end
  27. if HasQuest(Spawn,5906) and GetQuestStep(Spawn,5906) == 3 then
  28. Dialog.AddOption("Have you been selling any type of foreign plant?", "Plant")
  29. end
  30. Dialog.AddOption("Do you know how to handle them properly?", "Dialog2")
  31. Dialog.Start()
  32. end
  33. function Plant(NPC, Spawn)
  34. FaceTarget(NPC, Spawn)
  35. Dialog.New(NPC, Spawn)
  36. PlayFlavor(NPC, "","", "heckno", 0, 0, Spawn)
  37. Dialog.AddVoiceover("voiceover/english/alchemist_aulus_crispian/fprt_north/mer_auluscrispian000.mp3", 0, 0)
  38. Dialog.AddDialog("I will NOT expose my suppliers to the likes of you! So, unless you have an order from the Overlord, take up your questions with Torlig.")
  39. Dialog.AddOption("Fine! Sorry.")
  40. Dialog.Start()
  41. end
  42. function Dialog2(NPC, Spawn)
  43. FaceTarget(NPC, Spawn)
  44. Dialog.New(NPC, Spawn)
  45. PlayFlavor(NPC, "","", "scold", 0, 0, Spawn)
  46. Dialog.AddDialog("Of course I do. I'm very knowledgeable in the ways of magic. Why, if it wasn't for those instructors at the Academy denying my admission, I'd be on my way to becoming a famous arch mage! That fire was not my fault!")
  47. Dialog.AddVoiceover("voiceover/english/alchemist_aulus_crispian/fprt_north/mer_auluscrispian000.mp3", 2154034769, 640127952)
  48. Dialog.AddOption("Okay.")
  49. Dialog.Start()
  50. end
  51. function Dialog3(NPC, Spawn)
  52. SetTempVariable(NPC,"TalkCheck",nil)
  53. FaceTarget(NPC, Spawn)
  54. Dialog.New(NPC, Spawn)
  55. Dialog.AddDialog("Well the Arcanist can stuff it. She can pay the same price as everyone else - ten pieces of gold for a bottle of ink. What do you expect me to do? I've got seven mouths to feed at home!")
  56. Dialog.AddVoiceover("voiceover/english/alchemist_aulus_crispian/fprt_north/mer_auluscrispian002.mp3", 229896023, 3473249453)
  57. PlayFlavor(NPC, "","", "glare", 0, 0, Spawn)
  58. Dialog.AddOption("Surely, you can make an exception for someone of such standing as the Arcanist.","Fail1")
  59. Dialog.AddOption("Then I won't disturb you. Farewell.")
  60. Dialog.AddOption("If she paid half the price, but bought twice as much, would that be acceptable?","Dialog5")
  61. Dialog.Start()
  62. end
  63. function Fail1(NPC, Spawn)
  64. FaceTarget(NPC, Spawn)
  65. Dialog.New(NPC, Spawn)
  66. Dialog.AddDialog("Not a chance, buddy. Either she pays the same price, or she doesn't get any supplies.")
  67. Dialog.AddVoiceover("voiceover/english/alchemist_aulus_crispian/fprt_north/mer_auluscrispian003.mp3", 1664391901, 419184967)
  68. Dialog.AddOption("Then I won't disturb you. Farewell.")
  69. PlayFlavor(NPC, "","", "heckno", 0, 0, Spawn)
  70. Dialog.AddOption("If she paid half the price, but bought twice as much, would that be acceptable?","Dialog5")
  71. Dialog.Start()
  72. end
  73. function Fail1a(NPC, Spawn)
  74. FaceTarget(NPC, Spawn)
  75. Dialog.New(NPC, Spawn)
  76. Dialog.AddDialog("Not a chance, buddy. Either she pays the same price, or she doesn't get any supplies.")
  77. Dialog.AddVoiceover("voiceover/english/alchemist_aulus_crispian/fprt_north/mer_auluscrispian003.mp3", 1664391901, 419184967)
  78. Dialog.AddOption("Then I won't disturb you. Farewell.")
  79. PlayFlavor(NPC, "","", "heckno", 0, 0, Spawn)
  80. Dialog.AddOption("You wouldn't lose half the price unless she buys eight of them for one fourth the price.","Dialog6")
  81. Dialog.Start()
  82. end
  83. function Fail2(NPC, Spawn)
  84. FaceTarget(NPC, Spawn)
  85. Dialog.New(NPC, Spawn)
  86. Dialog.AddDialog("Not a chance, buddy. Either she pays the same price, or she doesn't get any supplies.")
  87. Dialog.AddVoiceover("voiceover/english/alchemist_aulus_crispian/fprt_north/mer_auluscrispian003.mp3", 1664391901, 419184967)
  88. Dialog.AddOption("Then I won't disturb you. Farewell.")
  89. PlayFlavor(NPC, "","", "heckno", 0, 0, Spawn)
  90. Dialog.AddOption("If she orders twenty for one tenth the price, you wouldn't.","Dialog7")
  91. Dialog.Start()
  92. end
  93. function Fail3(NPC, Spawn)
  94. FaceTarget(NPC, Spawn)
  95. Dialog.New(NPC, Spawn)
  96. Dialog.AddDialog("Not a chance, buddy. Either she pays the same price, or she doesn't get any supplies.")
  97. Dialog.AddVoiceover("voiceover/english/alchemist_aulus_crispian/fprt_north/mer_auluscrispian003.mp3", 1664391901, 419184967)
  98. Dialog.AddOption("Then I won't disturb you. Farewell.")
  99. PlayFlavor(NPC, "","", "heckno", 0, 0, Spawn)
  100. Dialog.AddOption("Think about it... If you lock her into a contract, the more you sell, the more you make!","Dialog8")
  101. Dialog.Start()
  102. end
  103. function Dialog5(NPC, Spawn)
  104. FaceTarget(NPC, Spawn)
  105. Dialog.New(NPC, Spawn)
  106. Dialog.AddDialog("No, because I'd still be making only half the profit on the deal.")
  107. Dialog.AddVoiceover("voiceover/english/alchemist_aulus_crispian/fprt_north/mer_auluscrispian004.mp3", 646291804, 527889935)
  108. PlayFlavor(NPC, "","", "no", 0, 0, Spawn)
  109. Dialog.AddOption("I see. Sorry for bothering you.")
  110. Dialog.AddOption("Not unless she buys eight of them for one fourth the price.","Dialog6")
  111. Dialog.AddOption("But she is the Arcanist! She deserves respect!","Fail1a")
  112. Dialog.Start()
  113. end
  114. function Dialog6(NPC, Spawn)
  115. FaceTarget(NPC, Spawn)
  116. Dialog.New(NPC, Spawn)
  117. Dialog.AddDialog("No... uh... I think I might still lose money on that deal.")
  118. Dialog.AddVoiceover("voiceover/english/alchemist_aulus_crispian/fprt_north/mer_auluscrispian005.mp3", 1685923289, 1600136933)
  119. Dialog.AddOption("Perhaps I should let you think about this.")
  120. Dialog.AddOption("But not by much. Surely you could accept that?","Fail2")
  121. Dialog.AddOption("If she orders twenty for one tenth the price, you wouldn't.","Dialog7")
  122. Dialog.Start()
  123. end
  124. function Dialog7(NPC, Spawn)
  125. FaceTarget(NPC, Spawn)
  126. Dialog.New(NPC, Spawn)
  127. Dialog.AddDialog("Umm... lemme think about that one... if she orders twenty - umm... won't I still lose money on that one?")
  128. Dialog.AddVoiceover("voiceover/english/alchemist_aulus_crispian/fprt_north/mer_auluscrispian006.mp3", 766951483, 1605764330)
  129. PlayFlavor(NPC, "","", "confused", 0, 0, Spawn)
  130. Dialog.AddOption("Only a little bit, but you would be serving a greater purpose than your own.","Fail3")
  131. Dialog.AddOption("If you lock her into a contract, you won't. The more you sell, the more you make!","Dialog8")
  132. Dialog.AddOption("Wait. On second thought, that might not be a good idea.")
  133. Dialog.Start()
  134. end
  135. function Dialog8(NPC, Spawn)
  136. FaceTarget(NPC, Spawn)
  137. Dialog.New(NPC, Spawn)
  138. Dialog.AddDialog("Good thinking... Heh heh heh.... I can make her sign a contract to buy them at one tenth the price, but she'll have to buy twenty, right? So what you're saying is that... if I change it to.... one twentieth the price... she'll have to buy FORTY! FORTY BOTTLES!!! I'll be rich!")
  139. Dialog.AddVoiceover("voiceover/english/alchemist_aulus_crispian/fprt_north/mer_auluscrispian007.mp3", 1563774963, 3399420898)
  140. PlayFlavor(NPC, "","", "scheme", 0, 0, Spawn)
  141. Dialog.AddOption("Well, you better create a contract now then! You don't want to miss out on this opportunity, do you?","Dialog9")
  142. Dialog.Start()
  143. end
  144. function Dialog9(NPC, Spawn)
  145. SetTempVariable(NPC,"TalkCheck",nil)
  146. SetStepComplete(Spawn,Mage1,3)
  147. FaceTarget(NPC, Spawn)
  148. Dialog.New(NPC, Spawn)
  149. Dialog.AddDialog("Of course, of course, of course I do! Just sign this paper here... and here. HA! I'm rich! I'm rich!!! You let Miss Stuffy-Britches know that this contract is permanent! She HAS to buy all forty bottles from me!!! HAHAHA!!! Leave me alone while I count all of my upcoming money. let's see... one twentieth of ten gold pieces times forty... hmmm... carry the four.... add three... nonono... let me start over...")
  150. Dialog.AddVoiceover("voiceover/english/alchemist_aulus_crispian/fprt_north/mer_auluscrispian009.mp3", 3567139814, 490741090)
  151. PlayFlavor(NPC, "","", "happy", 0, 0, Spawn)
  152. Dialog.AddOption("Nice doing business with you...","continue")
  153. Dialog.Start()
  154. end
  155. function continue(NPC,Spawn)
  156. end