9
3

TanziklaHirKi.lua 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. --[[
  2. Script Name : SpawnScripts/TimorousDeep/TanziklaHirKi.lua
  3. Script Purpose : Tanzikla Hir'Ki <Chrykori Standard>
  4. Script Author : John Adams
  5. Script Date : 2009.03.10
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. QUEST_1 = 139
  9. QUEST_2 = 140
  10. function spawn(NPC)
  11. ProvidesQuest(NPC, QUEST_1)
  12. ProvidesQuest(NPC, QUEST_2)
  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 HasCompletedQuest(Spawn, QUEST_1) then
  21. if HasCompletedQuest(Spawn, QUEST_2) then
  22. Say(NPC, "Thank you again.", Spawn)
  23. elseif HasQuest(Spawn, QUEST_2) then
  24. DidYouRetrieveWeapons(NPC, Spawn, conversation)
  25. else
  26. DidYouTakeCareOfTheirSupplies(NPC, Spawn, conversation)
  27. end
  28. elseif HasQuest(Spawn, QUEST_1) then
  29. DidYouTakeCareOfTheirSupplies(NPC, Spawn, conversation)
  30. else
  31. IAmTanzikla(NPC, Spawn, conversation)
  32. end
  33. end
  34. -------------------------------------------------------------------------------------------------------------
  35. -- QUEST 1
  36. -------------------------------------------------------------------------------------------------------------
  37. function IAmTanzikla(NPC, Spawn, conversation)
  38. PlayFlavor(NPC, "voiceover/english/rok_questvo/tanzikla_hir_ki/_exp04/exp04_rgn_timorous_deep/chrykori_tie/hirki/hirki000.mp3", "", "", 4115201898, 1696393499, Spawn)
  39. AddConversationOption(conversation, "What do you need me to do?", "dlg_6_1")
  40. StartConversation(conversation, NPC, Spawn, "I am Tanzikla Hir'Ki. Welcome to torment. Thulwun Station came under attack a short while ago, and we've been working non-stop ever since then to repel them. While Tertiary Dih'Ha is acting command for our detachment, I am acting Tertiary. Based on the information we have, I believe that the Haoaerans are looking to make a big push into Thulwun Station soon. We must act swiftly, or they will likely overtake us.")
  41. end
  42. function dlg_6_1(NPC, Spawn)
  43. FaceTarget(NPC, Spawn)
  44. conversation = CreateConversation()
  45. PlayFlavor(NPC, "voiceover/english/rok_questvo/tanzikla_hir_ki/_exp04/exp04_rgn_timorous_deep/chrykori_tie/hirki/hirki001.mp3", "", "", 279682638, 225264555, Spawn)
  46. AddConversationOption(conversation, "All right.", "OfferQuest1")
  47. StartConversation(conversation, NPC, Spawn, "I need you to destroy the supplies the Haoaeran advancers are guarding just outside the gates of the station. They have them stowed around the location in anticipation of the order to strike. When that moment comes, they will unpack their supplies and set up defensible posts from which to better attack Thulwun Station. We must preempt that with the destruction of their supplies. Find the Haoaeran advancers outside Thulwun Station and eliminate these assets.")
  48. end
  49. function OfferQuest1(NPC, Spawn)
  50. FaceTarget(NPC, Spawn)
  51. OfferQuest(NPC, Spawn, QUEST_1)
  52. end
  53. function DidYouTakeCareOfTheirSupplies(NPC, Spawn, conversation)
  54. PlayFlavor(NPC, "voiceover/english/rok_questvo/tanzikla_hir_ki/_exp04/exp04_rgn_timorous_deep/chrykori_tie/hirki/hirki003.mp3", "", "", 500996465, 1037608249, Spawn)
  55. if (HasCompletedQuest(Spawn, QUEST_1) and not HasCompletedQuest(Spawn, QUEST_2)) or (HasQuest(Spawn, QUEST_1) and GetQuestStep(Spawn, QUEST_1) == 2) then
  56. AddConversationOption(conversation, "Yes.", "dlg_17_1")
  57. else
  58. AddConversationOption(conversation, "Not yet.")
  59. end
  60. StartConversation(conversation, NPC, Spawn, "Did you take care of their supplies?")
  61. end
  62. function dlg_17_1(NPC, Spawn)
  63. if HasQuest(Spawn, QUEST_1) then
  64. SetStepComplete(Spawn, QUEST_1, 2)
  65. end
  66. FaceTarget(NPC, Spawn)
  67. conversation = CreateConversation()
  68. PlayFlavor(NPC, "voiceover/english/rok_questvo/tanzikla_hir_ki/_exp04/exp04_rgn_timorous_deep/chrykori_tie/hirki/hirki004.mp3", "", "", 565281593, 236720523, Spawn)
  69. AddConversationOption(conversation, "All right.", "OfferQuest2")
  70. StartConversation(conversation, NPC, Spawn, "Nice work. That will buy us some time. Part of why we're in the situation we're in is because we underestimated the metalworking skills of the Haoaerans. Their weapons aren't nearly as weak as they once were. We aren't sure if the Haoaerans made them themselves, but we'd like to figure that out. Please travel up to Thulwun Station once again. Search the bodies of the fallen Haoaerans and bring me their weapons for study.")
  71. end
  72. -------------------------------------------------------------------------------------------------------------------
  73. -- QUEST 2
  74. -------------------------------------------------------------------------------------------------------------------
  75. function OfferQuest2(NPC, Spawn)
  76. FaceTarget(NPC, Spawn)
  77. OfferQuest(NPC, Spawn, QUEST_2)
  78. end
  79. function DidYouRetrieveWeapons(NPC, Spawn, conversation)
  80. PlayFlavor(NPC, "voiceover/english/rok_questvo/tanzikla_hir_ki/_exp04/exp04_rgn_timorous_deep/chrykori_tie/hirki/hirki006.mp3", "", "", 1514090690, 2956933303, Spawn)
  81. if GetQuestStep(Spawn, QUEST_2) == 2 then
  82. AddConversationOption(conversation, "Yes, I did.", "dlg_19_1")
  83. else
  84. AddConversationOption(conversation, "Not yet.")
  85. end
  86. StartConversation(conversation, NPC, Spawn, "Did you retrieve their weapons?")
  87. end
  88. function dlg_19_1(NPC, Spawn)
  89. SetStepComplete(Spawn, QUEST_2, 2)
  90. FaceTarget(NPC, Spawn)
  91. conversation = CreateConversation()
  92. PlayFlavor(NPC, "voiceover/english/rok_questvo/tanzikla_hir_ki/_exp04/exp04_rgn_timorous_deep/chrykori_tie/hirki/hirki007.mp3", "", "", 2564656544, 3314424538, Spawn)
  93. AddConversationOption(conversation, "You're welcome.")
  94. StartConversation(conversation, NPC, Spawn, "Excellent, excellent. I believe Dih'Ha has worked out a solution to this mess. I will be ready in case more fighting is required of me, but I must now begin studying these weapons. Thank you, " .. GetName(Spawn) .. ".")
  95. end