RalkeshOrto.lua 8.7 KB

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