9
3

TrainerTuzikHirXin.lua 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209
  1. --[[
  2. Script Name : SpawnScripts/TimorousDeep/TrainerTuzikHirXin.lua
  3. Script Purpose : Trainer Tuzik Hir'Xin <Know Your Fate>
  4. Script Author : John Adams
  5. Script Date : 2009.03.03
  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. -- SetTradeskillLevel(Spawn, 100)
  17. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_3_1004.mp3", "", "", 0, 0, Spawn)
  18. AddConversationOption(conversation, "What can cause my death? ", "dlg_0_1")
  19. StartConversation(conversation, NPC, Spawn, "In time, all must fall. Allow me to teach you the consequences of death and how you can recover properly.")
  20. end
  21. function dlg_0_1(NPC, Spawn)
  22. FaceTarget(NPC, Spawn)
  23. conversation = CreateConversation()
  24. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  25. AddConversationOption(conversation, "How will I know when I'm going to die?", "dlg_0_2")
  26. StartConversation(conversation, NPC, Spawn, "Death can come in many ways: being bested on the field of battle, falling from great heights, drowning in water, falling into lava, standing too close to an exploding chest, and so on. It's a dangerous world out there.")
  27. end
  28. function dlg_0_2(NPC, Spawn)
  29. FaceTarget(NPC, Spawn)
  30. conversation = CreateConversation()
  31. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  32. AddConversationOption(conversation, "Why green?", "dlg_0_3")
  33. StartConversation(conversation, NPC, Spawn, "Just keep an eye on your health bar, the green line located beneath your name in the upper left of your screen. At least...you hope it's green.")
  34. end
  35. function dlg_0_3(NPC, Spawn)
  36. FaceTarget(NPC, Spawn)
  37. conversation = CreateConversation()
  38. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  39. AddConversationOption(conversation, "What happens then?", "dlg_0_4")
  40. AddConversationOption(conversation, "I need to finish this conversation later.")
  41. StartConversation(conversation, NPC, Spawn, "Green means you're healthy. As your health diminishes, the bar turns yellow, then orange, and finally red. If the bar is empty, you die. You pay the debt, which cancels all others, if you get my meaning.")
  42. end
  43. function dlg_0_4(NPC, Spawn)
  44. FaceTarget(NPC, Spawn)
  45. conversation = CreateConversation()
  46. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  47. AddConversationOption(conversation, "So death is not the end?", "dlg_0_5")
  48. StartConversation(conversation, NPC, Spawn, "Your spirit lays trapped in your fallen body, unable to move. At this point, you have a choice: wait for a nearby ally to revive you, or choose a location from the window in the center of your screen at which to reappear. In some cases you'll have a single choice, in others multiple choices.")
  49. end
  50. function dlg_0_5(NPC, Spawn)
  51. FaceTarget(NPC, Spawn)
  52. conversation = CreateConversation()
  53. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  54. AddConversationOption(conversation, "What are the consequences?", "dlg_0_6")
  55. StartConversation(conversation, NPC, Spawn, "Fortunately for all of us, death in Norrath is a temporary thing. If another adventurer revives you, you reappear at the spot of your death. If you choose a location to revive, you will appear at that spot. There are consequences to death, however.")
  56. end
  57. function dlg_0_6(NPC, Spawn)
  58. FaceTarget(NPC, Spawn)
  59. conversation = CreateConversation()
  60. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  61. AddConversationOption(conversation, "What is experience debt?", "dlg_0_7")
  62. AddConversationOption(conversation, "I think I've learned enough for now.")
  63. StartConversation(conversation, NPC, Spawn, "There are three results of death. First, you incur some experience debt which can be paid off by earning more XP (experience points). Second, you suffer a revive sickness that lowers your abilities for a short time, which leaves you temporarily vulnerable and less effective. Finally, all your equipped items take damage that will eventually have to be repaired.")
  64. end
  65. function dlg_0_7(NPC, Spawn)
  66. FaceTarget(NPC, Spawn)
  67. conversation = CreateConversation()
  68. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  69. AddConversationOption(conversation, "What is revive sickness like?", "dlg_0_8")
  70. StartConversation(conversation, NPC, Spawn, "Experience debt is indicated by a red line on your XP bar. As you earn experience going forward, part of your XP will go toward paying off your debt while the rest will continue to advance you toward your next level. Mousing over your XP bar also tells how much debt you have.")
  71. end
  72. function dlg_0_8(NPC, Spawn)
  73. FaceTarget(NPC, Spawn)
  74. conversation = CreateConversation()
  75. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  76. AddConversationOption(conversation, "What are the results of item damage?", "dlg_0_9")
  77. StartConversation(conversation, NPC, Spawn, "You'll see an icon for revive sickness in your spell effects window. Mousing over the icon will tell you how long it will remain. The type of sickness you have depends on how you were revived, but no matter what there will be a negative effect. Don't worry, it passes soon enough.")
  78. end
  79. function dlg_0_9(NPC, Spawn)
  80. FaceTarget(NPC, Spawn)
  81. conversation = CreateConversation()
  82. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  83. AddConversationOption(conversation, "What can I do about item damage?", "dlg_0_10")
  84. StartConversation(conversation, NPC, Spawn, "Your equipped items usually take about 10% wear with each death. When they are down to zero durability, you no longer receive any benefit from them. Don't let your equipment ever get into such poor condition, " .. GetName(Spawn) .. "!")
  85. end
  86. function dlg_0_10(NPC, Spawn)
  87. FaceTarget(NPC, Spawn)
  88. conversation = CreateConversation()
  89. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  90. AddConversationOption(conversation, "Thank you for your advice.", "dlg_0_11")
  91. StartConversation(conversation, NPC, Spawn, "You will need to see a mender, someone who is able to repair your items back to 100% durability.")
  92. end
  93. function dlg_3_1(NPC, Spawn)
  94. FaceTarget(NPC, Spawn)
  95. conversation = CreateConversation()
  96. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  97. AddConversationOption(conversation, "How will I know when I'm going to die?", "dlg_3_2")
  98. StartConversation(conversation, NPC, Spawn, "Death can come in many ways: being bested on the field of battle, falling from great heights, drowning in water, falling into lava, standing too close to an exploding chest, and so on. It's a dangerous world out there.")
  99. end
  100. function dlg_3_2(NPC, Spawn)
  101. FaceTarget(NPC, Spawn)
  102. conversation = CreateConversation()
  103. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  104. AddConversationOption(conversation, "Why green?", "dlg_3_3")
  105. StartConversation(conversation, NPC, Spawn, "Just keep an eye on your health bar, the green line located beneath your name in the upper left of your screen. At least...you hope it's green.")
  106. end
  107. function dlg_3_3(NPC, Spawn)
  108. FaceTarget(NPC, Spawn)
  109. conversation = CreateConversation()
  110. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  111. AddConversationOption(conversation, "What happens then?", "dlg_3_4")
  112. AddConversationOption(conversation, "I need to finish this conversation later.")
  113. StartConversation(conversation, NPC, Spawn, "Green means you're healthy. As your health diminishes, the bar turns yellow, then orange, and finally red. If the bar is empty, you die. You pay the debt, which cancels all others, if you get my meaning.")
  114. end
  115. function dlg_3_4(NPC, Spawn)
  116. FaceTarget(NPC, Spawn)
  117. conversation = CreateConversation()
  118. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  119. AddConversationOption(conversation, "So death is not the end?", "dlg_3_5")
  120. StartConversation(conversation, NPC, Spawn, "Your spirit lays trapped in your fallen body, unable to move. At this point, you have a choice: wait for a nearby ally to revive you, or choose a location from the window in the center of your screen at which to reappear. In some cases you'll have a single choice, in others multiple choices.")
  121. end
  122. function dlg_3_5(NPC, Spawn)
  123. FaceTarget(NPC, Spawn)
  124. conversation = CreateConversation()
  125. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  126. AddConversationOption(conversation, "What are the consequences?", "dlg_3_6")
  127. StartConversation(conversation, NPC, Spawn, "Fortunately for all of us, death in Norrath is a temporary thing. If another adventurer revives you, you reappear at the spot of your death. If you choose a location to revive, you will appear at that spot. There are consequences to death, however.")
  128. end
  129. function dlg_3_6(NPC, Spawn)
  130. FaceTarget(NPC, Spawn)
  131. conversation = CreateConversation()
  132. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  133. AddConversationOption(conversation, "What is experience debt?", "dlg_3_7")
  134. AddConversationOption(conversation, "I think I've learned enough for now.")
  135. StartConversation(conversation, NPC, Spawn, "There are three results of death. First, you incur some experience debt which can be paid off by earning more XP (experience points). Second, you suffer a revive sickness that lowers your abilities for a short time, which leaves you temporarily vulnerable and less effective. Finally, all your equipped items take damage that will eventually have to be repaired.")
  136. end
  137. function dlg_3_7(NPC, Spawn)
  138. FaceTarget(NPC, Spawn)
  139. conversation = CreateConversation()
  140. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  141. AddConversationOption(conversation, "What is revive sickness like?", "dlg_3_8")
  142. StartConversation(conversation, NPC, Spawn, "Experience debt is indicated by a red line on your XP bar. As you earn experience going forward, part of your XP will go toward paying off your debt while the rest will continue to advance you toward your next level. Mousing over your XP bar also tells how much debt you have.")
  143. end
  144. function dlg_3_8(NPC, Spawn)
  145. FaceTarget(NPC, Spawn)
  146. conversation = CreateConversation()
  147. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  148. AddConversationOption(conversation, "What are the results of item damage?", "dlg_3_9")
  149. StartConversation(conversation, NPC, Spawn, "You'll see an icon for revive sickness in your spell effects window. Mousing over the icon will tell you how long it will remain. The type of sickness you have depends on how you were revived, but no matter what there will be a negative effect. Don't worry, it passes soon enough.")
  150. end
  151. function dlg_3_9(NPC, Spawn)
  152. FaceTarget(NPC, Spawn)
  153. conversation = CreateConversation()
  154. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  155. AddConversationOption(conversation, "What can I do about item damage?", "dlg_3_10")
  156. StartConversation(conversation, NPC, Spawn, "Your equipped items usually take about 10% wear with each death. When they are down to zero durability, you no longer receive any benefit from them. Don't let your equipment ever get into such poor condition, " .. GetName(Spawn) .. "!")
  157. end
  158. function dlg_3_10(NPC, Spawn)
  159. FaceTarget(NPC, Spawn)
  160. conversation = CreateConversation()
  161. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  162. AddConversationOption(conversation, "Thank you for your advice.", "dlg_3_11")
  163. StartConversation(conversation, NPC, Spawn, "You will need to see a mender, someone who is able to repair your items back to 100% durability.")
  164. end