ShaeAhla.lua 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. --[[
  2. Script Name : SpawnScripts/Castleview/ShaeAhla.lua
  3. Script Purpose : Shae'Ahla
  4. Script Author : Scatman
  5. Script Date : 2009.10.03
  6. Script Notes :
  7. --]]
  8. dofile("SpawnScripts/Generic/GenericVoiceOvers.lua")
  9. local TargetingCorruption = 225
  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. GenericHail(NPC, Spawn)
  19. if HasQuest(Spawn, TargetingCorruption) and GetQuestStep(Spawn, TargetingCorruption) == 1 then
  20. WherePainGose(NPC, Spawn, conversation)
  21. else
  22. RandomChat(NPC, Spawn)
  23. end
  24. end
  25. function RandomChat(NPC, Spawn)
  26. local choice = math.random(1, 3)
  27. if choice == 1 then
  28. Say(NPC, "To be lost is to avoid being found.", Spawn)
  29. elseif choice == 2 then
  30. Say(NPC, "A life cut off from your senses is no life at all.", Spawn)
  31. elseif choice == 3 then
  32. Say(NPC, "If you do not seek out pain, it will still find you.", Spawn)
  33. end
  34. end
  35. function WherePainGose(NPC, Spawn, conversation)
  36. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/shae_ahla/qey_village04/quests/sheaahla/sheaahla000.mp3", "", "", 4274300137, 4254333791, Spawn)
  37. AddConversationOption(conversation, "Vindain sent me, I need your help.", "dlg_20_3")
  38. AddConversationOption(conversation, "What does that mean?", "dlg_20_1")
  39. AddConversationOption(conversation, "I agree.")
  40. StartConversation(conversation, NPC, Spawn, "Where pain goes, all sentient beings tend to follow.")
  41. end
  42. function dlg_20_1(NPC, Spawn)
  43. FaceTarget(NPC, Spawn)
  44. conversation = CreateConversation()
  45. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/shae_ahla/qey_village04/quests/sheaahla/sheaahla001.mp3", "", "", 3064229666, 2077041902, Spawn)
  46. AddConversationOption(conversation, "That is a rather pessimistic view.", "dlg_20_2")
  47. AddConversationOption(conversation, "That makes sense.", "RareYouAndI")
  48. StartConversation(conversation, NPC, Spawn, "It means that we--elves, humans, gnomes, trolls, all races--blindly plunge ourselves into darkness and chaos. We do not 'intend' to do this, but without fail we do.")
  49. end
  50. function RareYouAndI(NPC, Spawn)
  51. FaceTarget(NPC, Spawn)
  52. conversation = CreateConversation()
  53. AddConversationOption(conversation, "Vindain sent me, I need your help.", "dlg_20_3")
  54. StartConversation(conversation, NPC, Spawn, "We are rare, you and I. Why do you come to me?")
  55. end
  56. function dlg_20_2(NPC, Spawn)
  57. FaceTarget(NPC, Spawn)
  58. conversation = CreateConversation()
  59. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/shae_ahla/qey_village04/quests/sheaahla/sheaahla003.mp3", "", "", 3991540822, 537258105, Spawn)
  60. AddConversationOption(conversation, "Vindain sent me, I need your help.", "dlg_20_3")
  61. StartConversation(conversation, NPC, Spawn, "Worlds that are lost in strife and pain do tend to produce pessimists. Tell me, why are you here?")
  62. end
  63. function dlg_20_3(NPC, Spawn)
  64. FaceTarget(NPC, Spawn)
  65. conversation = CreateConversation()
  66. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/shae_ahla/qey_village04/quests/sheaahla/sheaahla004.mp3", "", "", 1399643965, 359394892, Spawn)
  67. AddConversationOption(conversation, "I was planting Green Wisps here in Castleview Hamlet. One wisp came alive and attacked me.", "dlg_21_2")
  68. StartConversation(conversation, NPC, Spawn, "What do you require?")
  69. end
  70. function dlg_21_2(NPC, Spawn)
  71. FaceTarget(NPC, Spawn)
  72. conversation = CreateConversation()
  73. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/shae_ahla/qey_village04/quests/sheaahla/sheaahla005.mp3", "", "", 2035237242, 2834747464, Spawn)
  74. AddConversationOption(conversation, "Can you help?", "dlg_21_3")
  75. StartConversation(conversation, NPC, Spawn, "You see? Corruption is everywhere.")
  76. end
  77. function dlg_21_3(NPC, Spawn)
  78. FaceTarget(NPC, Spawn)
  79. conversation = CreateConversation()
  80. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/shae_ahla/qey_village04/quests/sheaahla/sheaahla006.mp3", "", "", 1528947055, 3565435961, Spawn)
  81. AddConversationOption(conversation, "All right.", "dlg_21_4")
  82. StartConversation(conversation, NPC, Spawn, "Yes, I can help. Please, give me your hand.")
  83. end
  84. function dlg_21_4(NPC, Spawn)
  85. SetStepComplete(Spawn, TargetingCorruption, 1)
  86. FaceTarget(NPC, Spawn)
  87. conversation = CreateConversation()
  88. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/shae_ahla/qey_village04/quests/sheaahla/sheaahla007.mp3", "", "", 2043489074, 1826207926, Spawn)
  89. AddConversationOption(conversation, "Thank you, Shae'Ahla.")
  90. StartConversation(conversation, NPC, Spawn, "It is done. Your fingers are blessed in a way that will counter the corruption, simply rub the leaves of the plant to cleanse it.")
  91. end