CaptainEitoa.lua 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. --[[
  2. Script Name : SpawnScripts/Antonica/CaptainEitoa.lua
  3. Script Purpose : Captain Eitoa
  4. Script Author : geordie0511
  5. Script Date : 2019.03.19
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. local Keep = 470
  9. local Gnoll = 471
  10. local Captain = 472
  11. function spawn(NPC)
  12. SetPlayerProximityFunction(NPC, 10, "InRange", "LeaveRange")
  13. ProvidesQuest(NPC, Keep)
  14. ProvidesQuest(NPC, Gnoll)
  15. ProvidesQuest(NPC, Captain)
  16. end
  17. function respawn(NPC)
  18. spawn(NPC)
  19. end
  20. function InRange(NPC, Spawn)
  21. end
  22. function LeaveRange(NPC, Spawn)
  23. end
  24. function hailed(NPC, Spawn)
  25. FaceTarget(NPC, Spawn)
  26. conversation = CreateConversation()
  27. PlayFlavor(NPC, "voiceover/english/captain_eitoa/antonica/captaineitoa000.mp3", "", "", 1089362944, 4215517300, Spawn)
  28. if GetQuestStep(Spawn, Keep) == 2 then
  29. PlayFlavor(NPC, "voiceover/english/captain_eitoa/antonica/captaineitoa003.mp3", "", "", 1980389994, 2821940048, Spawn)
  30. AddConversationOption(conversation, "I was happy to be of assistance.")
  31. StartConversation(conversation, NPC, Spawn, "Good. I worry about our outposts, especially the ones that... well, let's just say I'm relieved. At any rate, here's a bit of coin from the city's coffers. Qeynos thanks you for your service.")
  32. SetStepComplete(Spawn, Keep, 2)
  33. elseif GetQuestStep(Spawn, Gnoll) == 4 then
  34. AddConversationOption(conversation, "Beltho's report, as you requested.", "dlg_18_1")
  35. AddConversationOption(conversation, "Ok, thanks anyway.")
  36. StartConversation(conversation, NPC, Spawn, "I wouldn't mind chatting with you in Irontoe's East, but here I've got work to do.")
  37. elseif GetQuestStep(Spawn, Captain) == 2 then
  38. SetStepComplete(Spawn, Captain, 2)
  39. elseif HasCompletedQuest(Spawn, Keep) == false and HasQuest(Spawn, Keep) == false then
  40. PlayFlavor(NPC, "voiceover/english/captain_eitoa/antonica/captaineitoa001.mp3", "", "", 1114858162, 289977028, Spawn)
  41. AddConversationOption(conversation, "It is the least I can do for Qeynos.", "dlg_2_2")
  42. AddConversationOption(conversation, "That sounds a bit too far for me.")
  43. StartConversation(conversation, NPC, Spawn, "There is something you can do. I've posted a guard at the Keep of the Ardent Needle, and he hasn't been reporting to me as often as I'd like. Would you go inspect the keep and make sure everything is in order?")
  44. elseif HasCompletedQuest(Spawn, Gnoll) == false and HasQuest(Spawn, Gnoll) == false and HasCompletedQuest(Spawn, Keep) then
  45. PlayFlavor(NPC, "voiceover/english/captain_eitoa/antonica/captaineitoa004.mp3", "", "", 14052338, 3802502153, Spawn)
  46. AddConversationOption(conversation, "I suppose I can do that.", "dlg_4_2")
  47. AddConversationOption(conversation, "Let someone else deal with it, I'm not interested.")
  48. StartConversation(conversation, NPC, Spawn, "I do. I need someone to check with Captain Beltho at Gnollslayer Keep and return with his report about the gnolls. I hope he's made progress since the last one.")
  49. elseif HasCompletedQuest(Spawn, Captain) == false and HasQuest(Spawn, Captain) == false and HasCompletedQuest(Spawn, Gnoll) then
  50. OfferQuest(NPC, Spawn, Captain)
  51. end
  52. end
  53. function Quest1(NPC, Spawn)
  54. OfferQuest(NPC, Spawn, Keep)
  55. end
  56. function Quest2(NPC, Spawn)
  57. OfferQuest(NPC, Spawn, Gnoll)
  58. end
  59. --------------- Keep
  60. function dlg_2_2(NPC, Spawn)
  61. FaceTarget(NPC, Spawn)
  62. conversation = CreateConversation()
  63. PlayFlavor(NPC, "voiceover/english/captain_eitoa/antonica/captaineitoa002.mp3", "", "", 2766073172, 817198256, Spawn)
  64. AddConversationOption(conversation, "I'll return after I've performed the inspection.", "Quest1")
  65. StartConversation(conversation, NPC, Spawn, "Go then. You'll find the Keep on the north side of the ridge, just this side of the Tower of the Oracles. It's one of the few keeps in pristine condition.")
  66. end
  67. --------------- Quest2
  68. function dlg_4_2(NPC, Spawn)
  69. FaceTarget(NPC, Spawn)
  70. conversation = CreateConversation()
  71. PlayFlavor(NPC, "voiceover/english/captain_eitoa/antonica/captaineitoa005.mp3", "", "", 1672181328, 1405369900, Spawn)
  72. AddConversationOption(conversation, "I'll return when I'm finished.", "Quest2")
  73. StartConversation(conversation, NPC, Spawn, "It's a fair distance, but not hard to find. Take the south path around the mountain range that splits Antonica. Once you cross the bridge at the far side of the valley, follow the river a hundred cogs or so, then turn east until you see a small keep with a moat. Captain Beltho should be there. If he's not, I'll want to know why he's not at his post.")
  74. end
  75. ---- Gnoll
  76. function dlg_18_1(NPC, Spawn)
  77. FaceTarget(NPC, Spawn)
  78. conversation = CreateConversation()
  79. PlayFlavor(NPC, "voiceover/english/captain_eitoa/antonica/captaineitoa006.mp3", "", "", 3813922311, 2543607309, Spawn)
  80. AddConversationOption(conversation, "I suppose I was lucky to some extent. ", "dlg_18_2")
  81. StartConversation(conversation, NPC, Spawn, "Give me a moment to read over this... Finally, some real progress! Beltho mentions your involvement with finding the hidden entrance to the gnoll lair. Well done!")
  82. end
  83. function dlg_18_2(NPC, Spawn)
  84. FaceTarget(NPC, Spawn)
  85. conversation = CreateConversation()
  86. PlayFlavor(NPC, "voiceover/english/captain_eitoa/antonica/captaineitoa007.mp3", "", "", 193114966, 1655403283, Spawn)
  87. AddConversationOption(conversation, "Thank you very much. Once again, I am happy to have been of service.")
  88. StartConversation(conversation, NPC, Spawn, "Don't underplay your skills. Without your help, Beltho would still be searching for the hidden entrance to the lair. Take this signet ring as a mark of my gratitude and trust.")
  89. SetStepComplete(Spawn, Gnoll, 4)
  90. end
  91. ---------------------