9
3

RalkeshOrto.lua 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  1. --[[
  2. Script Name : SpawnScripts/Nettleville/RalkeshOrto.lua
  3. Script Purpose : Ralkesh Orto
  4. Script Author : John Adams
  5. Script Date : 2008.09.24
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. -- Quest ID's
  9. local UNFORTUNATE_MISTAKES = 303
  10. function spawn(NPC)
  11. SetTempVariable(NPC, "Ready", "true")
  12. end
  13. function respawn(NPC)
  14. spawn(NPC)
  15. end
  16. function hailed(NPC, Spawn)
  17. if GetTempVariable(NPC, "AllowQuestProgress") == "true" then
  18. FaceTarget(NPC, Spawn)
  19. conversation = CreateConversation()
  20. if HasQuest(Spawn, UNFORTUNATE_MISTAKES) then
  21. if GetQuestStep(Spawn, UNFORTUNATE_MISTAKES) == 1 then
  22. SomethingIMustDo(NPC, Spawn)
  23. end
  24. end
  25. end
  26. end
  27. function SomethingIMustDo(NPC, Spawn)
  28. FaceTarget(NPC, Spawn)
  29. conversation = CreateConversation()
  30. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/ralkesh_orto/qey_village01/quests/ralkesh_orto/ralkesh_orto001.mp3", "", "", 4080723751, 2709731004, Spawn)
  31. AddConversationOption(conversation, "Then you are the one performing the Pa'Rok ceremony?", "dlg_30_1")
  32. StartConversation(conversation, NPC, Spawn, "This is something I must do, please do not interfere.")
  33. end
  34. function dlg_30_1(NPC, Spawn)
  35. FaceTarget(NPC, Spawn)
  36. conversation = CreateConversation()
  37. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/ralkesh_orto/qey_village01/quests/ralkesh_orto/ralkesh_orto002.mp3", "", "", 2184946112, 169031811, Spawn)
  38. AddConversationOption(conversation, "The soil you are using has contaminants in it, the ceremony may be corrupted!", "dlg_30_2")
  39. StartConversation(conversation, NPC, Spawn, "Yes, which is precisely why you must leave me alone!")
  40. end
  41. function dlg_30_2(NPC, Spawn)
  42. FaceTarget(NPC, Spawn)
  43. conversation = CreateConversation()
  44. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/ralkesh_orto/qey_village01/quests/ralkesh_orto/ralkesh_orto003.mp3", "", "", 2398850443, 2909693693, Spawn)
  45. AddConversationOption(conversation, "Laharn Rahai has examined samples from the soil you are using for this ceremony and found contaminants. The final offering you make may react with some of the contaminants.", "dlg_30_3")
  46. StartConversation(conversation, NPC, Spawn, "Explain yourself quickly, I have no patience for undue interruptions.")
  47. end
  48. function dlg_30_3(NPC, Spawn)
  49. FaceTarget(NPC, Spawn)
  50. conversation = CreateConversation()
  51. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/ralkesh_orto/qey_village01/quests/ralkesh_orto/ralkesh_orto004.mp3", "", "", 3670326842, 761026372, Spawn)
  52. AddConversationOption(conversation, "Laharn was not certain.", "dlg_30_4")
  53. StartConversation(conversation, NPC, Spawn, "Oh dear, I have already made the final offering. What affect may it have?")
  54. end
  55. function dlg_30_4(NPC, Spawn)
  56. FaceTarget(NPC, Spawn)
  57. conversation = CreateConversation()
  58. -- SPAWN THE RAGE OF JA-NELTH
  59. local rage = SpawnByLocationID(GetZone(Spawn), 419648)
  60. if rage ~= nil then
  61. Attack(rage, Spawn)
  62. end
  63. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/ralkesh_orto/qey_village01/quests/ralkesh_orto/ralkesh_orto005.mp3", "", "", 1448581600, 3435048745, Spawn)
  64. AddConversationOption(conversation, "We can talk later!", "CannotBelieve")
  65. StartConversation(conversation, NPC, Spawn, "Oh, Ja'neth, forgive me!")
  66. end
  67. function CannotBelieve(NPC, Spawn)
  68. FaceTarget(NPC, Spawn)
  69. conversation = CreateConversation()
  70. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/ralkesh_orto/qey_village01/quests/ralkesh_orto/ralkesh_orto006.mp3", "", "", 3689370176, 2085039570, Spawn)
  71. AddConversationOption(conversation, "I do not know. Perhaps Laharn will know what you can do.", "dlg_33_1")
  72. StartConversation(conversation, NPC, Spawn, "I cannot believe what I have done. Have I poisoned Ja'neth's afterlife with my negligence?")
  73. end
  74. function dlg_33_1(NPC, Spawn)
  75. SetStepComplete(Spawn, UNFORTUNATE_MISTAKES, 1)
  76. FaceTarget(NPC, Spawn)
  77. conversation = CreateConversation()
  78. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/ralkesh_orto/qey_village01/quests/ralkesh_orto/ralkesh_orto007.mp3", "", "", 1914315304, 380671310, Spawn)
  79. AddConversationOption(conversation, "Wait! Where did you get the soil for Pa'Rok?", "dlg_33_2")
  80. StartConversation(conversation, NPC, Spawn, "Yes, you are right. I, I need to go now. Penance must be done.")
  81. end
  82. function dlg_33_2(NPC, Spawn)
  83. FaceTarget(NPC, Spawn)
  84. conversation = CreateConversation()
  85. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/ralkesh_orto/qey_village01/quests/ralkesh_orto/ralkesh_orto008.mp3", "", "", 1425320561, 840540299, Spawn)
  86. AddConversationOption(conversation, "All right, you may go.")
  87. AddConversationOption(conversation, "Ralkesh... Ja'neth will be fine.", "dlg_33_3")
  88. StartConversation(conversation, NPC, Spawn, "The Bog. The Peat Bog. Please, I must go.")
  89. end
  90. function dlg_33_3(NPC, Spawn)
  91. FaceTarget(NPC, Spawn)
  92. conversation = CreateConversation()
  93. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/ralkesh_orto/qey_village01/quests/ralkesh_orto/ralkesh_orto009.mp3", "", "", 2346643811, 231883534, Spawn)
  94. AddConversationOption(conversation, "I do, Laharn will tell you the same.")
  95. AddConversationOption(conversation, "I do, as should you.")
  96. AddConversationOption(conversation, "I do not know, but I feel it to be true.")
  97. AddConversationOption(conversation, "No... do you?")
  98. AddConversationOption(conversation, "Not at all. Your actions carry far more weight than you realize.")
  99. StartConversation(conversation, NPC, Spawn, "Do you believe that?")
  100. end
  101. function StartRitual(NPC, Spawn)
  102. SetTempVariable(NPC, "Ready", "false")
  103. MoveToLocation(NPC, 578.33, -27.02, 391.10, 2, "", true)
  104. MoveToLocation(NPC, 579.60, -26.84, 381.32, 2, "Begin")
  105. end
  106. function Begin(NPC)
  107. AddTimer(NPC, 500, "Ritual1")
  108. end
  109. function Ritual1(NPC)
  110. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/ralkesh_orto/qey_village01/qst_ralkesh_orto_mourn_6b24b157.mp3", "Oh, Ja'neth. Why!", "cry", 1219541946, 2965391465)
  111. AddTimer(NPC, 2000, "Ritual2")
  112. end
  113. function Ritual2(NPC)
  114. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/ralkesh_orto/qey_village01/qst_ralkesh_orto_onemoment_89f15716.mp3", "One moment please, this is important.", "", 4271869261, 3070926903)
  115. AddTimer(NPC, 4000, "Ritual3")
  116. end
  117. function Ritual3(NPC)
  118. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/ralkesh_orto/qey_village01/qst_ralkesh_orto_ceremony_26c02873.mp3", "Blessed Ja'neth, may your spirit remain forever peaceful. Loved Ja'neth, may your bindings remain forever loose. Lost Ja'neth, may you one day find me again.", "", 1234777522, 783285646)
  119. AddTimer(NPC, 10000, "Ritual4")
  120. end
  121. function Ritual4(NPC)
  122. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/ralkesh_orto/qey_village01/qst_ralkesh_orto_overwith_e17083e9.mp3", "Oh, Ja'Neth... Ja'Neth.", "", 3271321560, 3056376656)
  123. AddTimer(NPC, 2000, "AllowQuestProgress")
  124. end
  125. function AllowQuestProgress(NPC)
  126. SetTempVariable(NPC, "AllowQuestProgress", "true")
  127. AddTimer(NPC, 60000, "Return")
  128. end
  129. function Return(NPC)
  130. SetTempVariable(NPC, "AllowQuestProgress", nil)
  131. MoveToLocation(NPC, 578.33, -27.02, 391.10, 2, "", true)
  132. MoveToLocation(NPC, 581.50, -26.27, 399.26, 2, "Reset")
  133. end
  134. function Reset(NPC)
  135. SpawnSet(NPC, "heading", "0")
  136. SetTempVariable(NPC, "Ready", "true")
  137. end
  138. --[[ raw_conversations
  139. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/ralkesh_orto/qey_village01/qst_ralkesh_orto_mourn_6b24b157.mp3", "Oh, Ja'neth. Why!", "cry", 1219541946, 2965391465, Spawn)
  140. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/ralkesh_orto/qey_village01/qst_ralkesh_orto_onemoment_89f15716.mp3", "One moment please, this is important.", "", 4271869261, 3070926903, Spawn)
  141. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/ralkesh_orto/qey_village01/qst_ralkesh_orto_ceremony_26c02873.mp3", "Blessed Ja'neth, may your spirit remain forever peaceful. Loved Ja'neth, may your bindings remain forever loose. Lost Ja'neth, may you one day find me again.", "", 1234777522, 783285646, Spawn)
  142. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/ralkesh_orto/qey_village01/qst_ralkesh_orto_overwith_e17083e9.mp3", "Oh, Ja'Neth... Ja'Neth.", "", 3271321560, 3056376656, Spawn)
  143. --]]