9
3

TrainerLaebrynDTekenar.lua 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331
  1. --[[
  2. Script Name : SpawnScripts/Darklight/TrainerLaebrynDTekenar.lua
  3. Script Purpose : Trainer Laebryn D'Tekenar <Know Your Enemy>
  4. Script Author : John Adams
  5. Script Date : 2009.01.31
  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/voice_emotes/greetings/greetings_3_1007.mp3", "", "", 0, 0, Spawn)
  22. AddConversationOption(conversation, "How do I judge my opponent?", "dlg_2_1")
  23. AddConversationOption(conversation, "I'll return later.")
  24. StartConversation(conversation, NPC, Spawn, "Greetings. I sense that you will fight many battles and that you will one day be known as a great hero. But remember, we all have to start somewhere. The first thing you need to know to be successful in combat is how to size up your adversary.")
  25. if convo==3 then
  26. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_1_1007.mp3", "", "", 0, 0, Spawn)
  27. AddConversationOption(conversation, "How do I judge my opponent?", "dlg_3_1")
  28. AddConversationOption(conversation, "I'll return later.")
  29. StartConversation(conversation, NPC, Spawn, "Greetings. I sense that you will fight many battles and that you will one day be known as a great hero. But remember, we all have to start somewhere. The first thing you need to know to be successful in combat is how to size up your adversary.")
  30. end
  31. end
  32. function dlg_2_1(NPC, Spawn)
  33. FaceTarget(NPC, Spawn)
  34. conversation = CreateConversation()
  35. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  36. AddConversationOption(conversation, "What does the creature's name tell me?", "dlg_2_2")
  37. StartConversation(conversation, NPC, Spawn, "You must learn to use both your eyes and your instincts as you consider friends and foes alike in Norrath. There are two excellent tools you should use to judge their capabilities: what you can tell from their name and what you can learn by targeting them.")
  38. end
  39. function dlg_2_2(NPC, Spawn)
  40. FaceTarget(NPC, Spawn)
  41. conversation = CreateConversation()
  42. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  43. AddConversationOption(conversation, "How do I target an opponent?", "dlg_2_3")
  44. AddConversationOption(conversation, "I will be back later.")
  45. StartConversation(conversation, NPC, Spawn, "If something has a red border around its name, that target is aggressive toward you and will attack if you get too close to it. You should be especially careful of creatures that roam around, because if they notice you they won't hesitate to strike.")
  46. end
  47. function dlg_2_3(NPC, Spawn)
  48. FaceTarget(NPC, Spawn)
  49. conversation = CreateConversation()
  50. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  51. AddConversationOption(conversation, "Why are separate creatures sometimes linked?", "dlg_2_4")
  52. AddConversationOption(conversation, "I will be back later.")
  53. StartConversation(conversation, NPC, Spawn, "All you need to do is move your mouse pointer over what you want to target and click. You will see the name of your opponent in the Target window in the upper left corner of the screen, and a large arrow will appear above its head. If arrows also appear above the heads of nearby creatures, it means all of them are linked together and will attack as one.")
  54. end
  55. function dlg_2_4(NPC, Spawn)
  56. FaceTarget(NPC, Spawn)
  57. conversation = CreateConversation()
  58. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  59. AddConversationOption(conversation, "What does the Target window tell me?", "dlg_2_5")
  60. StartConversation(conversation, NPC, Spawn, "Sometimes multiple creatures will work together to form a single encounter. These opponents will act as a team, and usually won't stop fighting until all of them are defeated.")
  61. end
  62. function dlg_2_5(NPC, Spawn)
  63. FaceTarget(NPC, Spawn)
  64. conversation = CreateConversation()
  65. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  66. AddConversationOption(conversation, "What does the level indicate?", "dlg_2_6")
  67. AddConversationOption(conversation, "I will be back later.")
  68. StartConversation(conversation, NPC, Spawn, "The Target window tells you several important facts, which collectively form what is referred to as the 'con' (overall challenge) of the opponent. It shows you the numerical level of the creature you have targeted, a color to indicate its relative level range, up or down arrows to indicate toughness, and indicators that tell you if the encounter is normal, heroic, or epic.")
  69. end
  70. function dlg_2_6(NPC, Spawn)
  71. FaceTarget(NPC, Spawn)
  72. conversation = CreateConversation()
  73. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  74. AddConversationOption(conversation, "How does my opponent's level affect my rewards for victory?", "dlg_2_7")
  75. AddConversationOption(conversation, "I will be back later.")
  76. StartConversation(conversation, NPC, Spawn, "As you adventure through Norrath, you will gain experience and increase your level. The opponents you will face in combat have levels as well. To be victorious, you will usually want to face foes that are close to your level.")
  77. end
  78. function dlg_2_7(NPC, Spawn)
  79. FaceTarget(NPC, Spawn)
  80. conversation = CreateConversation()
  81. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  82. AddConversationOption(conversation, "What does the color of my opponent's name tell me?", "dlg_2_8")
  83. AddConversationOption(conversation, "I will be back later.")
  84. StartConversation(conversation, NPC, Spawn, "You gain more experience by defeating higher-level opponents, but they will also be tougher to beat. Conversely, if you defeat foes much lower than your level, they will not be nearly as rewarding.")
  85. end
  86. function dlg_2_8(NPC, Spawn)
  87. FaceTarget(NPC, Spawn)
  88. conversation = CreateConversation()
  89. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  90. AddConversationOption(conversation, "What are the colors?", "dlg_2_9")
  91. StartConversation(conversation, NPC, Spawn, "The color of your opponent's name indicates how challenging the encounter is. It is very useful as a quick indicator of whether or not you should be fighting a target. The more danger its color indicates, the greater the threat it represents.")
  92. end
  93. function dlg_2_9(NPC, Spawn)
  94. FaceTarget(NPC, Spawn)
  95. conversation = CreateConversation()
  96. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  97. AddConversationOption(conversation, "Will grey targets ever attack me?", "dlg_2_10")
  98. AddConversationOption(conversation, "I will be back later.")
  99. StartConversation(conversation, NPC, Spawn, "Grey names mean the fight is below your abilities and will give no experience or reward. Green names mean the opponent is very easy. Blue names mean an easy fight. White names indicate the opponent is even with your abilities. Yellow names mean the fight will be challenging. Orange names indicate a difficult encounter. Red names mean the battle could be deadly.")
  100. end
  101. function dlg_2_10(NPC, Spawn)
  102. FaceTarget(NPC, Spawn)
  103. conversation = CreateConversation()
  104. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  105. AddConversationOption(conversation, "What do down arrows tell me?", "dlg_2_11")
  106. AddConversationOption(conversation, "I will be back later.")
  107. StartConversation(conversation, NPC, Spawn, "Targets with grey names will not attack you, even if they would be aggressive to someone closer to their level. In other words, you won't be attacked by anything that won't give you some reward for defeating it.")
  108. end
  109. function dlg_2_11(NPC, Spawn)
  110. FaceTarget(NPC, Spawn)
  111. conversation = CreateConversation()
  112. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  113. AddConversationOption(conversation, "What do up arrows mean?", "dlg_2_12")
  114. AddConversationOption(conversation, "I will be back later.")
  115. StartConversation(conversation, NPC, Spawn, "No arrow by the target's name indicates an average opponent for a lone adventurer. A single down arrow means it is a below average opponent. Two down arrows tell you it's a weak opponent, and three down arrows means it is very weak. Be careful though, because if multiple weak opponents are working together they can still represent quite a challenge.")
  116. end
  117. function dlg_2_12(NPC, Spawn)
  118. FaceTarget(NPC, Spawn)
  119. conversation = CreateConversation()
  120. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  121. AddConversationOption(conversation, "So how do I know whether I can face a challenge alone?", "dlg_2_13")
  122. AddConversationOption(conversation, "I will finish this lesson later.")
  123. StartConversation(conversation, NPC, Spawn, "Up arrows indicate increased difficulty. A single up arrow means an above average opponent. Two up arrows show a strong opponent, while three up arrows means a very tough fight. If you look at the sparring partners next to us, you will see that they have different arrow indicators. Feel free to practice fighting them to feel what effect the arrows have.")
  124. end
  125. function dlg_2_13(NPC, Spawn)
  126. FaceTarget(NPC, Spawn)
  127. conversation = CreateConversation()
  128. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  129. AddConversationOption(conversation, "What is the difference between normal, heroic, and epic?", "dlg_2_14")
  130. AddConversationOption(conversation, "I will finish this lesson later.")
  131. StartConversation(conversation, NPC, Spawn, "As a general rule of thumb, if you see an enemy with one up arrow, it's a good idea to team up with another player to take it on. If you see an enemy with two up arrows, add two members to your group. If you see an opponent with three up arrows, add three members to your group. A lone adventurer will likely want to face targets with no arrows or down arrows.")
  132. end
  133. function dlg_2_14(NPC, Spawn)
  134. FaceTarget(NPC, Spawn)
  135. conversation = CreateConversation()
  136. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  137. AddConversationOption(conversation, "So how do all these elements work together to show an opponent's difficulty?", "dlg_2_15")
  138. AddConversationOption(conversation, "I will finish this lesson later.")
  139. StartConversation(conversation, NPC, Spawn, "A normal opponent has no indicator and is intended to be fought by a solo adventurer or small group. A heroic encounter is intended for a larger group of up to six adventurers. An epic opponent should only be attempted by a raid force of multiple groups working together.")
  140. end
  141. function dlg_2_15(NPC, Spawn)
  142. FaceTarget(NPC, Spawn)
  143. conversation = CreateConversation()
  144. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  145. AddConversationOption(conversation, "Thank you, instructor.", "dlg_2_16")
  146. StartConversation(conversation, NPC, Spawn, "All the elements I've explained will affect the outcome of a battle and whether or not you will need allies to win. Pay close attention to the lessons I have taught you, and apply them to challenges you face throughout your journeys in Norrath.")
  147. end
  148. function dlg_3_1(NPC, Spawn)
  149. FaceTarget(NPC, Spawn)
  150. conversation = CreateConversation()
  151. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  152. AddConversationOption(conversation, "What does the creature's name tell me?", "dlg_3_2")
  153. StartConversation(conversation, NPC, Spawn, "You must learn to use both your eyes and your instincts as you consider friends and foes alike in Norrath. There are two excellent tools you should use to judge their capabilities: what you can tell from their name and what you can learn by targeting them.")
  154. end
  155. function dlg_3_2(NPC, Spawn)
  156. FaceTarget(NPC, Spawn)
  157. conversation = CreateConversation()
  158. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  159. AddConversationOption(conversation, "How do I target an opponent?", "dlg_3_3")
  160. AddConversationOption(conversation, "I will be back later.")
  161. StartConversation(conversation, NPC, Spawn, "If something has a red border around its name, that target is aggressive toward you and will attack if you get too close to it. You should be especially careful of creatures that roam around, because if they notice you they won't hesitate to strike.")
  162. end
  163. function dlg_3_3(NPC, Spawn)
  164. FaceTarget(NPC, Spawn)
  165. conversation = CreateConversation()
  166. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  167. AddConversationOption(conversation, "Why are separate creatures sometimes linked?", "dlg_3_4")
  168. AddConversationOption(conversation, "I will be back later.")
  169. StartConversation(conversation, NPC, Spawn, "All you need to do is move your mouse pointer over what you want to target and click. You will see the name of your opponent in the Target window in the upper left corner of the screen, and a large arrow will appear above its head. If arrows also appear above the heads of nearby creatures, it means all of them are linked together and will attack as one.")
  170. end
  171. function dlg_3_4(NPC, Spawn)
  172. FaceTarget(NPC, Spawn)
  173. conversation = CreateConversation()
  174. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  175. AddConversationOption(conversation, "What does the Target window tell me?", "dlg_3_5")
  176. StartConversation(conversation, NPC, Spawn, "Sometimes multiple creatures will work together to form a single encounter. These opponents will act as a team, and usually won't stop fighting until all of them are defeated.")
  177. end
  178. function dlg_3_5(NPC, Spawn)
  179. FaceTarget(NPC, Spawn)
  180. conversation = CreateConversation()
  181. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  182. AddConversationOption(conversation, "What does the level indicate?", "dlg_3_6")
  183. AddConversationOption(conversation, "I will be back later.")
  184. StartConversation(conversation, NPC, Spawn, "The Target window tells you several important facts, which collectively form what is referred to as the 'con' (overall challenge) of the opponent. It shows you the numerical level of the creature you have targeted, a color to indicate its relative level range, up or down arrows to indicate toughness, and indicators that tell you if the encounter is normal, heroic, or epic.")
  185. end
  186. function dlg_3_6(NPC, Spawn)
  187. FaceTarget(NPC, Spawn)
  188. conversation = CreateConversation()
  189. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  190. AddConversationOption(conversation, "How does my opponent's level affect my rewards for victory?", "dlg_3_7")
  191. AddConversationOption(conversation, "I will be back later.")
  192. StartConversation(conversation, NPC, Spawn, "As you adventure through Norrath, you will gain experience and increase your level. The opponents you will face in combat have levels as well. To be victorious, you will usually want to face foes that are close to your level.")
  193. end
  194. function dlg_3_7(NPC, Spawn)
  195. FaceTarget(NPC, Spawn)
  196. conversation = CreateConversation()
  197. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  198. AddConversationOption(conversation, "What does the color of my opponent's name tell me?", "dlg_3_8")
  199. AddConversationOption(conversation, "I will be back later.")
  200. StartConversation(conversation, NPC, Spawn, "You gain more experience by defeating higher-level opponents, but they will also be tougher to beat. Conversely, if you defeat foes much lower than your level, they will not be nearly as rewarding.")
  201. end
  202. function dlg_3_8(NPC, Spawn)
  203. FaceTarget(NPC, Spawn)
  204. conversation = CreateConversation()
  205. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  206. AddConversationOption(conversation, "What are the colors?", "dlg_3_9")
  207. StartConversation(conversation, NPC, Spawn, "The color of your opponent's name indicates how challenging the encounter is. It is very useful as a quick indicator of whether or not you should be fighting a target. The more danger its color indicates, the greater the threat it represents.")
  208. end
  209. function dlg_3_9(NPC, Spawn)
  210. FaceTarget(NPC, Spawn)
  211. conversation = CreateConversation()
  212. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  213. AddConversationOption(conversation, "Will grey targets ever attack me?", "dlg_3_10")
  214. AddConversationOption(conversation, "I will be back later.")
  215. StartConversation(conversation, NPC, Spawn, "Grey names mean the fight is below your abilities and will give no experience or reward. Green names mean the opponent is very easy. Blue names mean an easy fight. White names indicate the opponent is even with your abilities. Yellow names mean the fight will be challenging. Orange names indicate a difficult encounter. Red names mean the battle could be deadly.")
  216. end
  217. function dlg_3_10(NPC, Spawn)
  218. FaceTarget(NPC, Spawn)
  219. conversation = CreateConversation()
  220. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  221. AddConversationOption(conversation, "What do down arrows tell me?", "dlg_3_11")
  222. AddConversationOption(conversation, "I will be back later.")
  223. StartConversation(conversation, NPC, Spawn, "Targets with grey names will not attack you, even if they would be aggressive to someone closer to their level. In other words, you won't be attacked by anything that won't give you some reward for defeating it.")
  224. end
  225. function dlg_3_11(NPC, Spawn)
  226. FaceTarget(NPC, Spawn)
  227. conversation = CreateConversation()
  228. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  229. AddConversationOption(conversation, "What do up arrows mean?", "dlg_3_12")
  230. AddConversationOption(conversation, "I will be back later.")
  231. StartConversation(conversation, NPC, Spawn, "No arrow by the target's name indicates an average opponent for a lone adventurer. A single down arrow means it is a below average opponent. Two down arrows tell you it's a weak opponent, and three down arrows means it is very weak. Be careful though, because if multiple weak opponents are working together they can still represent quite a challenge.")
  232. end
  233. function dlg_3_12(NPC, Spawn)
  234. FaceTarget(NPC, Spawn)
  235. conversation = CreateConversation()
  236. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  237. AddConversationOption(conversation, "So how do I know whether I can face a challenge alone?", "dlg_3_13")
  238. AddConversationOption(conversation, "I will finish this lesson later.")
  239. StartConversation(conversation, NPC, Spawn, "Up arrows indicate increased difficulty. A single up arrow means an above average opponent. Two up arrows show a strong opponent, while three up arrows means a very tough fight. If you look at the sparring partners next to us, you will see that they have different arrow indicators. Feel free to practice fighting them to feel what effect the arrows have.")
  240. end
  241. function dlg_3_13(NPC, Spawn)
  242. FaceTarget(NPC, Spawn)
  243. conversation = CreateConversation()
  244. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  245. AddConversationOption(conversation, "What is the difference between normal, heroic, and epic?", "dlg_3_14")
  246. AddConversationOption(conversation, "I will finish this lesson later.")
  247. StartConversation(conversation, NPC, Spawn, "As a general rule of thumb, if you see an enemy with one up arrow, it's a good idea to team up with another player to take it on. If you see an enemy with two up arrows, add two members to your group. If you see an opponent with three up arrows, add three members to your group. A lone adventurer will likely want to face targets with no arrows or down arrows.")
  248. end
  249. function dlg_3_14(NPC, Spawn)
  250. FaceTarget(NPC, Spawn)
  251. conversation = CreateConversation()
  252. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  253. AddConversationOption(conversation, "So how do all these elements work together to show an opponent's difficulty?", "dlg_3_15")
  254. AddConversationOption(conversation, "I will finish this lesson later.")
  255. StartConversation(conversation, NPC, Spawn, "A normal opponent has no indicator and is intended to be fought by a solo adventurer or small group. A heroic encounter is intended for a larger group of up to six adventurers. An epic opponent should only be attempted by a raid force of multiple groups working together.")
  256. end
  257. function dlg_3_15(NPC, Spawn)
  258. FaceTarget(NPC, Spawn)
  259. conversation = CreateConversation()
  260. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  261. AddConversationOption(conversation, "Thank you, instructor.", "dlg_3_16")
  262. StartConversation(conversation, NPC, Spawn, "All the elements I've explained will affect the outcome of a battle and whether or not you will need allies to win. Pay close attention to the lessons I have taught you, and apply them to challenges you face throughout your journeys in Norrath.")
  263. end