9
3

Civ-ParserDiXin.lua 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. --[[
  2. Script Name : SpawnScripts/TimorousDeep/Civ-ParserDiXin.lua
  3. Script Purpose : Civ-Parser Di'Xin
  4. Script Author : John Adams
  5. Script Date : 2009.02.07
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. QUEST_1 = 115
  9. QUEST_2 = 116
  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. CivParserAtYourService(NPC, Spawn, conversation)
  23. elseif HasQuest(Spawn, QUEST_2) then
  24. DidYouRetrieveRelics(NPC, Spawn, conversation)
  25. else
  26. DidYouFindTheRelics(NPC, Spawn, conversation)
  27. end
  28. elseif HasQuest(Spawn, QUEST_1) then
  29. DidYouFindTheRelics(NPC, Spawn, conversation)
  30. else
  31. CivParserAtYourService(NPC, Spawn, conversation)
  32. end
  33. end
  34. --------------------------------------------------------------------------------------------------
  35. -- QUEST 1
  36. --------------------------------------------------------------------------------------------------
  37. function CivParserAtYourService(NPC, Spawn, conversation)
  38. PlayFlavor(NPC, "voiceover/english/rok_questvo/civ-parser_di_xin/_exp04/exp04_rgn_timorous_deep/chrykori_tie/dixin/dixin000.mp3", "", "", 3169361985, 1904654479, Spawn)
  39. if not HasCompletedQuest(Spawn, QUEST_1) and not HasCompletedQuest(Spawn, QUEST_2) then
  40. AddConversationOption(conversation, "What do you do here?", "dlg_11_1")
  41. end
  42. AddConversationOption(conversation, "It is nice to meet you, Di'Xin, but I must go.")
  43. StartConversation(conversation, NPC, Spawn, "Civ-Parser Di'Xin, at your service.")
  44. end
  45. function dlg_11_1(NPC, Spawn)
  46. FaceTarget(NPC, Spawn)
  47. conversation = CreateConversation()
  48. PlayFlavor(NPC, "voiceover/english/rok_questvo/civ-parser_di_xin/_exp04/exp04_rgn_timorous_deep/chrykori_tie/dixin/dixin003.mp3", "", "", 3327582495, 1668849620, Spawn)
  49. AddConversationOption(conversation, "Sure.", "OfferQuest1")
  50. StartConversation(conversation, NPC, Spawn, "The same thing the Haoaeran spirocs are doing, but for different ends. I seek to unlock our past. We began to study the relics of this island a short while ago. Not long after we set up here, the Haoaerans came at us in full force, and pushed us from our research sites. It was unfortunate, but I can still study relics that the crabs unearth on the beaches around Chrykori Village. Would you care to gather some for me?")
  51. end
  52. function OfferQuest1(NPC, Spawn)
  53. FaceTarget(NPC, Spawn)
  54. OfferQuest(NPC, Spawn, QUEST_1)
  55. end
  56. function DidYouFindTheRelics(NPC, Spawn, conversation)
  57. PlayFlavor(NPC, "voiceover/english/rok_questvo/civ-parser_di_xin/_exp04/exp04_rgn_timorous_deep/chrykori_tie/dixin/dixin005.mp3", "", "", 3292289491, 239494895, Spawn)
  58. if (HasCompletedQuest(Spawn, QUEST_1) and not HasCompletedQuest(Spawn, QUEST_2)) or (HasQuest(Spawn, QUEST_1) and GetQuestStep(Spawn, QUEST_1) == 2) then
  59. AddConversationOption(conversation, "Yes, here you are.", "dlg_26_1")
  60. else
  61. AddConversationOption(conversation, "Not yet.")
  62. end
  63. StartConversation(conversation, NPC, Spawn, "Did you find the relics?")
  64. end
  65. function dlg_26_1(NPC, Spawn)
  66. if HasQuest(Spawn, QUEST_1) then
  67. SetStepComplete(Spawn, QUEST_1, 2)
  68. end
  69. FaceTarget(NPC, Spawn)
  70. conversation = CreateConversation()
  71. PlayFlavor(NPC, "voiceover/english/rok_questvo/civ-parser_di_xin/_exp04/exp04_rgn_timorous_deep/chrykori_tie/dixin/dixin006.mp3", "", "", 1898035325, 1748406413, Spawn)
  72. AddConversationOption(conversation, "What do you mean?", "dlg_26_2")
  73. StartConversation(conversation, NPC, Spawn, "Wonderful! It is important that we gather these relics as soon as we can, " .. GetName(Spawn) .. ". The Haoaerans do not respect relics such as these and will no doubt twist or destroy them.")
  74. end
  75. ------------------------------------------------------------------------------------------
  76. -- QUEST 2
  77. -------------------------------------------------------------------------------------------
  78. function dlg_26_2(NPC, Spawn)
  79. FaceTarget(NPC, Spawn)
  80. conversation = CreateConversation()
  81. PlayFlavor(NPC, "voiceover/english/rok_questvo/civ-parser_di_xin/_exp04/exp04_rgn_timorous_deep/chrykori_tie/dixin/dixin007.mp3", "", "", 3848712834, 1158441901, Spawn)
  82. AddConversationOption(conversation, "Perhaps I could retrieve the artifacts from them.", "OfferQuest2")
  83. StartConversation(conversation, NPC, Spawn, "They will discard anything that does not obviously lead them to power. That is all they seek: power. They do not care where it comes from, or what they destroy in the process. Even now, they strip the statue in the Timeworn Pools of precious artifacts, and discard and often destroy things that they deem 'unworthy.' These items could be studied, but they are instead lost forever.")
  84. end
  85. function OfferQuest2(NPC, Spawn)
  86. FaceTarget(NPC, Spawn)
  87. OfferQuest(NPC, Spawn, QUEST_2)
  88. end
  89. function DidYouRetrieveRelics(NPC, Spawn, conversation)
  90. PlayFlavor(NPC, "voiceover/english/rok_questvo/civ-parser_di_xin/_exp04/exp04_rgn_timorous_deep/chrykori_tie/dixin/dixin009.mp3", "", "", 6013376, 3504675397, Spawn)
  91. if HasQuest(Spawn, QUEST_2) and GetQuestStep(Spawn, QUEST_2) == 2 then
  92. AddConversationOption(conversation, "Yes, I did.", "dlg_33_1")
  93. else
  94. AddConversationOption(conversation, "No.")
  95. end
  96. StartConversation(conversation, NPC, Spawn, "Did you retrieve the relics?")
  97. end
  98. function dlg_33_1(NPC, Spawn)
  99. SetStepComplete(Spawn, QUEST_2, 2)
  100. FaceTarget(NPC, Spawn)
  101. conversation = CreateConversation()
  102. PlayFlavor(NPC, "voiceover/english/rok_questvo/civ-parser_di_xin/_exp04/exp04_rgn_timorous_deep/chrykori_tie/dixin/dixin010.mp3", "", "", 1056036231, 2932471518, Spawn)
  103. AddConversationOption(conversation, "You're welcome.", "dlg_33_2")
  104. StartConversation(conversation, NPC, Spawn, "Ah, thank you, thank you. All history is precious, " .. GetName(Spawn) .. ", no matter how powerful or powerless the race.")
  105. end