9
3

TrainerDurvenKXyth.lua 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216
  1. --[[
  2. Script Name : SpawnScripts/Darklight/TrainerDurvenKXyth.lua
  3. Script Purpose : Trainer Durven K'Xyth <Expert in Physical Attributes>
  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_1_1008.mp3", "", "", 0, 0, Spawn)
  22. AddConversationOption(conversation, "Tell me what my physical attributes do.", "dlg_23_1")
  23. AddConversationOption(conversation, "How do I view my physical attributes?")
  24. AddConversationOption(conversation, "How do I improve my physical attributes?")
  25. AddConversationOption(conversation, "I will ask you about this later.")
  26. StartConversation(conversation, NPC, Spawn, "Hello there. You look like you keep both your body and mind in good shape. Even so, I bet you could use more information on your physical attributes: Strength, Agility, Stamina, Intelligence, and Wisdom. That's what I'm here to teach you!")
  27. end
  28. function dlg_23_1(NPC, Spawn)
  29. FaceTarget(NPC, Spawn)
  30. conversation = CreateConversation()
  31. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  32. AddConversationOption(conversation, "Tell me about Agility.", "dlg_23_2")
  33. AddConversationOption(conversation, "How do I view my physical attributes?")
  34. AddConversationOption(conversation, "How do I improve my physical attributes?")
  35. AddConversationOption(conversation, "Thanks for the information.")
  36. StartConversation(conversation, NPC, Spawn, "Strength determines how much weight you can carry. The more Strength you have, the more physical damage you can do in melee combat. Strength also determines the maximum amount of power Guardians, Berserkers, Bruisers, and Shadowknights have.")
  37. end
  38. function dlg_23_2(NPC, Spawn)
  39. FaceTarget(NPC, Spawn)
  40. conversation = CreateConversation()
  41. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  42. AddConversationOption(conversation, "Tell me what my physical attributes do.")
  43. AddConversationOption(conversation, "How do I improve my physical attributes?", "dlg_23_3")
  44. AddConversationOption(conversation, "Thank you for the information.")
  45. StartConversation(conversation, NPC, Spawn, "You can see your physical attributes, as well as other important aspects of your character, in your persona window. Just press the P key to open your persona window.")
  46. end
  47. function dlg_23_3(NPC, Spawn)
  48. FaceTarget(NPC, Spawn)
  49. conversation = CreateConversation()
  50. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  51. AddConversationOption(conversation, "Tell me about Agility.", "dlg_23_4")
  52. AddConversationOption(conversation, "How do I view my physical attributes?")
  53. AddConversationOption(conversation, "How do I improve my physical attributes?")
  54. AddConversationOption(conversation, "Thanks for the information.")
  55. StartConversation(conversation, NPC, Spawn, "Strength determines how much weight you can carry. The more Strength you have, the more physical damage you can do in melee combat. Strength also determines the maximum amount of power Guardians, Berserkers, Bruisers, and Shadowknights have.")
  56. end
  57. function dlg_23_4(NPC, Spawn)
  58. FaceTarget(NPC, Spawn)
  59. conversation = CreateConversation()
  60. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  61. AddConversationOption(conversation, "Tell me about Stamina.", "dlg_23_5")
  62. AddConversationOption(conversation, "How do I view my physical attributes?")
  63. AddConversationOption(conversation, "How do I improve my physical attributes?")
  64. AddConversationOption(conversation, "Thanks for the information.")
  65. StartConversation(conversation, NPC, Spawn, "Agility helps you avoid physical attacks. The more Agility you have, the higher your Avoidance ability. Agility also determines the maximum amount of power Brigands, Assassins, Troubadors, and Dirges have.")
  66. end
  67. function dlg_23_5(NPC, Spawn)
  68. FaceTarget(NPC, Spawn)
  69. conversation = CreateConversation()
  70. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  71. AddConversationOption(conversation, "Tell me about Intelligence.", "dlg_23_6")
  72. AddConversationOption(conversation, "How do I view my physical attributes?")
  73. AddConversationOption(conversation, "How do I improve my physical attributes?")
  74. AddConversationOption(conversation, "Thank you for the information.")
  75. StartConversation(conversation, NPC, Spawn, "Stamina gives you more Health points. The more Health you have, the longer you can survive in battle. Stamina is a useful attribute for every class.")
  76. end
  77. function dlg_23_6(NPC, Spawn)
  78. FaceTarget(NPC, Spawn)
  79. conversation = CreateConversation()
  80. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  81. AddConversationOption(conversation, "Tell me about Wisdom.", "dlg_23_7")
  82. AddConversationOption(conversation, "How do I view my physical attributes?")
  83. AddConversationOption(conversation, "How do I improve my physical attributes?")
  84. AddConversationOption(conversation, "Thank you for the information.")
  85. StartConversation(conversation, NPC, Spawn, "Intelligence is more than just a sign of how smart you are. The more Intelligence you have, the more damage you do with spells in combat. Intelligence also determines the maximum amount of power Wizards, Warlocks, Coercers, Necromancers, Troubadors, and Dirges have.")
  86. end
  87. function dlg_23_7(NPC, Spawn)
  88. FaceTarget(NPC, Spawn)
  89. conversation = CreateConversation()
  90. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  91. AddConversationOption(conversation, "How do I view my physical attributes?", "dlg_23_8")
  92. AddConversationOption(conversation, "How do I improve my physical attributes?")
  93. AddConversationOption(conversation, "Thank you for the information.")
  94. StartConversation(conversation, NPC, Spawn, "Wisdom increases your resistances to magical types of attacks: Heat, Cold, Disease, Poison, Magic, Mental and Divine. Wisdom also determines the maximum amount of power Inquisitors, Defilers, Furies, and Wardens have.")
  95. end
  96. function dlg_23_8(NPC, Spawn)
  97. FaceTarget(NPC, Spawn)
  98. conversation = CreateConversation()
  99. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  100. AddConversationOption(conversation, "Tell me what my physical attributes do.", "dlg_23_9")
  101. AddConversationOption(conversation, "How do I improve my physical attributes?")
  102. AddConversationOption(conversation, "Thank you for the information.")
  103. StartConversation(conversation, NPC, Spawn, "You can see your physical attributes, as well as other important aspects of your character, in your persona window. Just press the P key to open your persona window.")
  104. end
  105. function dlg_23_9(NPC, Spawn)
  106. FaceTarget(NPC, Spawn)
  107. conversation = CreateConversation()
  108. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  109. AddConversationOption(conversation, "Tell me about Agility.", "dlg_23_10")
  110. AddConversationOption(conversation, "How do I view my physical attributes?")
  111. AddConversationOption(conversation, "How do I improve my physical attributes?")
  112. AddConversationOption(conversation, "Thanks for the information.")
  113. StartConversation(conversation, NPC, Spawn, "Strength determines how much weight you can carry. The more Strength you have, the more physical damage you can do in melee combat. Strength also determines the maximum amount of power Guardians, Berserkers, Bruisers, and Shadowknights have.")
  114. end
  115. function dlg_23_10(NPC, Spawn)
  116. FaceTarget(NPC, Spawn)
  117. conversation = CreateConversation()
  118. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  119. AddConversationOption(conversation, "Tell me what my physical attributes do.")
  120. AddConversationOption(conversation, "How do I improve my physical attributes?", "dlg_23_11")
  121. AddConversationOption(conversation, "Thank you for the information.")
  122. StartConversation(conversation, NPC, Spawn, "You can see your physical attributes, as well as other important aspects of your character, in your persona window. Just press the P key to open your persona window.")
  123. end
  124. function dlg_23_11(NPC, Spawn)
  125. FaceTarget(NPC, Spawn)
  126. conversation = CreateConversation()
  127. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  128. AddConversationOption(conversation, "Tell me about Agility.", "dlg_23_12")
  129. AddConversationOption(conversation, "How do I view my physical attributes?")
  130. AddConversationOption(conversation, "How do I improve my physical attributes?")
  131. AddConversationOption(conversation, "Thanks for the information.")
  132. StartConversation(conversation, NPC, Spawn, "Strength determines how much weight you can carry. The more Strength you have, the more physical damage you can do in melee combat. Strength also determines the maximum amount of power Guardians, Berserkers, Bruisers, and Shadowknights have.")
  133. end
  134. function dlg_23_12(NPC, Spawn)
  135. FaceTarget(NPC, Spawn)
  136. conversation = CreateConversation()
  137. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  138. AddConversationOption(conversation, "Are there other ways?")
  139. AddConversationOption(conversation, "Thank you for the information.")
  140. StartConversation(conversation, NPC, Spawn, "Your physical attributes, as well as other aspects of your character, can be improved in a number of ways. Many items add points to your attributes, resistances, Health, or Power. Hold your mouse pointer over your items to see what benefits they provide.")
  141. end
  142. function dlg_23_13(NPC, Spawn)
  143. FaceTarget(NPC, Spawn)
  144. conversation = CreateConversation()
  145. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  146. AddConversationOption(conversation, "Tell me what my physical attributes do.", "dlg_23_14")
  147. AddConversationOption(conversation, "How do I view my physical attributes?")
  148. AddConversationOption(conversation, "I will ask you about this later.")
  149. StartConversation(conversation, NPC, Spawn, "Many spells and combat arts enhance your attributes. Some of these can be cast on yourself, while others can improve other player characters that you group with. Grouping with other classes provides a wider variety of ways to improve your attributes.")
  150. end
  151. function dlg_23_14(NPC, Spawn)
  152. FaceTarget(NPC, Spawn)
  153. conversation = CreateConversation()
  154. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  155. AddConversationOption(conversation, "Tell me about Agility.", "dlg_23_15")
  156. AddConversationOption(conversation, "How do I view my physical attributes?")
  157. AddConversationOption(conversation, "How do I improve my physical attributes?")
  158. AddConversationOption(conversation, "Thanks for the information.")
  159. StartConversation(conversation, NPC, Spawn, "Strength determines how much weight you can carry. The more Strength you have, the more physical damage you can do in melee combat. Strength also determines the maximum amount of power Guardians, Berserkers, Bruisers, and Shadowknights have.")
  160. end
  161. function dlg_23_15(NPC, Spawn)
  162. FaceTarget(NPC, Spawn)
  163. conversation = CreateConversation()
  164. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  165. AddConversationOption(conversation, "Are there other ways?")
  166. AddConversationOption(conversation, "Thank you for the information.")
  167. StartConversation(conversation, NPC, Spawn, "Your physical attributes, as well as other aspects of your character, can be improved in a number of ways. Many items add points to your attributes, resistances, Health, or Power. Hold your mouse pointer over your items to see what benefits they provide.")
  168. end
  169. function dlg_23_16(NPC, Spawn)
  170. FaceTarget(NPC, Spawn)
  171. conversation = CreateConversation()
  172. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  173. AddConversationOption(conversation, "Tell me what my physical attributes do.", "dlg_23_17")
  174. AddConversationOption(conversation, "How do I view my physical attributes?")
  175. AddConversationOption(conversation, "I will ask you about this later.")
  176. StartConversation(conversation, NPC, Spawn, "Many spells and combat arts enhance your attributes. Some of these can be cast on yourself, while others can improve other player characters that you group with. Grouping with other classes provides a wider variety of ways to improve your attributes.")
  177. end