9
3

CraewenKuVi.lua 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. --[[
  2. Script Name : SpawnScripts/TimorousDeep/CraewenKuVi.lua
  3. Script Purpose : Craewen Ku'Vi <Chrykori Standard>
  4. Script Author : John Adams
  5. Script Date : 2009.02.26
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. QUEST_1 = 122
  9. QUEST_2 = 123
  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.", Spawn)
  23. elseif HasQuest(Spawn, QUEST_2) then
  24. HaveYouSlainHim(NPC, Spawn, conversation)
  25. else
  26. DidYouDoAsIOrdered(NPC, Spawn, conversation)
  27. end
  28. elseif HasQuest(Spawn, QUEST_1) then
  29. DidYouDoAsIOrdered(NPC, Spawn, conversation)
  30. else
  31. BeenGivenTheGoAhead(NPC, Spawn, conversation)
  32. end
  33. end
  34. ------------------------------------------------------------------------------------------------------
  35. -- QUEST 1
  36. ------------------------------------------------------------------------------------------------------
  37. function BeenGivenTheGoAhead(NPC, Spawn, conversation)
  38. PlayFlavor(NPC, "voiceover/english/rok_questvo/craewen_ku_vi/_exp04/exp04_rgn_timorous_deep/chrykori_tie/kuvi/kuvi000.mp3", "", "", 3003708806, 203405231, Spawn)
  39. AddConversationOption(conversation, "We should stop them.", "dlg_35_1")
  40. StartConversation(conversation, NPC, Spawn, "Craewen Ku'Vi, Chrykori Standard. Though we are not yet taking large-scale action against the Haoaerans, I have been given the go ahead to 'interact' with them in any way I see fit. After all, they have been 'interacting' with us and proving to be quite the nuisance. Just south of here you'll find the place where their turf-hunters congregate. From there they move out, intent on capturing and enslaving us.")
  41. end
  42. function dlg_35_1(NPC, Spawn)
  43. FaceTarget(NPC, Spawn)
  44. conversation = CreateConversation()
  45. PlayFlavor(NPC, "voiceover/english/rok_questvo/craewen_ku_vi/_exp04/exp04_rgn_timorous_deep/chrykori_tie/kuvi/kuvi001.mp3", "", "", 4081585464, 1720216201, Spawn)
  46. AddConversationOption(conversation, "An excellent plan.", "OfferQuest1")
  47. StartConversation(conversation, NPC, Spawn, "We should do more than that. We should rid their heads of any thought of disturbing us. When their turf-hunters make their first capture, they are rewarded with 'pride feathers.' They dress themselves in these feathers as a further mockery aimed directly at us, " .. GetName(Spawn) .. ". I want to strip them of their pride. It is shameful for a turf-hunter to lose their pride feathers. A field of dead hunters with missing feathers will send a strong message, I think.")
  48. end
  49. function OfferQuest1(NPC, Spawn)
  50. FaceTarget(NPC, Spawn)
  51. OfferQuest(NPC, Spawn, QUEST_1)
  52. end
  53. function DidYouDoAsIOrdered(NPC, Spawn, conversation)
  54. PlayFlavor(NPC, "voiceover/english/rok_questvo/craewen_ku_vi/_exp04/exp04_rgn_timorous_deep/chrykori_tie/kuvi/kuvi003.mp3", "", "", 1083166353, 2321357216, 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, "I have.", "dlg_36_1")
  57. else
  58. AddConversationOption(conversation, "Not yet.")
  59. end
  60. StartConversation(conversation, NPC, Spawn, "Did you do as I ordered?")
  61. end
  62. function dlg_36_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/craewen_ku_vi/_exp04/exp04_rgn_timorous_deep/chrykori_tie/kuvi/kuvi004.mp3", "", "", 1541155744, 479902070, Spawn)
  69. AddConversationOption(conversation, "They will be a bloody mass in your hand.", "OfferQuest2")
  70. StartConversation(conversation, NPC, Spawn, "I am glad to hear it. I myself have sought out fights with the turf-hunters. Though I overcame many of their best, I was finally snared by Valcryn. I was among the prisoners held in Pyrrin Roost. In capturing me, he became a hero to his people, and he was elected to lead the turf-hunters. Even now, long after my escape, he resides at their head, plotting their strategies. My shame was his pride, " .. GetName(Spawn) .. ". and I wish to strip him of it. Bring his pride feathers--and his head.")
  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 HaveYouSlainHim(NPC, Spawn, conversation)
  80. PlayFlavor(NPC, "voiceover/english/rok_questvo/craewen_ku_vi/_exp04/exp04_rgn_timorous_deep/chrykori_tie/kuvi/kuvi006.mp3", "", "", 893812873, 507074747, Spawn)
  81. if HasQuest(Spawn, QUEST_2) and GetQuestStep(Spawn, QUEST_2) == 2 then
  82. AddConversationOption(conversation, "Yes, he is dead.", "dlg_41_1")
  83. else
  84. AddConversationOption(conversation, "Not yet.")
  85. end
  86. StartConversation(conversation, NPC, Spawn, "Have you slain him?")
  87. end
  88. function dlg_41_1(NPC, Spawn)
  89. SetStepComplete(Spawn, QUEST_2, 2)
  90. FaceTarget(NPC, Spawn)
  91. conversation = CreateConversation()
  92. PlayFlavor(NPC, "voiceover/english/rok_questvo/craewen_ku_vi/_exp04/exp04_rgn_timorous_deep/chrykori_tie/kuvi/kuvi007.mp3", "", "", 421487037, 477036489, Spawn)
  93. AddConversationOption(conversation, "You are welcome.", "dlg_41_2")
  94. StartConversation(conversation, NPC, Spawn, "With him gone, fewer Sarnak will suffer within Pyrrin Roost. Thank you, " .. GetName(Spawn) .. ".")
  95. end