9
3

GenericTradeskillTutor.lua 43 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637
  1. --[[
  2. Script Name : SpawnScripts/Generic/GenericTradeskillTutor.lua
  3. Script Purpose : <Tradeskill Tutorial>
  4. Script Author : theFoof
  5. Script Date : 2013.09.28
  6. Script Notes : Generic script for tradeskill tutors
  7. --]]
  8. local HarvestTutorial = 11
  9. local HadAHammer = 12
  10. local ForgingAhead = 91
  11. local CounteringProblems = 92
  12. local TutorialCook = 93
  13. local TutorialWeapons = 94
  14. local TutorialScrolls = 95
  15. local TutorialExperiments = 96
  16. local TutorialOutfitting = 97
  17. function spawn(NPC)
  18. ProvidesTutorials(NPC)
  19. end
  20. function ProvidesTutorials(NPC)
  21. ProvidesQuest(NPC, HarvestTutorial)
  22. ProvidesQuest(NPC, ForgingAhead)
  23. ProvidesQuest(NPC, CounteringProblems)
  24. ProvidesQuest(NPC, TutorialCook)
  25. ProvidesQuest(NPC, TutorialWeapons)
  26. ProvidesQuest(NPC, TutorialScrolls)
  27. ProvidesQuest(NPC, TutorialExperiments)
  28. ProvidesQuest(NPC, TutorialOutfitting)
  29. end
  30. function respawn(NPC)
  31. spawn(NPC)
  32. end
  33. function hailed(NPC, Spawn)
  34. CraftingTutorHail(NPC, Spawn)
  35. end
  36. function CraftingTutorHail(NPC, Spawn)
  37. FaceTarget(NPC, Spawn)
  38. conversation = CreateConversation()
  39. if GetQuestStep(Spawn, HadAHammer) == 5 then
  40. SetStepComplete(Spawn, HadAHammer, 5)
  41. if not HasCompletedQuest(Spawn, ForgingAhead) then
  42. TutChat1(NPC, Spawn)
  43. end
  44. elseif not HasCompletedQuest(Spawn, HarvestTutorial) and not HasQuest(Spawn, HarvestTutorial) then
  45. AddConversationOption(conversation, "Yes please, I don't know much about that stuff.", "OfferHarvestTutorial")
  46. AddConversationOption(conversation, "Sure, I think I'm pretty comfortable with it all but I can always use a memory refresher.", "OfferHarvestTutorial")
  47. AddConversationOption(conversation, "No thanks, I have other things to do right now.")
  48. StartConversation(conversation, NPC, Spawn, "Hello friend! I'm here to teach interested people a little bit about how to harvest crafting materials, and how to craft tradeskilled items. Are you interested?")
  49. elseif LastStepHarvestTutorial(Spawn) then
  50. SetStepComplete(Spawn, HarvestTutorial, 8)
  51. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_3_1004.mp3", "", "", 0, 0, Spawn)
  52. AddConversationOption(conversation, "Thank you.")
  53. StartConversation(conversation, NPC, Spawn, "Excellent work learning about harvesting! As a reward, allow me to offer you this box for storing harvested items. It's quite heavy, so I suggest you put it in your bank rather than carrying it, but it has plenty of storage room for harvests.")
  54. elseif CanReceiveQuest(Spawn, ForgingAhead) then
  55. TutChat1(NPC, Spawn)
  56. elseif GetQuestStep(Spawn, ForgingAhead) == 1 then
  57. PlayFlavor(NPC, "", "Take your time. There's no rush!", "", 0, 0, Spawn)
  58. elseif GetQuestStep(Spawn, ForgingAhead) == 2 then
  59. Tut2Chat1(NPC, Spawn)
  60. elseif CanReceiveQuest(Spawn, CounteringProblems) then
  61. Tut2Chat1(NPC, Spawn)
  62. elseif GetQuestStep(Spawn, CounteringProblems) == 1 then
  63. PlayFlavor(NPC, "", "You'll get the hang of it. And don't forget, other crafters are often a valuable source of advice and tips.", "", 1689589577, 4560189, Spawn)
  64. elseif GetQuestStep(Spawn, CounteringProblems) == 2 then
  65. SetStepComplete(Spawn, CounteringProblems, 2)
  66. Tut3Chat1(NPC, Spawn)
  67. elseif CanReceiveQuest(Spawn, TutorialCook) then
  68. Tut3Chat1(NPC, Spawn)
  69. elseif GetQuestStep(Spawn, TutorialCook) == 1 then
  70. PlayFlavor(NPC, "", "Remember, you can buy essential provisioning ingredients such as liquid and dough from the fuel vendor.", "", 0, 0, Spawn)
  71. elseif GetQuestStep(Spawn, TutorialCook) == 2 then
  72. SetStepComplete(Spawn, TutorialCook, 2)
  73. Tut4Chat1(NPC, Spawn)
  74. elseif CanReceiveQuest(Spawn, TutorialWeapons) then
  75. Tut4Chat1(NPC, Spawn)
  76. elseif HasQuest(Spawn, TutorialWeapons) and (not QuestStepIsComplete(Spawn, TutorialWeapons, 1) or not QuestStepIsComplete(Spawn, TutorialWeapons, 2)) then
  77. PlayFlavor(NPC, "", "Remember to be careful when working with weapons. You wouldn't want to accidentally impale your fellow crafters.", "", 0, 0, Spawn)
  78. elseif HasQuest(Spawn, TutorialWeapons) and QuestStepIsComplete(Spawn, TutorialWeapons, 1) and QuestStepIsComplete(Spawn, TutorialWeapons, 2) then
  79. SetStepComplete(Spawn, TutorialWeapons, 3)
  80. Tut5Chat1(NPC, Spawn)
  81. elseif CanReceiveQuest(Spawn, TutorialScrolls) then
  82. Tut5Chat1(NPC, Spawn)
  83. elseif GetQuestStep(Spawn, TutorialScrolls) == 1 then
  84. PlayFlavor(NPC, "", "Ah, covered liberally with ink, I see. Good job. Keep at it!", "", 0, 0, Spawn)
  85. elseif GetQuestStep(Spawn, TutorialScrolls) == 2 then
  86. SetStepComplete(Spawn, TutorialScrolls, 2)
  87. Tut6Chat1(NPC, Spawn)
  88. elseif CanReceiveQuest(Spawn, TutorialExperiments) then
  89. Tut6Chat1(NPC, Spawn)
  90. elseif GetQuestStep(Spawn, TutorialExperiments) == 1 then
  91. PlayFlavor(NPC, "", "Be particularly careful at the chemistry table. More explosions originate in that area than anywhere else in the city...", "", 0, 0, Spawn)
  92. elseif GetQuestStep(Spawn, TutorialExperiments) == 2 then
  93. SetStepComplete(Spawn, TutorialExperiments, 2)
  94. Tut7Chat1(NPC, Spawn)
  95. elseif CanReceiveQuest(Spawn, TutorialOutfitting) then
  96. Tut7Chat1(NPC, Spawn)
  97. elseif HasQuest(Spawn, TutorialOutfitting) and (not QuestStepIsComplete(Player, 97, 1) or not QuestStepIsComplete(Player, 97, 2)) then
  98. PlayFlavor(NPC, "", "Take your time. It's dangerous to rush at the forge!", "", 0, 0, Spawn)
  99. elseif HasQuest(Spawn, TutorialOutfitting) and QuestStepIsComplete(Player, 97, 1) and QuestStepIsComplete(Player, 97, 2) then
  100. SetStepComplete(Spawn, TutorialOutfitting, 3)
  101. FinishedChat(NPC, Spawn)
  102. else
  103. FinishedChat2(NPC, Spawn)
  104. end
  105. end
  106. function TutChat1(NPC, Spawn)
  107. FaceTarget(NPC, Spawn)
  108. conversation = CreateConversation()
  109. PlayFlavor(NPC, "tradeskill_tutorial_master/tradeskill/tutorial/tradeskill_tutorial014.mp3", "", "", 423248729, 3231742282, Spawn)
  110. AddConversationOption(conversation, "Yes please.", "TutChat2")
  111. AddConversationOption(conversation, "Not now, thanks.")
  112. StartConversation(conversation, NPC, Spawn, "You have learned how to gather harvests, and whether or not you decide to learn a tradeskill profession, you'll find harvesting can be a useful and profitable pastime. Are you interested in reviewing the crafting process?")
  113. end
  114. function TutChat2(NPC, Spawn)
  115. FaceTarget(NPC, Spawn)
  116. conversation = CreateConversation()
  117. AddConversationOption(conversation, "Elm, tin, roots ... check. And I'd like to learn more before I start, yes.", "TutChat3")
  118. AddConversationOption(conversation, "No thanks, spare me the details, just tell me where to go.", "OfferForgingAhead")
  119. AddConversationOption(conversation, "Actually ... I'll be right back!")
  120. StartConversation(conversation, NPC, Spawn, "All right, let's learn about the crafting process itself. You'll need to have some harvested elm, tin, and roots in your bags. Shall I tell you a bit more about the crafting stations and your tradeskill arts, or do you want to just get going?")
  121. end
  122. function TutChat3(NPC, Spawn)
  123. FaceTarget(NPC, Spawn)
  124. conversation = CreateConversation()
  125. AddConversationOption(conversation, "And what skills will I need?", "TutChat4")
  126. StartConversation(conversation, NPC, Spawn, "There are a number of different crafting stations that can be used to make different items. For example, you would use a forge to make metal armor, and a chemistry table to make potions. The other crafting stations are: the sewing table, the woodworking table, the sage's engraved desk, the stove & keg, and the jeweler's workbench.")
  127. end
  128. function TutChat4(NPC, Spawn)
  129. FaceTarget(NPC, Spawn)
  130. conversation = CreateConversation()
  131. PlayFlavor(NPC, "bob_the_crafting_instructor/tradeskill/tutorial/tradeskill_tutorial011.mp3", "", "", 1844695369, 4279963855, Spawn)
  132. AddConversationOption(conversation, "So I need to use these tradeskill arts while crafting?", "TutChat5")
  133. StartConversation(conversation, NPC, Spawn, "Each of the 9 tradeskill professions has its own 6 tradeskill arts, and there are also a couple of special arts that are used for recipes not related directly to one tradeskill specialty. The appropriate arts will appear as buttons at the bottom of the crafting window when you start to make an item.")
  134. end
  135. function TutChat5(NPC, Spawn)
  136. FaceTarget(NPC, Spawn)
  137. conversation = CreateConversation()
  138. AddConversationOption(conversation, "So what happens next?", "TutChat6")
  139. StartConversation(conversation, NPC, Spawn, "That's right. If you mouse-over or examine the arts in your book, you should see what each of them do. Three will add progress, and three will add durability. When you're crafting you will want to be sure you know which ones add progress and which ones add durability. If you're having trouble maintaining durability, use all your durability arts all the time! Or to speed up progress, use the progress arts nonstop.")
  140. end
  141. function TutChat6(NPC, Spawn)
  142. FaceTarget(NPC, Spawn)
  143. conversation = CreateConversation()
  144. AddConversationOption(conversation, "Once I find the recipe I want to make, what then?", "TutChat7")
  145. StartConversation(conversation, NPC, Spawn, "The first step in crafting anything is the recipe. The recipe you select determines what you will create. Open your recipe book from the main menu, or press N, to see yours. If you're new to crafting it will be empty, but as you gain more recipes they will be listed here and you can use the Search box at the top of this window to easily find recipe names. You can also create custom filters using the Edit button. ")
  146. end
  147. function TutChat7(NPC, Spawn)
  148. FaceTarget(NPC, Spawn)
  149. conversation = CreateConversation()
  150. AddConversationOption(conversation, "I think I'm ready to give it a try.", "TutChat8")
  151. StartConversation(conversation, NPC, Spawn, "In this window you would select the name of the recipe you wish to use and then click Create. You will need to be near a crafting station of the appropriate type. If you click on the crafting station directly, your recipe book will automatically filter to show you only the recipes you can make on that station. Once you click Create, you will move to the Resource Window which shows you the list of ingredients that recipe requires. If you have all those, you click Begin and crafting starts.")
  152. end
  153. function TutChat8(NPC, Spawn)
  154. FaceTarget(NPC, Spawn)
  155. conversation = CreateConversation()
  156. AddConversationOption(conversation, "How do I stop losing durability then?", "TutChat9")
  157. StartConversation(conversation, NPC, Spawn, "I'd like you to make a candelabra for practice. While you craft it, I'd like you to pay attention to the blue and green bars in the middle area. This shows you your progress (blue), and the durability (green) of the item you are creating. The goal is to increase your progress without losing too much durability. To create the item, you need to fill all four blue progress bars. If you lose at least one full bar of durability, you will not be able to do this unless you can regain that durability again. It is safest to keep your durability near maximum just in case of unexpected critical failures.")
  158. end
  159. function TutChat9(NPC, Spawn)
  160. FaceTarget(NPC, Spawn)
  161. conversation = CreateConversation()
  162. AddConversationOption(conversation, "It might be easier if I just try it out, can I give it a try now?", "OfferForgingAhead")
  163. StartConversation(conversation, NPC, Spawn, "That's where the reaction arts I mentioned come in. You can use these to add progress (blue) or durability (green). Mouse click these or press 1 through 6 on your keyboard. You can use these skills proactively throughout crafting to influence the outcome - for example, use skills that add durability if your durability is dropping. Every 4 seconds a crafting 'round' completes and you will see numbers indicating your overall progress and durability loss or gain for that round above the crafting station. This is generally easier to see in third-person view (use your mouse wheel to scroll out).")
  164. end
  165. function Tut2Chat1(NPC, Spawn)
  166. FaceTarget(NPC, Spawn)
  167. conversation = CreateConversation()
  168. if not HasCompletedQuest(Spawn, ForgingAhead) then
  169. SetStepComplete(Spawn, ForgingAhead, 2)
  170. end
  171. PlayFlavor(NPC, "bob_the_crafting_instructor/tradeskill/tutorial/tradeskill_tutorial017.mp3", "", "", 1140694758, 2504376154, Spawn)
  172. AddConversationOption(conversation, "Like what?", "Tut2Chat2")
  173. StartConversation(conversation, NPC, Spawn, "Moving on to the next lesson, you should be aware that there are some hazards associated with crafting. Why, back in the old days, it wasn't unusual to see piles of injured bodies beside the forge! We've managed to build slightly less dangerous forges since then, but no matter what craft you choose, there are still dangers to counter.")
  174. end
  175. function Tut2Chat2(NPC, Spawn)
  176. FaceTarget(NPC, Spawn)
  177. conversation = CreateConversation()
  178. AddConversationOption(conversation, "I didn't see any of that while making the candelabra...", "OfferCounteringProblems")
  179. StartConversation(conversation, NPC, Spawn, "During the crafting process, you will sometimes see a warning icon appear in the area below the four progress bars. The warning icon will match one of your reaction art icons, and will have a name indicating the type of danger. The crafter can correct these problems by ensuring the next reaction art they use matches the icon of the warning. Successfully doing so will avoid bad things occurring (such as a loss of progress, or durability, or even injury to the crafter) and may also result in unusually good things happening (such as progress or durability gain, a skill bonus, or even the discovery of a rare harvest).")
  180. end
  181. function Tut3Chat1(NPC, Spawn)
  182. FaceTarget(NPC, Spawn)
  183. conversation = CreateConversation()
  184. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_2_1060.mp3", "", "", 0, 0, Spawn)
  185. AddConversationOption(conversation, "Yes please.", "Tut3Chat2")
  186. AddConversationOption(conversation, "Not right now.")
  187. StartConversation(conversation, NPC, Spawn, "Well done, I hope you avoided any serious injuries. So, now you know the basics of crafting, and I hope you understand how to obtain the best quality results while avoiding injury. Now, would you like to try a few more recipes to learn about the nine types of tradeskill you can specialize in?")
  188. end
  189. function Tut3Chat2(NPC, Spawn)
  190. FaceTarget(NPC, Spawn)
  191. conversation = CreateConversation()
  192. AddConversationOption(conversation, "So what next?", "Tut3Chat3")
  193. StartConversation(conversation, NPC, Spawn, "Well, let's see. You've made a candelabra using the carpenter skills, and learned that carpenters make items that can be placed in houses. Carpenters also make strong boxes for storage, and sales containers for selling items to others. You've also made a bracelet: jewelers make jewelry like this, and they also make combat art upgrades for scout types. ")
  194. end
  195. function Tut3Chat3(NPC, Spawn)
  196. FaceTarget(NPC, Spawn)
  197. conversation = CreateConversation()
  198. AddConversationOption(conversation, "I'll be right back with that cider!", "OfferTutorialCook")
  199. AddConversationOption(conversation, "Maybe later.")
  200. StartConversation(conversation, NPC, Spawn, "Now why don't you try your hand at provisioning, and make some jum jum cider? Food and drink help an adventurer's power and health to regenerate faster between battles, so a provisioner's goods are always in demand. You'll need some harvested jum jum, and some liquid, which the fuel merchant will sell (aerated mineral water works just fine, and adds that extra fizz). ")
  201. end
  202. function Tut4Chat1(NPC, Spawn)
  203. FaceTarget(NPC, Spawn)
  204. conversation = CreateConversation()
  205. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_2_1060.mp3", "", "", 0, 0, Spawn)
  206. AddConversationOption(conversation, "I'll do my best.", "OfferTutorialWeapons")
  207. AddConversationOption(conversation, "I'll think about it.")
  208. StartConversation(conversation, NPC, Spawn, "Next we'll look at weapons. These can be made by both weaponsmiths and woodworkers. Weaponsmiths are masters of metallic weaponry including swords, axes, daggers, and hammers. Woodworkers are skilled at working with wood, creating wooden weapons such as staffs, batons, and cudgels, as well as bows and arrows and wooden bucklers and round shields for the defense of their allies. They also craft powerful totems that possess restorative properties. Practice both crafts by making a tin hand axe, and an elm greatstaff.")
  209. end
  210. function Tut5Chat1(NPC, Spawn)
  211. FaceTarget(NPC, Spawn)
  212. conversation = CreateConversation()
  213. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_1_1060.mp3", "", "", 0, 0, Spawn)
  214. AddConversationOption(conversation, "I'll start now.", "OfferTutorialScrolls")
  215. AddConversationOption(conversation, "Not right now.")
  216. StartConversation(conversation, NPC, Spawn, "Sages possess an unsurpassed knowledge of the arcane. They apply this knowledge by scribing spells onto scrolls that increase the might of healers and mages. Create a Scroll of Shackle and bring it to me.")
  217. end
  218. function Tut6Chat1(NPC, Spawn)
  219. FaceTarget(NPC, Spawn)
  220. conversation = CreateConversation()
  221. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_3_1060.mp3", "", "", 0, 0, Spawn)
  222. AddConversationOption(conversation, "On my way.", "OfferTutorialExperiments")
  223. AddConversationOption(conversation, "Another time perhaps.")
  224. StartConversation(conversation, NPC, Spawn, "Excellent work. Now let's look at alchemists; they create deadly poisons and magic potions from almost any material, benign or otherwise. These concoctions provide benefits in battle, such as healing, resistance, or extra damage against a foe. Alchemists also make combat art upgrades for fighter types to improve their abilities in battle. Make me an Essence of Intercept to practice these skills.")
  225. end
  226. function Tut7Chat1(NPC, Spawn)
  227. FaceTarget(NPC, Spawn)
  228. conversation = CreateConversation()
  229. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_2_1060.mp3", "", "", 0, 0, Spawn)
  230. AddConversationOption(conversation, "Coat and a backpack coming up.", "OfferTutorialOutfitting")
  231. AddConversationOption(conversation, "Perhaps later.")
  232. StartConversation(conversation, NPC, Spawn, "Now let's look at tailors and armorers. Armorers focus on heavy plate and chain armor, while tailors specialize in the creation of lighter cloth and leather armor. Tailors also make backpacks and other items from cloth or leather. Show me that you can create a tin chainmail coat, and a rawhide backpack.")
  233. end
  234. function FinishedChat(NPC, Spawn)
  235. FaceTarget(NPC, Spawn)
  236. conversation = CreateConversation()
  237. PlayFlavor(NPC, "bob_the_crafting_instructor/tradeskill/tutorial/tradeskill_tutorial062.mp3", "", "", 2242637020, 2504678008, Spawn)
  238. AddConversationOption(conversation, "Thank you.")
  239. AddConversationOption(conversation, "Let me just ask you a couple more questions...", "FinishedChat2")
  240. StartConversation(conversation, NPC, Spawn, "Excellent work! I hope you now have an idea of what each tradeskill class does, and how to do it. At level 9 you'll need to decide which crafting path you will follow, by speaking to the Crafting Trainer near your local tradeskill area. The Crafting Trainer also sells your recipe books, so be sure to pick those up! Come back to me at any time and I'll be happy to give you refreshers on this information. Should you choose to continue a career as a crafter, I wish you the best of fortune!")
  241. end
  242. function FinishedChat2(NPC, Spawn)
  243. FaceTarget(NPC, Spawn)
  244. conversation = CreateConversation()
  245. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_2_1060.mp3", "", "", 0, 0, Spawn)
  246. AddConversationOption(conversation, "I have some questions about some of the stuff we already covered.", "RemindChat")
  247. AddConversationOption(conversation, "I heard something about commission crafting, what's that?", "CommissionChat1")
  248. AddConversationOption(conversation, "Where do I get recipe books for crafting?", "BookChat1")
  249. AddConversationOption(conversation, "Tell me about the different crafting classes?", "ClassChat1")
  250. AddConversationOption(conversation, "How do I choose what type of crafter I will be?", "TypeChat1")
  251. AddConversationOption(conversation, "How do I sell my stuff to other people?", "SellChat1")
  252. AddConversationOption(conversation, "I heard something about secondary crafts, tinkering and transmuting. What are they?", "SecChat1")
  253. AddConversationOption(conversation, "Thank you.")
  254. StartConversation(conversation, NPC, Spawn, "Would you like some more information, or some reminders of what we already talked about?")
  255. end
  256. function CommissionChat1(NPC, Spawn)
  257. FaceTarget(NPC, Spawn)
  258. conversation = CreateConversation()
  259. PlayFlavor(NPC, "bob_the_crafting_instructor/tradeskill/tutorial/tradeskill_tutorial035.mp3", "", "", 2388752041, 1908343081, Spawn)
  260. AddConversationOption(conversation, "How do I do it?", "CommissionChat2")
  261. StartConversation(conversation, NPC, Spawn, "The commission crafting system enables a crafter to make an item for a customer without requiring the customer to hand over any ingredients. It can be used for almost any recipe, but is most often used for crafting rare items when the customer and crafter may not know each other and may not wish to hand over a rare on trust.")
  262. end
  263. function CommissionChat2(NPC, Spawn)
  264. FaceTarget(NPC, Spawn)
  265. conversation = CreateConversation()
  266. PlayFlavor(NPC, "bob_the_crafting_instructor/tradeskill/tutorial/tradeskill_tutorial036.mp3", "", "", 2552516382, 2887530961, Spawn)
  267. AddConversationOption(conversation, "So instead of targetting the crafting station I target the customer.", "CommissionChat3")
  268. StartConversation(conversation, NPC, Spawn, "To craft something for a customer using the commission system, have the customer meet you by the appropriate crafting station, bringing with him the components needed by the recipe. Open your recipe book and select the appropriate recipe, then target the customer, and then click Create.")
  269. end
  270. function CommissionChat3(NPC, Spawn)
  271. FaceTarget(NPC, Spawn)
  272. conversation = CreateConversation()
  273. PlayFlavor(NPC, "bob_the_crafting_instructor/tradeskill/tutorial/tradeskill_tutorial037.mp3", "", "", 691734143, 271413200, Spawn)
  274. AddConversationOption(conversation, "And when he's provided everything we agree on?", "CommissionChat4")
  275. StartConversation(conversation, NPC, Spawn, "Correct. When you target the customer and click Create, a new window will open. The customer needs to provide the primary component that the recipe requires (the first one listed) in the first slot in this window. He can provide all the other components also by putting them in this window too, or they can be in your bags, he is only required to provide the primary one. Also in this window he can add coin for payment, or an item to trade in payment.")
  276. end
  277. function CommissionChat4(NPC, Spawn)
  278. FaceTarget(NPC, Spawn)
  279. conversation = CreateConversation()
  280. PlayFlavor(NPC, "bob_the_crafting_instructor/tradeskill/tutorial/tradeskill_tutorial038.mp3", "", "", 4067745103, 1643379768, Spawn)
  281. AddConversationOption(conversation, "Thank you.", "FinishedChat2")
  282. StartConversation(converastion, NPC, Spawn, "When you both click to accept the deal, your crafting process will begin just as it normally does. Complete the item, and the finished product will drop directly into your customer's bags. Any payment placed in the commission window will go into your own bags. Easy as that.")
  283. end
  284. function BookChat1(NPC, Spawn)
  285. FaceTarget(NPC, Spawn)
  286. conversation = CreateConversation()
  287. PlayFlavor(NPC, "bob_the_crafting_instructor/tradeskill/tutorial/tradeskill_tutorial039.mp3", "", "", 3191451903, 1275472191, Spawn)
  288. AddConversationOption(conversation, "And they'll sell all my recipes?", "BookChat2")
  289. StartConversation(conversation, NPC, Spawn, 'Recipe books can be purchased from vendors with the "Crafting Trainer" label. Typically these will be found near a crafting area. In Qeynos and Freeport they are normally standing just outside the tradeskill instances. In other cities they should be near the crafting stations.')
  290. end
  291. function BookChat2(NPC, Spawn)
  292. FaceTarget(NPC, Spawn)
  293. conversation = CreateConversation()
  294. PlayFlavor(NPC, "bob_the_crafting_instructor/tradeskill/tutorial/tradeskill_tutorial040.mp3", "", "", 2091121926, 301972007, Spawn)
  295. AddConversationOption(conversation, "That's it? " .. '"Essentials" books from the Crafting Trainer and "Advanced" books found out adventuring?', "BookChat3")
  296. StartConversation(conversation, NPC, Spawn, 'They will sell your "essentials" books. These contain the basic recipes you need for making handcrafted items. "Advanced" books containing recipes for mastercrafted items (using rare harvests) are found by adventurers after level 9, and you' .. "'ll need to trade with your fellow adventurers, or check the broker, or go out hunting to find these.")
  297. end
  298. function BookChat3(NPC, Spawn)
  299. FaceTarget(NPC, Spawn)
  300. conversation = CreateConversation()
  301. PlayFlavor(NPC, "bob_the_crafting_instructor/tradeskill/tutorial/tradeskill_tutorial041.mp3", "", "", 1044382648, 4108876671, Spawn)
  302. AddConversationOption(conversation, "Thank you.", "FinishedChat2")
  303. StartConversation(conversation, NPC, Spawn, 'Almost. There are occasionally other recipes that can be obtained in other ways, such as by adventuring or questing in certain areas. The majority of your recipes are covered by the "essentials" and "advanced" books however.')
  304. end
  305. function ClassChat1(NPC, Spawn)
  306. FaceTarget(NPC, Spawn)
  307. conversation = CreateConversation()
  308. PlayFlavor(NPC, "bob_the_crafting_instructor/tradeskill/tutorial/tradeskill_tutorial042.mp3", "", "", 1622424773, 1570512432, Spawn)
  309. AddConversationOption(conversation, "What are craftsmen?", "ClassChat2")
  310. AddConversationOption(conversation, "What are outfitters?", "ClassChat3")
  311. AddConversationOption(conversation, "What are scholars?", "ClassChat4")
  312. AddConversationOption(conversation, "I was wondering about something else.", "FinishedChat2")
  313. StartConversation(conversation, NPC, Spawn, "There are nine primary tradeskill classes, plus two secondary crafts. I'll focus on the primary nine right now. These are divided into three archetypes: craftsman, outfitter, and scholar.")
  314. end
  315. function ClassChat2(NPC, Spawn)
  316. FaceTarget(NPC, Spawn)
  317. conversation = CreateConversation()
  318. PlayFlavor(NPC, "bob_the_crafting_instructor/tradeskill/tutorial/tradeskill_tutorial043.mp3", "", "", 4227555374, 506326062, Spawn)
  319. AddConversationOption(conversation, "I see.", "ClassChat1")
  320. StartConversation(conversation, NPC, Spawn, "The three classes of craftsmen are: carpenter, provisioner, and woodworker Carpenters make furniture for decorating your home, strong boxes for bank storage, altars, and sales containers for use on the broker. Provisioners make food and drink to keep adventurers fighting in top form. And woodworkers make wooden weapons and shields, bows and arrows, magical totems, and harvesting tools.")
  321. end
  322. function ClassChat3(NPC, Spawn)
  323. FaceTarget(NPC, Spawn)
  324. conversation = CreateConversation()
  325. PlayFlavor(NPC, "bob_the_crafting_instructor/tradeskill/tutorial/tradeskill_tutorial044.mp3", "", "", 2305144148, 2262225750, Spawn)
  326. AddConversationOption(conversation, "I see.", "ClassChat1")
  327. StartConversation(conversation, NPC, Spawn, "Outfitters are armorers, tailors, and weaponsmiths. Armorers specialize in plate and chainmail armor, and metal shields. Tailors make cloth and leather armor, fancy dress clothing, hex dolls, backpacks, and containers for thrown ammo. Weaponsmiths specialize in metal weapons of all types.")
  328. end
  329. function ClassChat4(NPC, Spawn)
  330. FaceTarget(NPC, Spawn)
  331. conversation = CreateConversation()
  332. PlayFlavor(NPC, "bob_the_crafting_instructor/tradeskill/tutorial/tradeskill_tutorial045.mp3", "", "", 147861749, 3375095704, Spawn)
  333. AddConversationOption(conversation, "I see.", "ClassChat1")
  334. StartConversation(conversation, NPC, Spawn, "Scholars are alchemists, jewelers, and sages. Alchemists specialize in potions and poisons, and also make combat art upgrades for fighter types. Jewelers make items of jewelry, and also combat art upgrades for scout types. And sages make spell upgrades for mages and healers.")
  335. end
  336. function TypeChat1(NPC, Spawn)
  337. FaceTarget(NPC, Spawn)
  338. conversation = CreateConversation()
  339. PlayFlavor(NPC, "bob_the_crafting_instructor/tradeskill/tutorial/tradeskill_tutorial046.mp3", "", "", 152150944, 1842039471, Spawn)
  340. AddConversationOption(conversation, "Then what?", "TypeChat2")
  341. StartConversation(conversation, NPC, Spawn, "When you reach level 9, you will need to decide which of the three main archetypes you will become: craftsman, outfitter, or scholar. When you have decided, speak to the Crafting Trainer near your local tradeskill area to register for that line of work. Typically these will be found near a crafting area. In Qeynos and Freeport they are normally standing just outside the tradeskill instances. In other cities they should be near the crafting stations.")
  342. end
  343. function TypeChat2(NPC, Spawn)
  344. FaceTarget(NPC, Spawn)
  345. conversation = CreateConversation()
  346. PlayFlavor(NPC, "bob_the_crafting_instructor/tradeskill/tutorial/tradeskill_tutorial047.mp3", "", "", 2169201999, 3543807969, Spawn)
  347. AddConversationOption(conversation, "What if I change my mind?", "TypeChat3")
  348. StartConversation(conversation, NPC, Spawn, "That's all you have to do to choose your archetype. Later, at level 19, you will need to choose your final profession. Simply return to the same crafting trainer to select.")
  349. end
  350. function TypeChat3(NPC, Spawn)
  351. FaceTarget(NPC, Spawn)
  352. conversation = CreateConversation()
  353. PlayFlavor(NPC, "bob_the_crafting_instructor/tradeskill/tutorial/tradeskill_tutorial048.mp3", "", "", 2654967587, 4062785753, Spawn)
  354. AddConversationOption(conversation, "Thank you.", "FinishedChat2")
  355. StartConversation(conversation, NPC, Spawn, "There are a number of tradeskill career counsellors who can assist you in changing your crafting profession if you wish to do so. This will reset your crafting level to 9 and remove any recipes you can no longer use.")
  356. end
  357. function SellChat1(NPC, Spawn)
  358. FaceTarget(NPC, Spawn)
  359. conversation = CreateConversation()
  360. PlayFlavor(NPC, "bob_the_crafting_instructor/tradeskill/tutorial/tradeskill_tutorial049.mp3", "", "", 2757229171, 476797749, Spawn)
  361. AddConversationOption(conversation, "What are the specialized containers for?", "SellChat2")
  362. StartConversation(conversation, NPC, Spawn, "Many crafters build up personal relationships with customers and deal directly with interested parties. However, you also have the option of listing your goods for sale on the broker. Brokers are located in all major cities, just ask a guard if you need help finding one. You can use any container such as a box or backpack to sell items from, or carpenters can make specialized sales containers from level 20 upward.")
  363. end
  364. function SellChat2(NPC, Spawn)
  365. FaceTarget(NPC, Spawn)
  366. conversation = CreateConversation()
  367. PlayFlavor(NPC, "bob_the_crafting_instructor/tradeskill/tutorial/tradeskill_tutorial050.mp3", "", "", 3628788902, 1698576976, Spawn)
  368. AddConversationOption(conversation, "How do I get my money?", "SellChat3")
  369. StartConversation(conversation, NPC, Spawn, "Specialized sales containers can only be used on the broker, nowhere else. They are much larger than normal boxes or bags, and an image of these containers can be placed in your house so that customers can visit in person to buy from you, rather than purchasing through the broker. The broker charges a markup fee. so allowing your customers to buy directly and bypass this fee is generally good for business, once you start selling pricier items. These specialized containers require a rare wood to make; your local carpenter can give you more details.")
  370. end
  371. function SellChat3(NPC, Spawn)
  372. FaceTarget(NPC, Spawn)
  373. conversation = CreateConversation()
  374. PlayFlavor(NPC, "bob_the_crafting_instructor/tradeskill/tutorial/tradeskill_tutorial051.mp3", "", "", 2662949569, 2327521387, Spawn)
  375. AddConversationOption(conversation, "Thank you.", "FinishedChat2")
  376. StartConversation(conversation, NPC, Spawn, 'Place the items to sell in a container on the "sell" tab of the broker and set the prices you wish to sell them for. If they sell, you will be able to collect the coin from the same container that the item was in.The broker will continue to sell your goods for you, for the next couple of days even if you are not around at the time.')
  377. end
  378. function SecChat1(NPC, Spawn)
  379. FaceTarget(NPC, Spawn)
  380. conversation = CreateConversation()
  381. PlayFlavor(NPC, "bob_the_crafting_instructor/tradeskill/tutorial/tradeskill_tutorial052.mp3", "", "", 3509946126, 2374520501, Spawn)
  382. AddConversationOption(conversation, "What's tinkering?", "SecChat2")
  383. AddConversationOption(conversation, "What's adorning?", "SecChat3")
  384. AddConversationOption(conversation, "How do I learn to be a tinkerer or adorner?", "SecChat4")
  385. AddConversationOption(conversation, "I was wondering about something else.", "FinishedChat2")
  386. StartConversation(conversation, NPC, Spawn, "In addition to the nine primary tradeskills there are two secondary skills that can be learned. These are tinkering, and adorning. They can be learned by either adventurers or crafters, but your level in tinkering or adorning can never be higher than your primary tradeskill or your adventure level, whichever is higher.")
  387. end
  388. function SecChat2(NPC, Spawn)
  389. FaceTarget(NPC, Spawn)
  390. conversation = CreateConversation()
  391. PlayFlavor(NPC, "bob_the_crafting_instructor/tradeskill/tutorial/tradeskill_tutorial053.mp3", "", "", 2218048793, 640438305, Spawn)
  392. AddConversationOption(conversation, "I see.", "SecChat1")
  393. StartConversation(conversation, NPC, Spawn, "Tinkering is the process created by gnomes many centuries ago. It is the art of making mechanical gadgets and gizmos to make life a little easier. You can create devices that will enhance your own abilities in combat; most of these can only be safely operated by yourself and other tinkers, however, as the mechanisms are far too complex for non-tinkerers to understand. Since many tinkered items are adventuring-related, it can be a useful secondary craft to augment an adventurer's abilities.")
  394. end
  395. function SecChat3(NPC, Spawn)
  396. FaceTarget(NPC, Spawn)
  397. conversation = CreateConversation()
  398. PlayFlavor(NPC, "bob_the_crafting_instructor/tradeskill/tutorial/tradeskill_tutorial054.mp3", "", "", 2713361023, 2617196209, Spawn)
  399. AddConversationOption(conversation, "I see.", "SecChat1")
  400. StartConversation(conversation, NPC, Spawn, "Adorning is the art of making Adornments: items that can be applied to your equipment to permanently enhance the equipment's stats. To make these, you will need components created by breaking down unused items into raw components using the Transmuting skill. Everybody has the Transmuting skill, but only those who have studied as adorners can make adornments.")
  401. end
  402. function SecChat4(NPC, Spawn)
  403. FaceTarget(NPC, Spawn)
  404. conversation = CreateConversation()
  405. PlayFlavor(NPC, "bob_the_crafting_instructor/tradeskill/tutorial/tradeskill_tutorial055.mp3", "", "", 1159059080, 4034407978, Spawn)
  406. AddConversationOption(conversation, "I see.", "SecChat1")
  407. StartConversation(conversation, NPC, Spawn, "You can only learn tinkering and adorning in Faydwer, where the skills originate. You will find trainers at the docks in Butcherblock Mountains, as well as in Kelethin. You can be both a tinkerer and an adorner if you wish. Everybody already has the transmuting skill which is used to make components that adorners use, and you can learn to use this even if you choose not to be an adorner.")
  408. end
  409. function RemindChat(NPC, Spawn)
  410. FaceTarget(NPC, Spawn)
  411. conversation = CreateConversation()
  412. PlayFlavor(NPC, "bob_the_crafting_instructor/tradeskill/tutorial/tradeskill_tutorial063.mp3", "", "", 979701411, 1286564366, Spawn)
  413. AddConversationOption(conversation, "Tell me again where I can find harvests to craft with?", "HarvestChat")
  414. AddConversationOption(conversation, "Tell me again about my tradeskill reaction arts and how to use them?", "ReactionChat")
  415. AddConversationOption(conversation, "Tell me again about the recipe window?", "WindowChat")
  416. AddConversationOption(conversation, "Tell me again about the crafting (or process) window, where the crafting itself takes place?", "CraftChat")
  417. AddConversationOption(conversation, 'Tell me again what happens during a "round" of crafting, and when?', "RoundChat")
  418. AddConversationOption(conversation, "Thanks for the reminders.", "FinishedChat2")
  419. StartConversation(conversation, NPC, Spawn, "What would you like to review?")
  420. end
  421. function HarvestChat(NPC, Spawn)
  422. FaceTarget(NPC, Spawn)
  423. conversation = CreateConversation()
  424. PlayFlavor(NPC, "bob_the_crafting_instructor/tradeskill/tutorial/tradeskill_tutorial032.mp3", "", "", 1760845253, 634861670, Spawn)
  425. AddConversationOption(conversation, "Thanks.", "RemindChat")
  426. StartConversation(conversation, NPC, Spawn, "Harvesting resources tend to be segregated by areas - for example, you'll find harvests for making equipment for level 1-9 adventurers, in the same areas where you'll find level 1-9 adventurers hunting. There are seven types of harvestable item: wood, roots, ore, soft metal, animal dens, shrubs, and fish.")
  427. end
  428. function ReactionChat(NPC, Spawn)
  429. FaceTarget(NPC, Spawn)
  430. conversation = CreateConversation()
  431. PlayFlavor(NPC, "bob_the_crafting_instructor/tradeskill/tutorial/tradeskill_tutorial055.mp3", "", "", 1159059080, 4034407978, Spawn)
  432. AddConversationOption(conversation, "And how do they work?", "ReactionChat2")
  433. StartConversation(conversation, NPC, Spawn, "You can only learn tinkering and adorning in Faydwer, where the skills originate. You will find trainers at the docks in Butcherblock Mountains, as well as in Kelethin. You can be both a tinkerer and an adorner if you wish. Everybody already has the transmuting skill which is used to make components that adorners use, and you can learn to use this even if you choose not to be an adorner.")
  434. end
  435. function ReactionChat2(NPC, Spawn)
  436. FaceTarget(NPC, Spawn)
  437. conversation = CreateConversation()
  438. AddConversationOption(conversation, "Thank you.", "RemindChat")
  439. StartConversation(conversation, NPC, Spawn, "For any recipe, you will have six tradeskill arts that you can use if you want. If you mouse-over or examine the arts in your book, you should see what each of them do. Three will add progress, and three will add durability. There is also a cost associated with each. When you open up the crafting window, the correct skills you need will automatically appear at the bottom. Or, if you prefer, you can drag the ones you want onto a custom hotbar. Either way, when you're crafting you can click on these arts to add progress or durability to the item you are creating.")
  440. end
  441. function WindowChat(NPC, Spawn)
  442. FaceTarget(NPC, Spawn)
  443. conversation = CreateConversation()
  444. AddConversationOption(conversation, "Ok, I see the recipe list, what's next?", "WindowChat2")
  445. StartConversation(conversation, NPC, Spawn, "The first step in crafting anything is the recipe. The recipe you select determines what you will create. Open your recipe book from the main menu, or press N, to see yours. If you're new to crafting it will be empty, but as you gain more recipes they will be listed here and you can use the Search box at the top of this window to easily find recipe names. You can also create custom filters using the Edit button.")
  446. end
  447. function WindowChat2(NPC, Spawn)
  448. FaceTarget(NPC, Spawn)
  449. conversation = CreateConversation()
  450. PlayFlavor(NPC, "bob_the_crafting_instructor/tradeskill/tutorial/tradeskill_tutorial031.mp3", "", "", 298839722, 3210850444, Spawn)
  451. AddConversationOption(conversation, "Thank you.", "RemindChat")
  452. StartConversation(conversation, NPC, Spawn, "In the recipe list you would select the name of the recipe you wish to use, and then click Create. You will need to be at a crafting station of the appropriate type. Once you click Create, you will move to the Resource Window which shows you the list of ingredients that recipe requires. If you have all those, you click Begin and crafting starts.")
  453. end
  454. function CraftChat(NPC, Spawn)
  455. FaceTarget(NPC, Spawn)
  456. conversation = CreateConversation()
  457. AddConversationOption(conversation, "And what then?", "CraftChat2")
  458. StartConversation(conversation, NPC, Spawn, "While you craft an item, pay attention to the four blue and green horizontal bars in the middle area. This shows you your progress (blue), and the durability (green) of the item you are creating. The reaction arts you'll need are found at the bottom of this window.")
  459. end
  460. function CraftChat2(NPC, Spawn)
  461. FaceTarget(NPC, Spawn)
  462. conversation = CreateConversation()
  463. AddConversationOption(conversation, "Thank you.", "RemindChat")
  464. StartConversation(conversation, NPC, Spawn, "The goal is to increase your progress without losing too much durability. To create the item, you need to fill all four blue progress bars. If you lose too much durability (green), you will not be able to do this. Use your reaction arts to add durability if you lose too much. If you have plenty of durability, you can use your arts to add progress so you get a finished product faster.")
  465. end
  466. function RoundChat(NPC, Spawn)
  467. FaceTarget(NPC, Spawn)
  468. conversation = CreateConversation()
  469. PlayFlavor(NPC, "bob_the_crafting_instructor/tradeskill/tutorial/tradeskill_tutorial033.mp3", "", "", 3851565796, 3556907959, Spawn)
  470. AddConversationOption(conversation, "Okay, let's assume I do that, or there was no warning ... then what?", "RoundChat2")
  471. StartConversation(conversation, NPC, Spawn, 'A "crafting round" lasts for 4 seconds. At the start of the 4 seconds, there is a chance that a warning icon will appear in your crafting window. If this happens, you have the remainder of the round to counter it: the first reaction art you use must match the icon of the warning.')
  472. end
  473. function RoundChat2(NPC, Spawn)
  474. FaceTarget(NPC, Spawn)
  475. conversation = CreateConversation()
  476. PlayFlavor(NPC, "bob_the_crafting_instructor/tradeskill/tutorial/tradeskill_tutorial034.mp3", "", "", 1493508972, 307622314, Spawn)
  477. AddConversationOption(conversation, "Thank you.", "RemindChat")
  478. StartConversation(conversation, NPC, Spawn, "You then have the remainder of the round to use any other reaction arts you wish to... or do nothing if you prefer. At the end of the round, your total progress and durability gain/loss will be adjusted, and you will see the appropriate numbers floating up from the crafting station.")
  479. end
  480. function LastStepHarvestTutorial(Spawn)
  481. --Return if all 7 steps before the final step are completed
  482. if HasQuest(Spawn, HarvestTutorial) then
  483. return (QuestStepIsComplete(Spawn, HarvestTutorial, 1) and QuestStepIsComplete(Spawn, HarvestTutorial, 2) and QuestStepIsComplete(Spawn, HarvestTutorial, 3) and QuestStepIsComplete(Spawn, HarvestTutorial, 4) and QuestStepIsComplete(Spawn, HarvestTutorial, 5) and QuestStepIsComplete(Spawn, HarvestTutorial, 6) and QuestStepIsComplete(Spawn, HarvestTutorial, 7))
  484. else
  485. return false
  486. end
  487. end
  488. function OfferHarvestTutorial(NPC, Spawn)
  489. OfferQuest(NPC, Spawn, HarvestTutorial)
  490. end
  491. function OfferForgingAhead(NPC, Spawn)
  492. OfferQuest(NPC, Spawn, ForgingAhead)
  493. end
  494. function OfferCounteringProblems(NPC, Spawn)
  495. OfferQuest(NPC, Spawn, CounteringProblems)
  496. end
  497. function OfferTutorialCook(NPC, Spawn)
  498. OfferQuest(NPC, Spawn, TutorialCook)
  499. end
  500. function OfferTutorialWeapons(NPC, Spawn)
  501. OfferQuest(NPC, Spawn, TutorialWeapons)
  502. end
  503. function OfferTutorialScrolls(NPC, Spawn)
  504. OfferQuest(NPC, Spawn, TutorialScrolls)
  505. end
  506. function OfferTutorialExperiments(NPC, Spawn)
  507. OfferQuest(NPC, Spawn, TutorialExperiments)
  508. end
  509. function OfferTutorialOutfitting(NPC, Spawn)
  510. OfferQuest(NPC, Spawn, TutorialOutfitting)
  511. end