TrainerRafelaKosimo.lua 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  1. --[[
  2. Script Name : SpawnScripts/GreaterFaydark/TrainerRafelaKosimo.lua
  3. Script Purpose : Trainer Rafela Kosimo <Expert in Physical Attributes>
  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_rafela_kosimo/_exp03/exp03_cty_kelethin/tutorials/qst_rafela/qst_rafela001.mp3", "", "", 369190615, 678098833, Spawn)
  22. AddConversationOption(conversation, "Tell me what my physical attributes do.", "dlg_56_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, " .. GetName(Spawn) .. ". 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_56_1(NPC, Spawn)
  29. FaceTarget(NPC, Spawn)
  30. conversation = CreateConversation()
  31. PlayFlavor(NPC, "voiceover/english/exp03_questvo/trainer_rafela_kosimo/_exp03/exp03_cty_kelethin/tutorials/qst_rafela/qst_rafela002.mp3", "", "", 269298887, 2860978242, Spawn)
  32. AddConversationOption(conversation, "Tell me about Agility.", "dlg_56_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, Monks, and Paladins have.")
  37. end
  38. function dlg_56_2(NPC, Spawn)
  39. FaceTarget(NPC, Spawn)
  40. conversation = CreateConversation()
  41. PlayFlavor(NPC, "voiceover/english/exp03_questvo/trainer_rafela_kosimo/_exp03/exp03_cty_kelethin/tutorials/qst_rafela/qst_rafela003.mp3", "", "", 618428185, 2242815487, Spawn)
  42. AddConversationOption(conversation, "Tell me about Stamina.", "dlg_56_3")
  43. AddConversationOption(conversation, "How do I view my physical attributes?")
  44. AddConversationOption(conversation, "How do I improve my physical attributes?")
  45. AddConversationOption(conversation, "Thanks for the information.")
  46. 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 Swashbucklers, Rangers, Troubadors, and Dirges have.")
  47. end
  48. function dlg_56_3(NPC, Spawn)
  49. FaceTarget(NPC, Spawn)
  50. conversation = CreateConversation()
  51. PlayFlavor(NPC, "voiceover/english/exp03_questvo/trainer_rafela_kosimo/_exp03/exp03_cty_kelethin/tutorials/qst_rafela/qst_rafela004.mp3", "", "", 3361827642, 1990974736, Spawn)
  52. AddConversationOption(conversation, "Tell me about Intelligence.", "dlg_56_4")
  53. AddConversationOption(conversation, "How do I view my physical attributes?")
  54. AddConversationOption(conversation, "How do I improve my physical attributes?")
  55. AddConversationOption(conversation, "Thank you for the information.")
  56. 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.")
  57. end
  58. function dlg_56_4(NPC, Spawn)
  59. FaceTarget(NPC, Spawn)
  60. conversation = CreateConversation()
  61. PlayFlavor(NPC, "voiceover/english/exp03_questvo/trainer_rafela_kosimo/_exp03/exp03_cty_kelethin/tutorials/qst_rafela/qst_rafela005.mp3", "", "", 1693600094, 3506813775, Spawn)
  62. AddConversationOption(conversation, "Tell me about Wisdom.", "dlg_56_5")
  63. AddConversationOption(conversation, "How do I view my physical attributes?")
  64. AddConversationOption(conversation, "How do I improve my physical attributes?")
  65. AddConversationOption(conversation, "Thank you for the information.")
  66. 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, Illusionists, Conjurors, Troubadors, and Dirges have.")
  67. end
  68. function dlg_56_5(NPC, Spawn)
  69. FaceTarget(NPC, Spawn)
  70. conversation = CreateConversation()
  71. PlayFlavor(NPC, "voiceover/english/exp03_questvo/trainer_rafela_kosimo/_exp03/exp03_cty_kelethin/tutorials/qst_rafela/qst_rafela006.mp3", "", "", 2596932055, 833533845, Spawn)
  72. AddConversationOption(conversation, "How do I view my physical attributes?", "dlg_56_6")
  73. AddConversationOption(conversation, "How do I improve my physical attributes?")
  74. AddConversationOption(conversation, "Thank you for the information.")
  75. 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 Templars, Mystics, Furies, Wardens, and Paladins have.")
  76. end
  77. function dlg_56_6(NPC, Spawn)
  78. FaceTarget(NPC, Spawn)
  79. conversation = CreateConversation()
  80. PlayFlavor(NPC, "voiceover/english/exp03_questvo/trainer_rafela_kosimo/_exp03/exp03_cty_kelethin/tutorials/qst_rafela/qst_rafela007.mp3", "", "", 3801545950, 4239189434, Spawn)
  81. AddConversationOption(conversation, "Tell me what my physical attributes do.", "dlg_56_7")
  82. AddConversationOption(conversation, "How do I improve my physical attributes?")
  83. AddConversationOption(conversation, "Thank you for the information.")
  84. 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.")
  85. end
  86. function dlg_56_7(NPC, Spawn)
  87. FaceTarget(NPC, Spawn)
  88. conversation = CreateConversation()
  89. PlayFlavor(NPC, "voiceover/english/exp03_questvo/trainer_rafela_kosimo/_exp03/exp03_cty_kelethin/tutorials/qst_rafela/qst_rafela002.mp3", "", "", 269298887, 2860978242, Spawn)
  90. AddConversationOption(conversation, "Tell me about Agility.", "dlg_56_8")
  91. AddConversationOption(conversation, "How do I view my physical attributes?")
  92. AddConversationOption(conversation, "How do I improve my physical attributes?")
  93. AddConversationOption(conversation, "Thanks for the information.")
  94. 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, Monks, and Paladins have.")
  95. end
  96. function dlg_56_8(NPC, Spawn)
  97. FaceTarget(NPC, Spawn)
  98. conversation = CreateConversation()
  99. PlayFlavor(NPC, "voiceover/english/exp03_questvo/trainer_rafela_kosimo/_exp03/exp03_cty_kelethin/tutorials/qst_rafela/qst_rafela007.mp3", "", "", 3801545950, 4239189434, Spawn)
  100. AddConversationOption(conversation, "Tell me what my physical attributes do.")
  101. AddConversationOption(conversation, "How do I improve my physical attributes?", "dlg_56_9")
  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_56_9(NPC, Spawn)
  106. FaceTarget(NPC, Spawn)
  107. conversation = CreateConversation()
  108. PlayFlavor(NPC, "voiceover/english/exp03_questvo/trainer_rafela_kosimo/_exp03/exp03_cty_kelethin/tutorials/qst_rafela/qst_rafela008.mp3", "", "", 2282437179, 3119891904, Spawn)
  109. AddConversationOption(conversation, "Are there other ways?")
  110. AddConversationOption(conversation, "Thank you for the information.", "dlg_56_10")
  111. 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.")
  112. end
  113. function dlg_56_10(NPC, Spawn)
  114. FaceTarget(NPC, Spawn)
  115. conversation = CreateConversation()
  116. PlayFlavor(NPC, "voiceover/english/exp03_questvo/trainer_rafela_kosimo/_exp03/exp03_cty_kelethin/tutorials/qst_rafela/qst_rafela009.mp3", "", "", 1243763931, 281213796, Spawn)
  117. AddConversationOption(conversation, "Tell me what my physical attributes do.", "dlg_56_11")
  118. AddConversationOption(conversation, "How do I view my physical attributes?")
  119. AddConversationOption(conversation, "I will ask you about this later.")
  120. 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.")
  121. end
  122. function dlg_56_11(NPC, Spawn)
  123. FaceTarget(NPC, Spawn)
  124. conversation = CreateConversation()
  125. PlayFlavor(NPC, "voiceover/english/exp03_questvo/trainer_rafela_kosimo/_exp03/exp03_cty_kelethin/tutorials/qst_rafela/qst_rafela007.mp3", "", "", 3801545950, 4239189434, Spawn)
  126. AddConversationOption(conversation, "Tell me what my physical attributes do.")
  127. AddConversationOption(conversation, "How do I improve my physical attributes?", "dlg_56_12")
  128. AddConversationOption(conversation, "Thank you for the information.")
  129. 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.")
  130. end
  131. function dlg_56_12(NPC, Spawn)
  132. FaceTarget(NPC, Spawn)
  133. conversation = CreateConversation()
  134. PlayFlavor(NPC, "voiceover/english/exp03_questvo/trainer_rafela_kosimo/_exp03/exp03_cty_kelethin/tutorials/qst_rafela/qst_rafela002.mp3", "", "", 269298887, 2860978242, Spawn)
  135. AddConversationOption(conversation, "Tell me about Agility.", "dlg_56_13")
  136. AddConversationOption(conversation, "How do I view my physical attributes?")
  137. AddConversationOption(conversation, "How do I improve my physical attributes?")
  138. AddConversationOption(conversation, "Thanks for the information.")
  139. 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, Monks, and Paladins have.")
  140. end
  141. function dlg_56_13(NPC, Spawn)
  142. FaceTarget(NPC, Spawn)
  143. conversation = CreateConversation()
  144. PlayFlavor(NPC, "voiceover/english/exp03_questvo/trainer_rafela_kosimo/_exp03/exp03_cty_kelethin/tutorials/qst_rafela/qst_rafela007.mp3", "", "", 3801545950, 4239189434, Spawn)
  145. AddConversationOption(conversation, "Tell me what my physical attributes do.")
  146. AddConversationOption(conversation, "How do I improve my physical attributes?", "dlg_56_14")
  147. AddConversationOption(conversation, "Thank you for the information.")
  148. 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.")
  149. end