9
3

key_to_fallen_gate.lua 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. --[[
  2. Script Name : Quests/CityofFreeport/key_to_fallen_gate.lua
  3. Script Author : Premierio015
  4. Script Date : 2021.06.03 09:06:49
  5. Script Purpose : Access Quest for Fallen Gate
  6. Zone : CityofFreeport
  7. Quest Giver: Kanos X'Aphon
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepChat(Quest, 1, "I need to speak with Tundis N'oxyle.", 1, "I must speak with Tundis N'oxyle in the Commonlands about joining the Thexians.", 0, 330394)
  13. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  14. end
  15. function Step1Complete(Quest, QuestGiver, Player)
  16. UpdateQuestStepDescription(Quest, 1, "I've spoken with Tundis N'oxyle.")
  17. UpdateQuestTaskGroupDescription(Quest, 1, "I've spoken with Tundis N'oxyle about joining the Thexians.")
  18. AddQuestStepKill(Quest, 2, "I must return with five stones from the sandstone giants.", 5, 100, "I must kill five sandstone giants in the Commonlands to prove my worth to Tundis N'oxyle.", 0, 330108)
  19. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  20. end
  21. function Step2Complete(Quest, QuestGiver, Player)
  22. UpdateQuestStepDescription(Quest, 2, "I have recovered five sand stones.")
  23. UpdateQuestTaskGroupDescription(Quest, 2, "I've killed all five of the giants Tundis required me to slay.")
  24. AddQuestStepChat(Quest, 3, "I need to speak with Tundis N'oxyle.", 1, "I must return to Tundis N'oxyle and inform him of the completion of his task.", 0, 330394)
  25. AddQuestStepCompleteAction(Quest, 3, "Step3Complete")
  26. end
  27. function Step3Complete(Quest, QuestGiver, Player)
  28. UpdateQuestStepDescription(Quest, 3, "I've spoken with Tundis N'oxyle.")
  29. UpdateQuestTaskGroupDescription(Quest, 3, "I've spoken with Tundis N'oxyle about joining the Thexians.")
  30. AddQuestStepChat(Quest, 4, "I need to speak with Kanos X'aphon.", 1, "I must return to Kanos X'aphon to tell him of the meeting.", 0, 5590592, 1440080)
  31. AddQuestStepCompleteAction(Quest, 4, "Step4Complete")
  32. end
  33. function Step4Complete(Quest, QuestGiver, Player)
  34. UpdateQuestStepDescription(Quest, 4, "I've spoken with Kanos X'aphon.")
  35. UpdateQuestTaskGroupDescription(Quest, 4, "I've returned to Kanos X'aphon, and told him of the Thexian gathering.")
  36. AddQuestStep(Quest, 5, "I must find the leader of the Thexians and take her keys.", 2, 100, "I slaughtered the Thexians standing in my way in order to gather the keys needed.", 0)
  37. AddQuestStepCompleteAction(Quest, 5, "Step5Complete")
  38. end
  39. function Step5Complete(Quest, QuestGiver, Player)
  40. UpdateQuestStepDescription(Quest, 5, "I killed Inana V'sorn and recovered the keys.")
  41. UpdateQuestTaskGroupDescription(Quest, 5, "I slaughtered the Thexians standing in my way in order to gather the keys needed.")
  42. AddQuestStepChat(Quest, 6, "I need to give a key to Kanos X'aphon.", 1, "I must speak with Kanos X'aphon, and give him the key he requires.", 0, 4730011)
  43. AddQuestStepCompleteAction(Quest, 6, "QuestComplete")
  44. end
  45. function Accepted(Quest, QuestGiver, Player)
  46. FaceTarget(QuestGiver, Player)
  47. local conversation = CreateConversation()
  48. AddConversationOption(conversation, "I will speak with this Tundis.")
  49. StartConversation(conversation, QuestGiver, Player, "As you can imagine, my views do not impress the Thexians. Unfortunately, they are the only ones who have been able to reach the lost city. I need you to pose as one interested in joining their cause. You'll need to speak with Tundis N'oxyle near the gate the Thexians erected in the Commonlands. Do not return until you have further information for me.")
  50. PlayFlavor(NPC, "voiceover/english/optional1/kanos_x_aphon/fprt_north/kanosxaphon004.mp3", "", "", 2530646913, 2046210703, Spawn)
  51. end
  52. function Declined(Quest, QuestGiver, Player)
  53. end
  54. function QuestComplete(Quest, QuestGiver, Player)
  55. UpdateQuestStepDescription(Quest, 6, "I've given the key to Kanos X'aphon.")
  56. UpdateQuestTaskGroupDescription(Quest, 6, "I've spoken with Kanos X'aphon and given him the key he desired.")
  57. UpdateQuestDescription(Quest, "After slaying every Thexian in the building, I managed to get both a key for myself and Kanos. He certainly took his time in getting to the meeting, that's for certain. He's covered up the mess, but only at the cost of enlisting my services at an unnamed point in the future.")
  58. GiveQuestReward(Quest, Player)
  59. end
  60. function Reload(Quest, QuestGiver, Player, Step)
  61. if Step == 1 then
  62. Step1Complete(Quest, QuestGiver, Player)
  63. elseif Step == 2 then
  64. Step2Complete(Quest, QuestGiver, Player)
  65. elseif Step == 3 then
  66. Step3Complete(Quest, QuestGiver, Player)
  67. elseif Step == 4 then
  68. Step4Complete(Quest, QuestGiver, Player)
  69. elseif Step == 5 then
  70. Step5Complete(Quest, QuestGiver, Player)
  71. elseif Step == 6 then
  72. QuestComplete(Quest, QuestGiver, Player)
  73. end
  74. end