9
3

TrainerCheyeSeawind.lua 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  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. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_"..choice.."_1053.mp3", "", "", 0, 0, Spawn)
  21. AddConversationOption(conversation, "What can cause my death? ", "dlg_7_1")
  22. 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.")
  23. end
  24. function dlg_7_1(NPC, Spawn)
  25. FaceTarget(NPC, Spawn)
  26. PlayAnimation(NPC, 11881)
  27. conversation = CreateConversation()
  28. AddConversationOption(conversation, "How will I know when I'm going to die?", "dlg_7_2")
  29. 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) .. ".")
  30. end
  31. function dlg_7_2(NPC, Spawn)
  32. FaceTarget(NPC, Spawn)
  33. PlayAnimation(NPC, 11882)
  34. conversation = CreateConversation()
  35. AddConversationOption(conversation, "Why green?", "dlg_7_3")
  36. 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.")
  37. end
  38. function dlg_7_3(NPC, Spawn)
  39. FaceTarget(NPC, Spawn)
  40. PlayAnimation(NPC, 11287)
  41. conversation = CreateConversation()
  42. AddConversationOption(conversation, "What happens then?", "dlg_7_4")
  43. AddConversationOption(conversation, "You're a morbid person. I'll come back later.")
  44. 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.")
  45. end
  46. function dlg_7_4(NPC, Spawn)
  47. FaceTarget(NPC, Spawn)
  48. PlayAnimation(NPC, 11233)
  49. conversation = CreateConversation()
  50. AddConversationOption(conversation, "So death is not the end?", "dlg_7_5")
  51. 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.")
  52. end
  53. function dlg_7_5(NPC, Spawn)
  54. FaceTarget(NPC, Spawn)
  55. PlayAnimation(NPC, 11882)
  56. conversation = CreateConversation()
  57. AddConversationOption(conversation, "What are the consequences?", "dlg_7_6")
  58. 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.")
  59. end
  60. function dlg_7_6(NPC, Spawn)
  61. FaceTarget(NPC, Spawn)
  62. PlayAnimation(NPC, 12246)
  63. conversation = CreateConversation()
  64. AddConversationOption(conversation, "What is experience debt?", "dlg_7_7")
  65. AddConversationOption(conversation, "I think I've learned enough for now. Cheer up!")
  66. 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.")
  67. end
  68. function dlg_7_7(NPC, Spawn)
  69. FaceTarget(NPC, Spawn)
  70. PlayAnimation(NPC, 11882)
  71. conversation = CreateConversation()
  72. AddConversationOption(conversation, "What is revive sickness like?", "dlg_7_8")
  73. 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.")
  74. end
  75. function dlg_7_8(NPC, Spawn)
  76. FaceTarget(NPC, Spawn)
  77. conversation = CreateConversation()
  78. AddConversationOption(conversation, "What are the results of item damage?", "dlg_7_9")
  79. 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.")
  80. end
  81. function dlg_7_9(NPC, Spawn)
  82. FaceTarget(NPC, Spawn)
  83. PlayAnimation(NPC, 12187)
  84. conversation = CreateConversation()
  85. AddConversationOption(conversation, "What can I do about item damage?", "dlg_7_10")
  86. 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) .. "!")
  87. end
  88. function dlg_7_10(NPC, Spawn)
  89. conversation = CreateConversation()
  90. PlayAnimation(NPC, 11882)
  91. AddConversationOption(conversation, "Thank you for your enlightening yet depressing advice.")
  92. 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.")
  93. end