9
3

TrainerVantanPerikato.lua 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  1. --[[
  2. Script Name : SpawnScripts/GreaterFaydark/TrainerVantanPerikato.lua
  3. Script Purpose : Trainer Vantan Perikato <Recognizing Opportunities>
  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_vantan_perikato/_exp03/exp03_cty_kelethin/tutorials/qst_vantan/qst_vantan001.mp3", "", "", 1775741681, 796680136, Spawn)
  22. AddConversationOption(conversation, "What are Heroic Opportunities?", "dlg_54_1")
  23. AddConversationOption(conversation, "I will seek your knowledge another time.")
  24. StartConversation(conversation, NPC, Spawn, "Hello, friend! I look at you and see someone eager to defend Kelethin by facing fierce opponents in battle. Well, I have great news! I can teach you about Heroic Opportunities, a way for you and your allies to accomplish great feats of combat prowess!")
  25. end
  26. function dlg_54_1(NPC, Spawn)
  27. FaceTarget(NPC, Spawn)
  28. conversation = CreateConversation()
  29. PlayFlavor(NPC, "voiceover/english/exp03_questvo/trainer_vantan_perikato/_exp03/exp03_cty_kelethin/tutorials/qst_vantan/qst_vantan002.mp3", "", "", 42663805, 3000263371, Spawn)
  30. AddConversationOption(conversation, "Are Heroic Opportunities complicated?", "dlg_54_2")
  31. AddConversationOption(conversation, "I need to finish another task.")
  32. StartConversation(conversation, NPC, Spawn, "Beginning at level 5, Heroic Opportunities can be triggered in combat. They allow both lone adventurers and groups of allies to combine their attacks into a series of spells or combat arts performed in a specific order. When successful, Heroic Opportunities give beneficial effects such as extra attacks against your foes or beneficial magic to heal or enhance your abilities.")
  33. end
  34. function dlg_54_2(NPC, Spawn)
  35. FaceTarget(NPC, Spawn)
  36. conversation = CreateConversation()
  37. PlayFlavor(NPC, "voiceover/english/exp03_questvo/trainer_vantan_perikato/_exp03/exp03_cty_kelethin/tutorials/qst_vantan/qst_vantan003.mp3", "", "", 3602737112, 1910313531, Spawn)
  38. AddConversationOption(conversation, "So how does a Heroic Opportunity arise?", "dlg_54_3")
  39. StartConversation(conversation, NPC, Spawn, "Rest assured, someone with battle skills will find them easy! Once you start using them, you'll wonder how you ever got along without them.")
  40. end
  41. function dlg_54_3(NPC, Spawn)
  42. FaceTarget(NPC, Spawn)
  43. conversation = CreateConversation()
  44. PlayFlavor(NPC, "voiceover/english/exp03_questvo/trainer_vantan_perikato/_exp03/exp03_cty_kelethin/tutorials/qst_vantan/qst_vantan004.mp3", "", "", 810984177, 2791021896, Spawn)
  45. AddConversationOption(conversation, "Okay, that does sound easy. How do I begin a Heroic Opportunity?", "dlg_54_4")
  46. AddConversationOption(conversation, "I need to finish something else first.")
  47. StartConversation(conversation, NPC, Spawn, "Let me tell you the short and simple version first so that you can see how easy Heroic Opportunities are to use. All you need to do is use your ability that triggers the Heroic Opportunity, then use the spells or combat arts that are blinking on your hotbar or in your Knowledge Book. Easy, isn't it?")
  48. end
  49. function dlg_54_4(NPC, Spawn)
  50. FaceTarget(NPC, Spawn)
  51. conversation = CreateConversation()
  52. PlayFlavor(NPC, "voiceover/english/exp03_questvo/trainer_vantan_perikato/_exp03/exp03_cty_kelethin/tutorials/qst_vantan/qst_vantan005.mp3", "", "", 3484157799, 4148998383, Spawn)
  53. AddConversationOption(conversation, "Can I trigger a Starter Chain whenever I want?", "dlg_54_5")
  54. AddConversationOption(conversation, "I need to finish something else first.")
  55. StartConversation(conversation, NPC, Spawn, "Heroic Opportunities have two parts called the Starter Chain and the Combat Wheel. At level 5, every adventure class gains an ability that triggers a Starter Chain: Fighting Chance, Divine Providence, Arcane Augur, or Lucky Break. Open your Knowledge book by pressing K and click the Abilities tab to see it. You can drag its icon to your hotbar to use it.")
  56. end
  57. function dlg_54_5(NPC, Spawn)
  58. FaceTarget(NPC, Spawn)
  59. conversation = CreateConversation()
  60. PlayFlavor(NPC, "voiceover/english/exp03_questvo/trainer_vantan_perikato/_exp03/exp03_cty_kelethin/tutorials/qst_vantan/qst_vantan006.mp3", "", "", 2038098568, 3233011247, Spawn)
  61. AddConversationOption(conversation, "What happens when I trigger a Starter Chain?", "dlg_54_6")
  62. StartConversation(conversation, NPC, Spawn, "Starter Chains can only be triggered while in battle with an enemy. After all, Heroic Opportunities are all about becoming great in combat! When you or an ally triggers a Starter Chain, you will see it appear in the corner of your screen.")
  63. end
  64. function dlg_54_6(NPC, Spawn)
  65. FaceTarget(NPC, Spawn)
  66. conversation = CreateConversation()
  67. PlayFlavor(NPC, "voiceover/english/exp03_questvo/trainer_vantan_perikato/_exp03/exp03_cty_kelethin/tutorials/qst_vantan/qst_vantan007.mp3", "", "", 4289723720, 1132527077, Spawn)
  68. AddConversationOption(conversation, "Are Heroic Opportunities only usable in groups?", "dlg_54_7")
  69. AddConversationOption(conversation, "I'll need to continue this later.")
  70. StartConversation(conversation, NPC, Spawn, "Once a Starter Chain is initiated, it shows different ability icons flashing on the screen. A Starter Chain will generally display four different icons that indicate which spells or combat arts advance the Heroic Opportunity to the next stage. Icons will be blue, yellow, red, or green, depending on which class has the ability.")
  71. end
  72. function dlg_54_7(NPC, Spawn)
  73. FaceTarget(NPC, Spawn)
  74. conversation = CreateConversation()
  75. PlayFlavor(NPC, "voiceover/english/exp03_questvo/trainer_vantan_perikato/_exp03/exp03_cty_kelethin/tutorials/qst_vantan/qst_vantan008.mp3", "", "", 411831633, 722981254, Spawn)
  76. AddConversationOption(conversation, "How do I know what I should do to advance the Starter Chain?", "dlg_54_8")
  77. AddConversationOption(conversation, "I need to finish something else now.")
  78. StartConversation(conversation, NPC, Spawn, "Heroic Opportunities can be used alone or in groups. If you fight alone you will have a limited number of ways to advance the Starter Chain, but if you are in a group made up of different classes then you will be able to advance the Starter Chain in different ways to unleash a variety of Heroic Opportunities.")
  79. end
  80. function dlg_54_8(NPC, Spawn)
  81. FaceTarget(NPC, Spawn)
  82. conversation = CreateConversation()
  83. PlayFlavor(NPC, "voiceover/english/exp03_questvo/trainer_vantan_perikato/_exp03/exp03_cty_kelethin/tutorials/qst_vantan/qst_vantan009.mp3", "", "", 4143425822, 1952224436, Spawn)
  84. AddConversationOption(conversation, "Use the spell or art that is blinking. That's all there is to it?", "dlg_54_9")
  85. AddConversationOption(conversation, "I'll be back later.")
  86. StartConversation(conversation, NPC, Spawn, "Any spells or combat arts that can advance the Heroic Opportunity will flash on your hotbar and in your Knowledge Book. You have 10 seconds to complete the Starter Chain and advance to the Combat Wheel. See, it's easy: just use the spell or art that blinks!")
  87. end
  88. function dlg_54_9(NPC, Spawn)
  89. FaceTarget(NPC, Spawn)
  90. conversation = CreateConversation()
  91. PlayFlavor(NPC, "voiceover/english/exp03_questvo/trainer_vantan_perikato/_exp03/exp03_cty_kelethin/tutorials/qst_vantan/qst_vantan010.mp3", "", "", 3052449410, 2146152555, Spawn)
  92. AddConversationOption(conversation, "Why does it trigger one of three?", "dlg_54_10")
  93. StartConversation(conversation, NPC, Spawn, "It's quite simple. After you've advanced the Starter Chain, the bright and colorful Combat Wheel appears. The Combat Wheel shows a series of icons and displays the name of the Heroic Opportunity you have triggered. A Starter Chain will initiate one of three different Heroic Opportunities.")
  94. end
  95. function dlg_54_10(NPC, Spawn)
  96. FaceTarget(NPC, Spawn)
  97. conversation = CreateConversation()
  98. PlayFlavor(NPC, "voiceover/english/exp03_questvo/trainer_vantan_perikato/_exp03/exp03_cty_kelethin/tutorials/qst_vantan/qst_vantan011.mp3", "", "", 2898004073, 2013528750, Spawn)
  99. AddConversationOption(conversation, "What does the Combat Wheel tell me?", "dlg_54_11")
  100. AddConversationOption(conversation, "I'll be back another time.")
  101. StartConversation(conversation, NPC, Spawn, "There are three potential Heroic Opportunities: common, uncommon and rare. Each provides a different benefit. Though even the common ones are valuable, the rare event can sometimes turn the tide of battle in your favor!")
  102. end
  103. function dlg_54_11(NPC, Spawn)
  104. FaceTarget(NPC, Spawn)
  105. conversation = CreateConversation()
  106. PlayFlavor(NPC, "voiceover/english/exp03_questvo/trainer_vantan_perikato/_exp03/exp03_cty_kelethin/tutorials/qst_vantan/qst_vantan012.mp3", "", "", 3594960522, 2732369829, Spawn)
  107. AddConversationOption(conversation, "How can I tell the difference?", "dlg_54_12")
  108. StartConversation(conversation, NPC, Spawn, "As with the Starter Chain, the Combat Wheel indicates which spells or arts must be performed to advance and eventually complete the heroic event. Sometimes these spells or abilities must be performed in a particular order. Other times there is no order.")
  109. end
  110. function dlg_54_12(NPC, Spawn)
  111. FaceTarget(NPC, Spawn)
  112. conversation = CreateConversation()
  113. PlayFlavor(NPC, "voiceover/english/exp03_questvo/trainer_vantan_perikato/_exp03/exp03_cty_kelethin/tutorials/qst_vantan/qst_vantan013.mp3", "", "", 3798550664, 498535596, Spawn)
  114. AddConversationOption(conversation, "How long do I have to complete the Heroic Opportunity?", "dlg_54_13")
  115. AddConversationOption(conversation, "I will seek your knowledge another time.")
  116. StartConversation(conversation, NPC, Spawn, "In the very center of the Wheel, you'll see either a clockwise-pointing arrow or arrows pointing in different directions. The clockwise arrow indicates that the abilities must be completed in order. The other types of arrows mean that the abilities can be completed in any order.")
  117. end
  118. function dlg_54_13(NPC, Spawn)
  119. FaceTarget(NPC, Spawn)
  120. conversation = CreateConversation()
  121. PlayFlavor(NPC, "voiceover/english/exp03_questvo/trainer_vantan_perikato/_exp03/exp03_cty_kelethin/tutorials/qst_vantan/qst_vantan015.mp3", "", "", 1045091019, 199555181, Spawn)
  122. AddConversationOption(conversation, "Any other tricks I should know?", "dlg_54_14")
  123. AddConversationOption(conversation, "I must go now.")
  124. StartConversation(conversation, NPC, Spawn, "It really is! As you become more familiar with using Heroic Opportunities, you can take note of the members of your group and plan out ahead of time which Opportunities will provide you the greatest benefit.")
  125. end
  126. function dlg_54_14(NPC, Spawn)
  127. FaceTarget(NPC, Spawn)
  128. conversation = CreateConversation()
  129. PlayFlavor(NPC, "voiceover/english/exp03_questvo/trainer_vantan_perikato/_exp03/exp03_cty_kelethin/tutorials/qst_vantan/qst_vantan016.mp3", "", "", 1785885434, 1190045579, Spawn)
  130. AddConversationOption(conversation, "Thank you for the information. I'll try Heroic Opportunities as soon as I can!", "dlg_54_15")
  131. StartConversation(conversation, NPC, Spawn, "Scout classes have a little something extra. By using their Coin icon, the Scout can shift to another Heroic Opportunity. This shift can only happen once per Combat Wheel. This ability must also be used before any other spell or combat art has been used to advance the Wheel.")
  132. end