9
3

TrainerValtteriYliveri.lua 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266
  1. --[[
  2. Script Name : SpawnScripts/GreaterFaydark/TrainerValtteriYliveri.lua
  3. Script Purpose : Trainer Valtteri Yliveri <Keeper of Magical and Martial Knowledge>
  4. Script Author : John Adams
  5. Script Date : 2009.03.01
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. function spawn(NPC)
  9. SetPlayerProximityFunction(NPC, 10, "InRange", "LeaveRange")
  10. end
  11. function respawn(NPC)
  12. spawn(NPC)
  13. end
  14. function InRange(NPC, Spawn)
  15. end
  16. function LeaveRange(NPC, Spawn)
  17. end
  18. function hailed(NPC, Spawn)
  19. FaceTarget(NPC, Spawn)
  20. conversation = CreateConversation()
  21. PlayFlavor(NPC, "voiceover/english/exp03_questvo/trainer_valtteri_yliveri/_exp03/exp03_cty_kelethin/tutorials/qst_valtteri/qst_valtteri001.mp3", "", "", 936350332, 90364249, Spawn)
  22. AddConversationOption(conversation, "Let us begin.", "dlg_55_1")
  23. AddConversationOption(conversation, "I will return later.")
  24. StartConversation(conversation, NPC, Spawn, "Greetings, adventurer! On behalf of Queen Amree of the Fae, I'm here to explain something very important: how your Spells, Combat Arts, and Abilities work, as well as how to improve them. It is my pleasure to share my vast knowledge with you!")
  25. end
  26. function dlg_55_1(NPC, Spawn)
  27. FaceTarget(NPC, Spawn)
  28. conversation = CreateConversation()
  29. PlayFlavor(NPC, "voiceover/english/exp03_questvo/trainer_valtteri_yliveri/_exp03/exp03_cty_kelethin/tutorials/qst_valtteri/qst_valtteri002.mp3", "", "", 2453379956, 3310442892, Spawn)
  30. AddConversationOption(conversation, "Tell me about Spells.", "dlg_55_2")
  31. AddConversationOption(conversation, "Tell me about Combat Arts.")
  32. AddConversationOption(conversation, "Tell me about Abilities.")
  33. AddConversationOption(conversation, "Where do I find my Spells, Combat Arts, and Abilities?")
  34. AddConversationOption(conversation, "How do I obtain and improve my Spells and Combat Arts?")
  35. AddConversationOption(conversation, "I will return for instruction later.")
  36. StartConversation(conversation, NPC, Spawn, "I am here to answer your questions. What can I help you with?")
  37. end
  38. function dlg_55_2(NPC, Spawn)
  39. FaceTarget(NPC, Spawn)
  40. conversation = CreateConversation()
  41. PlayFlavor(NPC, "voiceover/english/exp03_questvo/trainer_valtteri_yliveri/_exp03/exp03_cty_kelethin/tutorials/qst_valtteri/qst_valtteri003.mp3", "", "", 19488271, 366896859, Spawn)
  42. AddConversationOption(conversation, "Who uses Spells?", "dlg_55_3")
  43. AddConversationOption(conversation, "I will return for instruction later.")
  44. StartConversation(conversation, NPC, Spawn, "A Spell is a magical ability, and spells have a variety of uses. Some allow you to damage an enemy, while others might provide benefits to yourself or an ally. You can hold your mouse pointer over a Spell's icon to see a description of what it does, or right-click on it and select 'Examine.'")
  45. end
  46. function dlg_55_3(NPC, Spawn)
  47. FaceTarget(NPC, Spawn)
  48. conversation = CreateConversation()
  49. PlayFlavor(NPC, "voiceover/english/exp03_questvo/trainer_valtteri_yliveri/_exp03/exp03_cty_kelethin/tutorials/qst_valtteri/qst_valtteri004.mp3", "", "", 2334805237, 1906671194, Spawn)
  50. AddConversationOption(conversation, "I have more questions.", "dlg_55_4")
  51. AddConversationOption(conversation, "I will return for instruction later.")
  52. StartConversation(conversation, NPC, Spawn, "Mages, priests, paladins, shadowknights, troubadors, and dirges all cast Spells. Each class has a list of Spells that's unique. While other classes may have similar Spells, no one has capabilities exactly like that of another class. Also, certain magical items may be imbued with Spell effects that can be cast or that activate on their own.")
  53. end
  54. function dlg_55_4(NPC, Spawn)
  55. FaceTarget(NPC, Spawn)
  56. conversation = CreateConversation()
  57. PlayFlavor(NPC, "voiceover/english/exp03_questvo/trainer_valtteri_yliveri/_exp03/exp03_cty_kelethin/tutorials/qst_valtteri/qst_valtteri002.mp3", "", "", 2453379956, 3310442892, Spawn)
  58. AddConversationOption(conversation, "Tell me about Spells.", "dlg_55_5")
  59. AddConversationOption(conversation, "Tell me about Combat Arts.")
  60. AddConversationOption(conversation, "Tell me about Abilities.")
  61. AddConversationOption(conversation, "Where do I find my Spells, Combat Arts, and Abilities?")
  62. AddConversationOption(conversation, "How do I obtain and improve my Spells and Combat Arts?")
  63. AddConversationOption(conversation, "I will return for instruction later.")
  64. StartConversation(conversation, NPC, Spawn, "I am here to answer your questions. What can I help you with?")
  65. end
  66. function dlg_55_5(NPC, Spawn)
  67. FaceTarget(NPC, Spawn)
  68. conversation = CreateConversation()
  69. PlayFlavor(NPC, "voiceover/english/exp03_questvo/trainer_valtteri_yliveri/_exp03/exp03_cty_kelethin/tutorials/qst_valtteri/qst_valtteri005.mp3", "", "", 3424416600, 3943456320, Spawn)
  70. AddConversationOption(conversation, "Who uses Combat Arts?")
  71. AddConversationOption(conversation, "I will return for instruction later.", "dlg_55_6")
  72. StartConversation(conversation, NPC, Spawn, "Combat Arts are a lot like Spells, but they usually take less time to cast and cannot be interrupted. As their name implies, many Combat Arts focus on some aspect of battle.")
  73. end
  74. function dlg_55_6(NPC, Spawn)
  75. FaceTarget(NPC, Spawn)
  76. conversation = CreateConversation()
  77. PlayFlavor(NPC, "voiceover/english/exp03_questvo/trainer_valtteri_yliveri/_exp03/exp03_cty_kelethin/tutorials/qst_valtteri/qst_valtteri006.mp3", "", "", 1083934086, 2427192984, Spawn)
  78. AddConversationOption(conversation, "I have more questions.", "dlg_55_7")
  79. AddConversationOption(conversation, "I will return for instruction later.")
  80. StartConversation(conversation, NPC, Spawn, "All fighters and scouts use Combat Arts. Each of these classes has unique Combat Arts that help distinguish them from other classes. Combat Arts have names and effects that fit the class that uses them.")
  81. end
  82. function dlg_55_7(NPC, Spawn)
  83. FaceTarget(NPC, Spawn)
  84. conversation = CreateConversation()
  85. PlayFlavor(NPC, "voiceover/english/exp03_questvo/trainer_valtteri_yliveri/_exp03/exp03_cty_kelethin/tutorials/qst_valtteri/qst_valtteri002.mp3", "", "", 2453379956, 3310442892, Spawn)
  86. AddConversationOption(conversation, "Tell me about Spells.", "dlg_55_8")
  87. AddConversationOption(conversation, "Tell me about Combat Arts.")
  88. AddConversationOption(conversation, "Tell me about Abilities.")
  89. AddConversationOption(conversation, "Where do I find my Spells, Combat Arts, and Abilities?")
  90. AddConversationOption(conversation, "How do I obtain and improve my Spells and Combat Arts?")
  91. AddConversationOption(conversation, "I will return for instruction later.")
  92. StartConversation(conversation, NPC, Spawn, "I am here to answer your questions. What can I help you with?")
  93. end
  94. function dlg_55_8(NPC, Spawn)
  95. FaceTarget(NPC, Spawn)
  96. conversation = CreateConversation()
  97. PlayFlavor(NPC, "voiceover/english/exp03_questvo/trainer_valtteri_yliveri/_exp03/exp03_cty_kelethin/tutorials/qst_valtteri/qst_valtteri007.mp3", "", "", 2389866686, 2371365661, Spawn)
  98. AddConversationOption(conversation, "How are Abilities different from Spells and Combat Arts?")
  99. AddConversationOption(conversation, "I will return for instruction later.")
  100. StartConversation(conversation, NPC, Spawn, "Abilities are general things your character can do, along with certain capabilities specific to your race. Some of your Abilities are extremely useful, such as Sprint, which allows you to run very fast for a short period of time. You can also Call for Help when you're in danger, or launch a Ranged Attack if you have a ranged weapon and, of course, ammo.")
  101. end
  102. function dlg_55_9(NPC, Spawn)
  103. FaceTarget(NPC, Spawn)
  104. conversation = CreateConversation()
  105. PlayFlavor(NPC, "voiceover/english/exp03_questvo/trainer_valtteri_yliveri/_exp03/exp03_cty_kelethin/tutorials/qst_valtteri/qst_valtteri008.mp3", "", "", 2279765563, 3684024592, Spawn)
  106. AddConversationOption(conversation, "I have more questions.", "dlg_55_10")
  107. AddConversationOption(conversation, "I will return for instruction later.")
  108. StartConversation(conversation, NPC, Spawn, "Unlike Spells and Combat Arts, Abilities cannot be upgraded. Most of your Abilities are received when you first begin your adventures in Norrath, although certain new ones can be granted as you become more experienced.")
  109. end
  110. function dlg_55_10(NPC, Spawn)
  111. FaceTarget(NPC, Spawn)
  112. conversation = CreateConversation()
  113. PlayFlavor(NPC, "voiceover/english/exp03_questvo/trainer_valtteri_yliveri/_exp03/exp03_cty_kelethin/tutorials/qst_valtteri/qst_valtteri002.mp3", "", "", 2453379956, 3310442892, Spawn)
  114. AddConversationOption(conversation, "Tell me about Spells.", "dlg_55_11")
  115. AddConversationOption(conversation, "Tell me about Combat Arts.")
  116. AddConversationOption(conversation, "Tell me about Abilities.")
  117. AddConversationOption(conversation, "Where do I find my Spells, Combat Arts, and Abilities?")
  118. AddConversationOption(conversation, "How do I obtain and improve my Spells and Combat Arts?")
  119. AddConversationOption(conversation, "I will return for instruction later.")
  120. StartConversation(conversation, NPC, Spawn, "I am here to answer your questions. What can I help you with?")
  121. end
  122. function dlg_55_11(NPC, Spawn)
  123. FaceTarget(NPC, Spawn)
  124. conversation = CreateConversation()
  125. PlayFlavor(NPC, "voiceover/english/exp03_questvo/trainer_valtteri_yliveri/_exp03/exp03_cty_kelethin/tutorials/qst_valtteri/qst_valtteri009.mp3", "", "", 1987652975, 3025156912, Spawn)
  126. AddConversationOption(conversation, "How do I use my Spells, Combat Arts, and Abilities?")
  127. AddConversationOption(conversation, "I will return for instruction later.")
  128. StartConversation(conversation, NPC, Spawn, "All your Spells and Combat Arts, as well as other Abilities, are found in your Knowledge Book. Press the K key to open it at any time, and click the name of the tab you wish to view: Abilities, Spells, or Combat Arts.")
  129. end
  130. function dlg_55_12(NPC, Spawn)
  131. FaceTarget(NPC, Spawn)
  132. conversation = CreateConversation()
  133. PlayFlavor(NPC, "voiceover/english/exp03_questvo/trainer_valtteri_yliveri/_exp03/exp03_cty_kelethin/tutorials/qst_valtteri/qst_valtteri010.mp3", "", "", 1721125392, 1598552634, Spawn)
  134. AddConversationOption(conversation, "I have more questions.", "dlg_55_13")
  135. AddConversationOption(conversation, "I will return for instruction later.")
  136. StartConversation(conversation, NPC, Spawn, "To use a Spell, Combat Art, or Ability, drag its icon from your Knowledge Book onto your hotbar. Some have already been placed there for you. To use one, simply click its icon on your hotbar or press the key assigned to it. You can open additional hotbars by right-clicking on a hotbar and selecting 'Open New Hotbar.'")
  137. end
  138. function dlg_55_13(NPC, Spawn)
  139. FaceTarget(NPC, Spawn)
  140. conversation = CreateConversation()
  141. PlayFlavor(NPC, "voiceover/english/exp03_questvo/trainer_valtteri_yliveri/_exp03/exp03_cty_kelethin/tutorials/qst_valtteri/qst_valtteri002.mp3", "", "", 2453379956, 3310442892, Spawn)
  142. AddConversationOption(conversation, "Tell me about Spells.", "dlg_55_14")
  143. AddConversationOption(conversation, "Tell me about Combat Arts.")
  144. AddConversationOption(conversation, "Tell me about Abilities.")
  145. AddConversationOption(conversation, "Where do I find my Spells, Combat Arts, and Abilities?")
  146. AddConversationOption(conversation, "How do I obtain and improve my Spells and Combat Arts?")
  147. AddConversationOption(conversation, "I will return for instruction later.")
  148. StartConversation(conversation, NPC, Spawn, "I am here to answer your questions. What can I help you with?")
  149. end
  150. function dlg_55_14(NPC, Spawn)
  151. FaceTarget(NPC, Spawn)
  152. conversation = CreateConversation()
  153. PlayFlavor(NPC, "voiceover/english/exp03_questvo/trainer_valtteri_yliveri/_exp03/exp03_cty_kelethin/tutorials/qst_valtteri/qst_valtteri011.mp3", "", "", 2108757362, 940715089, Spawn)
  154. AddConversationOption(conversation, "How can I judge the effectiveness of my Spells and Combat Arts?")
  155. AddConversationOption(conversation, "I will return for further instruction later.")
  156. StartConversation(conversation, NPC, Spawn, "Most of your Spells or Combat Arts are given to you as you advance in levels from 1 to 50 and will be automatically scribed in your Knowledge Book. Certain special Spells or Combat Arts can be obtained by doing quests. Once you are level 51 and higher, you must find new ways to purchase or obtain your new Spells and Combat Arts.")
  157. end
  158. function dlg_55_15(NPC, Spawn)
  159. FaceTarget(NPC, Spawn)
  160. conversation = CreateConversation()
  161. PlayFlavor(NPC, "voiceover/english/exp03_questvo/trainer_valtteri_yliveri/_exp03/exp03_cty_kelethin/tutorials/qst_valtteri/qst_valtteri012.mp3", "", "", 2145626237, 3819170760, Spawn)
  162. AddConversationOption(conversation, "How can I improve my Spells and Combat Arts?", "dlg_55_16")
  163. AddConversationOption(conversation, "I will return for further instruction later.")
  164. StartConversation(conversation, NPC, Spawn, "There are three main ranks of Spells and Combat Arts: Apprentice, Adept, and Master. Within each rank are up to four tiers of quality. Spells and Combat Arts that are automatically granted to you are usually given at the Apprentice I rank. You should always try to have the highest rank of your Spells and Combat Arts, because they gain effectiveness as you improve them.")
  165. end
  166. function dlg_55_16(NPC, Spawn)
  167. FaceTarget(NPC, Spawn)
  168. conversation = CreateConversation()
  169. PlayFlavor(NPC, "voiceover/english/exp03_questvo/trainer_valtteri_yliveri/_exp03/exp03_cty_kelethin/tutorials/qst_valtteri/qst_valtteri013.mp3", "", "", 272235720, 2321960215, Spawn)
  170. AddConversationOption(conversation, "What about other ranks of Spells and Arts?", "dlg_55_17")
  171. AddConversationOption(conversation, "I will return later.")
  172. StartConversation(conversation, NPC, Spawn, "You can buy Apprentice II versions of your first six levels of Spells or Combat Arts. You just purchase them from the appropriate merchant. When you go back up into Kelethin, you will find a Class Trainer that sells Apprentice II versions of your Spells or Combat Arts.")
  173. end
  174. function dlg_55_17(NPC, Spawn)
  175. FaceTarget(NPC, Spawn)
  176. conversation = CreateConversation()
  177. PlayFlavor(NPC, "voiceover/english/exp03_questvo/trainer_valtteri_yliveri/_exp03/exp03_cty_kelethin/tutorials/qst_valtteri/qst_valtteri017.mp3", "", "", 1752657986, 2894689158, Spawn)
  178. AddConversationOption(conversation, "Are there other ways to improve my Spells and Combat Arts?", "dlg_55_18")
  179. AddConversationOption(conversation, "I will return later.")
  180. StartConversation(conversation, NPC, Spawn, "You will also find more potent ranks of spells and arts as you defeat opponents in battle. Many enemies will carry Adept I versions of Spells and Combat Arts, while conquering some extremely powerful foes may result in the extremely rare Master I versions.")
  181. end
  182. function dlg_55_18(NPC, Spawn)
  183. FaceTarget(NPC, Spawn)
  184. conversation = CreateConversation()
  185. PlayFlavor(NPC, "voiceover/english/exp03_questvo/trainer_valtteri_yliveri/_exp03/exp03_cty_kelethin/tutorials/qst_valtteri/qst_valtteri014.mp3", "", "", 986284660, 3435757183, Spawn)
  186. AddConversationOption(conversation, "Are all my Spells and Combat Arts unique?", "dlg_55_19")
  187. AddConversationOption(conversation, "I will return for further instruction later.")
  188. StartConversation(conversation, NPC, Spawn, "In addition, certain crafters can make upgrades to your Spells and Combat Arts using harvested components. They can create Apprentice IV quality spells, as well as valuable Adept III scrolls using rare components. Buying from or trading with other players is an excellent way to upgrade your Spells and Combat Arts.")
  189. end
  190. function dlg_55_19(NPC, Spawn)
  191. FaceTarget(NPC, Spawn)
  192. conversation = CreateConversation()
  193. PlayFlavor(NPC, "voiceover/english/exp03_questvo/trainer_valtteri_yliveri/_exp03/exp03_cty_kelethin/tutorials/qst_valtteri/qst_valtteri015.mp3", "", "", 1198165250, 2103504074, Spawn)
  194. AddConversationOption(conversation, "How can I keep all these Spells and Arts straight in my Knowledge Book?", "dlg_55_20")
  195. AddConversationOption(conversation, "I will return for further instruction later.")
  196. StartConversation(conversation, NPC, Spawn, "As you advance in level, you will obtain many completely new abilities as well as more effective versions of Spells or Combat Arts you have already learned. The names and icons of these upgrades are often quite similar, but the newer versions are more effective. Again, you will want to obtain the highest rank of these new abilities that you can.")
  197. end
  198. function dlg_55_20(NPC, Spawn)
  199. FaceTarget(NPC, Spawn)
  200. conversation = CreateConversation()
  201. PlayFlavor(NPC, "voiceover/english/exp03_questvo/trainer_valtteri_yliveri/_exp03/exp03_cty_kelethin/tutorials/qst_valtteri/qst_valtteri016.mp3", "", "", 2671971735, 2047415775, Spawn)
  202. AddConversationOption(conversation, "I have more questions.", "dlg_55_21")
  203. AddConversationOption(conversation, "I will return for further instruction later.")
  204. StartConversation(conversation, NPC, Spawn, "Your Spells and Combat Arts can easily be organized according to your individual, personal taste. Just open your Knowledge Book and click the 'Sort' button in the upper right corner. This allows you to organize your Spells and Arts for easy access to the abilities that you wish to use.")
  205. end
  206. function dlg_55_21(NPC, Spawn)
  207. FaceTarget(NPC, Spawn)
  208. conversation = CreateConversation()
  209. PlayFlavor(NPC, "voiceover/english/exp03_questvo/trainer_valtteri_yliveri/_exp03/exp03_cty_kelethin/tutorials/qst_valtteri/qst_valtteri002.mp3", "", "", 2453379956, 3310442892, Spawn)
  210. AddConversationOption(conversation, "Tell me about Spells.", "dlg_55_22")
  211. AddConversationOption(conversation, "Tell me about Combat Arts.")
  212. AddConversationOption(conversation, "Tell me about Abilities.")
  213. AddConversationOption(conversation, "Where do I find my Spells, Combat Arts, and Abilities?")
  214. AddConversationOption(conversation, "How do I obtain and improve my Spells and Combat Arts?")
  215. AddConversationOption(conversation, "I will return for instruction later.")
  216. StartConversation(conversation, NPC, Spawn, "I am here to answer your questions. What can I help you with?")
  217. end