TertiaryDihHa.lua 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. --[[
  2. Script Name : SpawnScripts/TimorousDeep/TertiaryDihHa.lua
  3. Script Purpose : Tertiary Dih'Ha
  4. Script Author : John Adams
  5. Script Date : 2009.02.22
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. QUEST_FROM_AROZIK = 130
  9. QUEST_1 = 141
  10. QUEST_2 = 1
  11. function spawn(NPC)
  12. ProvidesQuest(NPC, QUEST_1)
  13. end
  14. function respawn(NPC)
  15. spawn(NPC)
  16. end
  17. function hailed(NPC, Spawn)
  18. FaceTarget(NPC, Spawn)
  19. conversation = CreateConversation()
  20. if HasQuest(Spawn, QUEST_FROM_AROZIK) and GetQuestStep(Spawn, QUEST_FROM_AROZIK) == 1 then
  21. AddConversationOption(conversation, "Secondary Sky'Ki told me to speak with you.", "dlg_7_1")
  22. end
  23. if HasCompletedQuest(Spawn, QUEST_1) then
  24. if HasCompletedQuest(Spawn, QUEST_2) then
  25. elseif HasQuest(Spawn, QUEST_2) then
  26. else
  27. AreTheyTakenCareOf(NPC, Spawn, conversation)
  28. end
  29. elseif HasQuest(Spawn, QUEST_1) then
  30. AreTheyTakenCareOf(NPC, Spawn, conversation)
  31. else
  32. SpeakSwiftly(NPC, Spawn, conversation)
  33. end
  34. --[[
  35. if convo==16 then
  36. PlayFlavor(NPC, "voiceover/english/rok_questvo/tertiary_dih_ha/_exp04/exp04_rgn_timorous_deep/chrykori_tie/dihha/dihha007.mp3", "", "", 1041685472, 644706986, Spawn)
  37. AddConversationOption(conversation, "Yes.", "dlg_16_1")
  38. StartConversation(conversation, NPC, Spawn, "Did you successfully revive the soldiers?")
  39. end--]]
  40. end
  41. ----------------------------------------------------------------------------------------------------------------------------------------
  42. -- QUEST_FROM_AROZIK
  43. ----------------------------------------------------------------------------------------------------------------------------------------
  44. function dlg_7_1(NPC, Spawn)
  45. SetStepComplete(Spawn, QUEST_FROM_AROZIK, 1)
  46. FaceTarget(NPC, Spawn)
  47. conversation = CreateConversation()
  48. PlayFlavor(NPC, "voiceover/english/rok_questvo/tertiary_dih_ha/_exp04/exp04_rgn_timorous_deep/chrykori_tie/dihha/dihha001.mp3", "", "", 936167783, 1220078217, Spawn)
  49. if not HasCompletedQuest(Spawn, QUEST_1) and not HasQuest(Spawn, QUEST_1) then
  50. AddConversationOption(conversation, "What plight?", "dlg_7_2")
  51. end
  52. AddConversationOption(conversation, "I must be going.")
  53. StartConversation(conversation, NPC, Spawn, "Good. Then they must be aware of our plight.")
  54. end
  55. ----------------------------------------------------------------------------------------------------------------------------------------
  56. -- QUEST 1
  57. ----------------------------------------------------------------------------------------------------------------------------------------
  58. function SpeakSwiftly(NPC, Spawn, conversation)
  59. PlayFlavor(NPC, "voiceover/english/rok_questvo/tertiary_dih_ha/_exp04/exp04_rgn_timorous_deep/chrykori_tie/dihha/dihha000.mp3", "", "", 2496610023, 3072091488, Spawn)
  60. AddConversationOption(conversation, "What is going on here?", "dlg_7_2")
  61. StartConversation(conversation, NPC, Spawn, "Speak swiftly.")
  62. end
  63. function dlg_7_2(NPC, Spawn)
  64. FaceTarget(NPC, Spawn)
  65. conversation = CreateConversation()
  66. PlayFlavor(NPC, "voiceover/english/rok_questvo/tertiary_dih_ha/_exp04/exp04_rgn_timorous_deep/chrykori_tie/dihha/dihha002.mp3", "", "", 1333866465, 3526691037, Spawn)
  67. AddConversationOption(conversation, "I can do that.", "OfferQuest1")
  68. StartConversation(conversation, NPC, Spawn, "The Haoaerans attacked Thulwun Station East. We didn't have much warning but we've managed to keep them from advancing too far. Unfortunately, their initial attack was somewhat crippling. My job is to mend our tactical wounds and strike back at our enemy. Haoaeran advancers have hidden themselves in front of the large gate leading to Thulwun Station. It is your task to dig them out of their hiding places and kill them. Understood?")
  69. end
  70. function OfferQuest1(NPC, Spawn)
  71. FaceTarget(NPC, Spawn)
  72. OfferQuest(NPC, Spawn, QUEST_1)
  73. end
  74. function AreTheyTakenCareOf(NPC, Spawn)
  75. PlayFlavor(NPC, "voiceover/english/rok_questvo/tertiary_dih_ha/_exp04/exp04_rgn_timorous_deep/chrykori_tie/dihha/dihha004.mp3", "", "", 2388923565, 781958893, Spawn)
  76. if (HasCompletedQuest(Spawn, QUEST_1) and not HasCompletedQuest(Spawn, QUEST_2)) or (HasQuest(Spawn, QUEST_1) and GetQuestStep(Spawn, QUEST_1) == 2) then
  77. AddConversationOption(conversation, "Yes.", "dlg_8_1")
  78. else
  79. AddConversationOption(conversation, "Not yet.")
  80. end
  81. StartConversation(conversation, NPC, Spawn, "Are they taken care of?")
  82. end
  83. function dlg_8_1(NPC, Spawn)
  84. if HasQuest(Spawn, QUEST_1) then
  85. SetStepComplete(Spawn, QUEST_1, 2)
  86. end
  87. FaceTarget(NPC, Spawn)
  88. conversation = CreateConversation()
  89. PlayFlavor(NPC, "voiceover/english/rok_questvo/tertiary_dih_ha/_exp04/exp04_rgn_timorous_deep/chrykori_tie/dihha/dihha005.mp3", "", "", 762224700, 657564648, Spawn)
  90. AddConversationOption(conversation, "All right.", "OfferQuest2")
  91. StartConversation(conversation, NPC, Spawn, "Nice work, but we're not done yet. We lost many soldiers in the initial attack, and more continue to fall on a regular basis. Tactically speaking, we are superior to the Haoaerans, but no matter how many of them we kill, they just keep coming. Meanwhile, our numbers are dwindling. For your next task, you must go to the defenses we've set up northeast of Thulwun Station and use this revitalizing tonic to rouse some of our fallen soldiers.")
  92. end
  93. ----------------------------------------------------------------------------------------------------------------------
  94. -- QUEST 2
  95. ----------------------------------------------------------------------------------------------------------------------
  96. function OfferQuest2(NPC, Spawn)
  97. FaceTarget(NPC, Spawn)
  98. --OfferQuest(NPC, Spawn, QUEST_2)
  99. Say(NPC, "Can't finish this yet.", Spawn)
  100. end
  101. function dlg_8_2(NPC, Spawn)
  102. FaceTarget(NPC, Spawn)
  103. conversation = CreateConversation()
  104. PlayFlavor(NPC, "voiceover/english/rok_questvo/tertiary_dih_ha/_exp04/exp04_rgn_timorous_deep/chrykori_tie/dihha/dihha006.mp3", "", "", 1880622251, 59486030, Spawn)
  105. AddConversationOption(conversation, "I understand and will not fail.", "dlg_8_3")
  106. StartConversation(conversation, NPC, Spawn, "This mission is critical. We need all the soldiers we can get.")
  107. end
  108. function dlg_16_1(NPC, Spawn)
  109. FaceTarget(NPC, Spawn)
  110. conversation = CreateConversation()
  111. PlayFlavor(NPC, "voiceover/english/rok_questvo/tertiary_dih_ha/_exp04/exp04_rgn_timorous_deep/chrykori_tie/dihha/dihha008.mp3", "", "", 2227499160, 838414892, Spawn)
  112. AddConversationOption(conversation, "All right.", "dlg_16_2")
  113. StartConversation(conversation, NPC, Spawn, "Nice work. We should be able to hold them off with our newly bolstered numbers. While we're doing that, it's up to you to cut the head from the beast. If you follow the path northeast from Thulwun Station, you will come to a small cave. It is from this cave that their leader, Assault Captain Phezzryn, is coordinating this attack. He must be taken out. When he falls, their troops will fall to disarray.")
  114. end
  115. function dlg_16_2(NPC, Spawn)
  116. FaceTarget(NPC, Spawn)
  117. conversation = CreateConversation()
  118. PlayFlavor(NPC, "voiceover/english/rok_questvo/tertiary_dih_ha/_exp04/exp04_rgn_timorous_deep/chrykori_tie/dihha/dihha009.mp3", "", "", 1056066826, 2699516758, Spawn)
  119. AddConversationOption(conversation, "I understand.", "dlg_16_3")
  120. StartConversation(conversation, NPC, Spawn, "Once he's dead, speak with Secondary Shai'Dn in Thulwun Station and let him know what you've done. Good luck.")
  121. end