9
3

TrainerTorakRizTu.lua 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196
  1. --[[
  2. Script Name : SpawnScripts/TimorousDeep/TrainerTorakRizTu.lua
  3. Script Purpose : Trainer Torak Riz'Tu <Keeper of Magical and Martial Knowledge>
  4. Script Author : John Adams
  5. Script Date : 2009.03.04
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. function spawn(NPC)
  9. end
  10. function respawn(NPC)
  11. spawn(NPC)
  12. end
  13. function hailed(NPC, Spawn)
  14. FaceTarget(NPC, Spawn)
  15. conversation = CreateConversation()
  16. choice = math.random(1, 3)
  17. if choice == 1 then
  18. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_1_1004.mp3", "", "", 0, 0, Spawn)
  19. elseif choice == 2 then
  20. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_2_1004.mp3", "", "", 0, 0, Spawn)
  21. elseif choice == 3 then
  22. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_3_1004.mp3", "", "", 0, 0, Spawn)
  23. end
  24. AddConversationOption(conversation, "Let us begin.", "dlg_17_1")
  25. AddConversationOption(conversation, "I will return later.")
  26. StartConversation(conversation, NPC, Spawn, "I am here to explain something very important: how your Spells, Combat Arts, and Abilities work, as well as how to improve them.")
  27. end
  28. function dlg_17_1(NPC, Spawn)
  29. FaceTarget(NPC, Spawn)
  30. conversation = CreateConversation()
  31. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  32. AddConversationOption(conversation, "Tell me about Spells.", "dlg_17_2")
  33. AddConversationOption(conversation, "Tell me about Combat Arts.", "dlg_17_5")
  34. AddConversationOption(conversation, "Tell me about Abilities.", "dlg_17_8")
  35. AddConversationOption(conversation, "Where do I find my Spells, Combat Arts, and Abilities?", "dlg_17_11")
  36. AddConversationOption(conversation, "How do I obtain and improve my Spells and Combat Arts?", "dlg_17_14")
  37. AddConversationOption(conversation, "I will return for instruction later.")
  38. StartConversation(conversation, NPC, Spawn, "I am here to answer your questions. What can I help you with?")
  39. end
  40. function dlg_17_2(NPC, Spawn)
  41. FaceTarget(NPC, Spawn)
  42. conversation = CreateConversation()
  43. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  44. AddConversationOption(conversation, "Who uses Spells?", "dlg_17_3")
  45. AddConversationOption(conversation, "I will return for instruction later.")
  46. 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.'")
  47. end
  48. function dlg_17_3(NPC, Spawn)
  49. FaceTarget(NPC, Spawn)
  50. conversation = CreateConversation()
  51. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  52. AddConversationOption(conversation, "I have more questions.", "dlg_17_1")
  53. AddConversationOption(conversation, "I will return for instruction later.")
  54. 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.")
  55. end
  56. function dlg_17_5(NPC, Spawn)
  57. FaceTarget(NPC, Spawn)
  58. conversation = CreateConversation()
  59. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  60. AddConversationOption(conversation, "Who uses Combat Arts?", "dlg_17_6")
  61. AddConversationOption(conversation, "I will return for instruction later.")
  62. 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.")
  63. end
  64. function dlg_17_6(NPC, Spawn)
  65. FaceTarget(NPC, Spawn)
  66. conversation = CreateConversation()
  67. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  68. AddConversationOption(conversation, "I have more questions.", "dlg_17_1")
  69. AddConversationOption(conversation, "I will return for instruction later.")
  70. 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.")
  71. end
  72. function dlg_17_8(NPC, Spawn)
  73. FaceTarget(NPC, Spawn)
  74. conversation = CreateConversation()
  75. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  76. AddConversationOption(conversation, "How are Abilities different from Spells and Combat Arts?", "dlg_17_9")
  77. AddConversationOption(conversation, "I will return for instruction later.")
  78. 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.")
  79. end
  80. function dlg_17_9(NPC, Spawn)
  81. FaceTarget(NPC, Spawn)
  82. conversation = CreateConversation()
  83. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  84. AddConversationOption(conversation, "I have more questions.", "dlg_17_1")
  85. AddConversationOption(conversation, "I will return for instruction later.")
  86. 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.")
  87. end
  88. function dlg_17_11(NPC, Spawn)
  89. FaceTarget(NPC, Spawn)
  90. conversation = CreateConversation()
  91. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  92. AddConversationOption(conversation, "How do I use my Spells, Combat Arts, and Abilities?", "dlg_17_12")
  93. AddConversationOption(conversation, "I will return for instruction later.")
  94. 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.")
  95. end
  96. function dlg_17_12(NPC, Spawn)
  97. FaceTarget(NPC, Spawn)
  98. conversation = CreateConversation()
  99. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  100. AddConversationOption(conversation, "I have more questions.", "dlg_17_1")
  101. AddConversationOption(conversation, "I will return for instruction later.")
  102. 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.'")
  103. end
  104. function dlg_17_14(NPC, Spawn)
  105. FaceTarget(NPC, Spawn)
  106. conversation = CreateConversation()
  107. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  108. AddConversationOption(conversation, "How can I judge the effectiveness of my Spells and Combat Arts?", "dlg_17_15")
  109. AddConversationOption(conversation, "I will return for further instruction later.")
  110. 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.")
  111. end
  112. function dlg_17_15(NPC, Spawn)
  113. FaceTarget(NPC, Spawn)
  114. conversation = CreateConversation()
  115. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  116. AddConversationOption(conversation, "How can I improve my Spells and Combat Arts?", "dlg_17_16")
  117. AddConversationOption(conversation, "I will return for further instruction later.")
  118. 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.")
  119. end
  120. function dlg_17_16(NPC, Spawn)
  121. FaceTarget(NPC, Spawn)
  122. conversation = CreateConversation()
  123. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  124. AddConversationOption(conversation, "What about other ranks of Spells and Arts?", "dlg_17_17")
  125. AddConversationOption(conversation, "I will return later.")
  126. StartConversation(conversation, NPC, Spawn, "You can buy Apprentice II versions of your Spells or Combat Arts. You just purchase them from the appropriate merchant.")
  127. end
  128. function dlg_17_17(NPC, Spawn)
  129. FaceTarget(NPC, Spawn)
  130. conversation = CreateConversation()
  131. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  132. AddConversationOption(conversation, "Are there other ways to improve my Spells and Combat Arts?", "dlg_17_18")
  133. AddConversationOption(conversation, "I will return later.")
  134. 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.")
  135. end
  136. function dlg_17_18(NPC, Spawn)
  137. FaceTarget(NPC, Spawn)
  138. conversation = CreateConversation()
  139. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  140. AddConversationOption(conversation, "Are all my Spells and Combat Arts unique?", "dlg_17_19")
  141. AddConversationOption(conversation, "I will return for further instruction later.")
  142. 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.")
  143. end
  144. function dlg_17_19(NPC, Spawn)
  145. FaceTarget(NPC, Spawn)
  146. conversation = CreateConversation()
  147. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  148. AddConversationOption(conversation, "How can I keep all these Spells and Arts straight in my Knowledge Book?", "dlg_17_20")
  149. AddConversationOption(conversation, "I will return for further instruction later.")
  150. 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.")
  151. end
  152. function dlg_17_20(NPC, Spawn)
  153. FaceTarget(NPC, Spawn)
  154. conversation = CreateConversation()
  155. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  156. AddConversationOption(conversation, "I have more questions.", "dlg_17_1")
  157. AddConversationOption(conversation, "I will return for further instruction later.")
  158. 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.")
  159. end