TrainerJaylaSurfrider.lua 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. --[[
  2. Script Name : SpawnScripts/OutpostOverlord/TrainerJaylaSurfrider.lua
  3. Script Purpose : Trainer Jayla Surfrider <Know Your Fate>
  4. Script Author : John Adams
  5. Script Date : 2008.09.23
  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. choice = math.random(1,3)
  17. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_" .. choice .. "_1021.mp3", "", "", 0, 0, Spawn)
  18. if HasQuest(Spawn, 492) and GetQuestStep(Spawn, 492) == 2 then
  19. AddConversationOption(conversation, "Do you know a man called Charles Arker?", "dlg_37_1")
  20. end
  21. AddConversationOption(conversation, "What can cause my death? ", "dlg_3_1")
  22. AddConversationOption(conversation, "I prefer to talk about this another time.")
  23. StartConversation(conversation, NPC, Spawn, "Even the mightiest hero of the Overlord will meet an untimely end on occasion. Let me teach you the consequences of death and how you can recover properly.")
  24. end
  25. function dlg_3_1(NPC, Spawn)
  26. FaceTarget(NPC, Spawn)
  27. conversation = CreateConversation()
  28. AddConversationOption(conversation, "How will I know when I'm going to die?", "dlg_3_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, XXXXX.")
  30. end
  31. function dlg_3_2(NPC, Spawn)
  32. FaceTarget(NPC, Spawn)
  33. conversation = CreateConversation()
  34. AddConversationOption(conversation, "Why green?", "dlg_3_3")
  35. 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.")
  36. end
  37. function dlg_3_3(NPC, Spawn)
  38. FaceTarget(NPC, Spawn)
  39. conversation = CreateConversation()
  40. AddConversationOption(conversation, "What happens then?", "dlg_3_4")
  41. AddConversationOption(conversation, "You're a morbid person. I'll come back later.")
  42. 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.")
  43. end
  44. function dlg_3_4(NPC, Spawn)
  45. FaceTarget(NPC, Spawn)
  46. conversation = CreateConversation()
  47. AddConversationOption(conversation, "So death is not the end?", "dlg_3_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_3_5(NPC, Spawn)
  51. FaceTarget(NPC, Spawn)
  52. conversation = CreateConversation()
  53. AddConversationOption(conversation, "What are the consequences?", "dlg_3_6")
  54. 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.")
  55. end
  56. function dlg_3_6(NPC, Spawn)
  57. FaceTarget(NPC, Spawn)
  58. conversation = CreateConversation()
  59. AddConversationOption(conversation, "What is experience debt?", "dlg_3_7")
  60. AddConversationOption(conversation, "I think I've learned enough for now. Cheer up!")
  61. StartConversation(conversation, NPC, Spawn, "There are three results of death. First, you incur some experience debt which can be paid off by earning more" .. GetName(Spawn) .. ". 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.")
  62. end
  63. function dlg_3_7(NPC, Spawn)
  64. FaceTarget(NPC, Spawn)
  65. conversation = CreateConversation()
  66. AddConversationOption(conversation, "What is revive sickness like?", "dlg_3_8")
  67. StartConversation(conversation, NPC, Spawn, "Experience debt is indicated by a red line on your" .. GetName(Spawn) .. ". bar. As you earn experience going forward, part of your" .. GetName(Spawn) .. ". will go toward paying off your debt while the rest will continue to advance you toward your next level. Mousing over your" .. GetName(Spawn) .. ". bar also tells how much debt you have.")
  68. end
  69. function dlg_3_8(NPC, Spawn)
  70. FaceTarget(NPC, Spawn)
  71. conversation = CreateConversation()
  72. AddConversationOption(conversation, "What are the results of item damage?", "dlg_3_9")
  73. 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.")
  74. end
  75. function dlg_3_9(NPC, Spawn)
  76. FaceTarget(NPC, Spawn)
  77. conversation = CreateConversation()
  78. AddConversationOption(conversation, "What can I do about item damage?", "dlg_3_10")
  79. 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, XXXXX!")
  80. end
  81. function dlg_3_10(NPC, Spawn)
  82. FaceTarget(NPC, Spawn)
  83. conversation = CreateConversation()
  84. AddConversationOption(conversation, "Thank you for your enlightening yet depressing advice.")
  85. 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 Vissa Sathliss to learn more about repairing your gear. Should your equipment take damage here at the outpost, Mender Greshar at the forge can make repairs for you.")
  86. end
  87. -- Charles Arker quest from Field Investigator
  88. function dlg_37_1(NPC, Spawn)
  89. SetStepComplete(Spawn, 492, 2)
  90. FaceTarget(NPC, Spawn)
  91. conversation = CreateConversation()
  92. AddConversationOption(conversation, "Not yet. Thank you, though.")
  93. StartConversation(conversation, NPC, Spawn, "Sorry, never heard of him. Did he die recently?")
  94. end