9
3

TrainerCheyeSeawind.lua 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. --[[
  2. Script Name : SpawnScripts/QueensColony/TrainerCheyeSeawind.lua
  3. Script Author : Zcoretri
  4. Script Date : 2015.07.30
  5. Script Purpose : Trainer Cheye Seawind dialog
  6. Modified Data : 20.04.04
  7. Modified by : premierio015
  8. Notes : Addded all VoiceOvers and Animations
  9. --]]
  10. function spawn(NPC)
  11. end
  12. function respawn(NPC)
  13. spawn(NPC)
  14. end
  15. function hailed(NPC, Spawn)
  16. FaceTarget(NPC, Spawn)
  17. conversation = CreateConversation()
  18. math.randomseed(os.time())
  19. choice = math.random (1, 3)
  20. str = tostring(choice)
  21. if choice == 1 then
  22. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_1_1053.mp3", "", "peer", 0, 0, Spawn)
  23. AddConversationOption(conversation, "What can cause my death? ", "dlg_7_1")
  24. StartConversation(conversation, NPC, Spawn, "Even the bravest champion of Queen Antonia will meet an untimely end on occasion. Let me teach you the consequences of death and how you can recover properly.")
  25. elseif choice == 2 then
  26. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_2_1053.mp3", "", "peer", 0, 0, Spawn)
  27. AddConversationOption(conversation, "What can cause my death? ", "dlg_7_1")
  28. StartConversation(conversation, NPC, Spawn, "Even the bravest champion of Queen Antonia will meet an untimely end on occasion. Let me teach you the consequences of death and how you can recover properly.")
  29. else
  30. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_3_1053.mp3", "", "peer", 0, 0, Spawn)
  31. AddConversationOption(conversation, "What can cause my death? ", "dlg_7_1")
  32. StartConversation(conversation, NPC, Spawn, "Even the bravest champion of Queen Antonia will meet an untimely end on occasion. Let me teach you the consequences of death and how you can recover properly.")
  33. end
  34. end
  35. function dlg_7_1(NPC, Spawn)
  36. FaceTarget(NPC, Spawn)
  37. PlayAnimation(NPC, 11881)
  38. conversation = CreateConversation()
  39. AddConversationOption(conversation, "How will I know when I'm going to die?", "dlg_7_2")
  40. 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, " .. GetName(Spawn) .. ".")
  41. end
  42. function dlg_7_2(NPC, Spawn)
  43. FaceTarget(NPC, Spawn)
  44. PlayAnimation(NPC, 11882)
  45. conversation = CreateConversation()
  46. AddConversationOption(conversation, "Why green?", "dlg_7_3")
  47. 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.")
  48. end
  49. function dlg_7_3(NPC, Spawn)
  50. FaceTarget(NPC, Spawn)
  51. PlayAnimation(NPC, 11287)
  52. conversation = CreateConversation()
  53. AddConversationOption(conversation, "What happens then?", "dlg_7_4")
  54. AddConversationOption(conversation, "You're a morbid person. I'll come back later.")
  55. 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.")
  56. end
  57. function dlg_7_4(NPC, Spawn)
  58. FaceTarget(NPC, Spawn)
  59. PlayAnimation(NPC, 11233)
  60. conversation = CreateConversation()
  61. AddConversationOption(conversation, "So death is not the end?", "dlg_7_5")
  62. 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.")
  63. end
  64. function dlg_7_5(NPC, Spawn)
  65. FaceTarget(NPC, Spawn)
  66. PlayAnimation(NPC, 11882)
  67. conversation = CreateConversation()
  68. AddConversationOption(conversation, "What are the consequences?", "dlg_7_6")
  69. 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.")
  70. end
  71. function dlg_7_6(NPC, Spawn)
  72. FaceTarget(NPC, Spawn)
  73. PlayAnimation(NPC, 12246)
  74. conversation = CreateConversation()
  75. AddConversationOption(conversation, "What is experience debt?", "dlg_7_7")
  76. AddConversationOption(conversation, "I think I've learned enough for now. Cheer up!")
  77. StartConversation(conversation, NPC, Spawn, "There are three results of death. First, you incur some experience debt which can be paid off by earning more. 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.")
  78. end
  79. function dlg_7_7(NPC, Spawn)
  80. FaceTarget(NPC, Spawn)
  81. PlayAnimation(NPC, 11882)
  82. conversation = CreateConversation()
  83. AddConversationOption(conversation, "What is revive sickness like?", "dlg_7_8")
  84. StartConversation(conversation, NPC, Spawn, "Experience debt is indicated by a red line on your experience bar. As you earn experience going forward, part of your experience will go toward paying off your debt while the rest will continue to advance you toward your next level. Mousing over your experience bar also tells how much debt you have.")
  85. end
  86. function dlg_7_8(NPC, Spawn)
  87. FaceTarget(NPC, Spawn)
  88. conversation = CreateConversation()
  89. AddConversationOption(conversation, "What are the results of item damage?", "dlg_7_9")
  90. 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.")
  91. end
  92. function dlg_7_9(NPC, Spawn)
  93. FaceTarget(NPC, Spawn)
  94. PlayAnimation(NPC, 12187)
  95. conversation = CreateConversation()
  96. AddConversationOption(conversation, "What can I do about item damage?", "dlg_7_10")
  97. StartConversation(conversation, NPC, Spawn, "Your equipped items usually take 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) .. "!")
  98. end
  99. function dlg_7_10(NPC, Spawn)
  100. conversation = CreateConversation()
  101. PlayAnimation(NPC, 11882)
  102. AddConversationOption(conversation, "Thank you for your enlightening yet depressing advice.")
  103. StartConversation(conversation, NPC, Spawn, "You will need to see a mender, someone who is able to repair your items back to 100% durability. Speak to Trainer Zidget Sprogrudder to learn more about repairing your gear. Should your equipment take damage here at the outpost, Mender Mannus at the forge can make repairs for you.")
  104. end