freeport_to_qeynos__part_2.lua 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. --[[
  2. Script Name : Quests/Hallmark/freeport_to_qeynos__part_2.lua
  3. Script Author : Dorbin
  4. Script Date : 2023.09.25 07:09:16
  5. Script Purpose :
  6. Zone : Hallmark
  7. Quest Giver:
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. require "SpawnScripts/Generic/DialogModule"
  12. function Init(Quest)
  13. AddQuestStep(Quest, 1, "I need to reach the official before it's too late.", 1, 100, "I need to find the official in the mansion and put a stop to him. I only hope I can reach him in time.", 11)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  15. end
  16. function Accepted(Quest, QuestGiver, Player)
  17. FaceTarget(QuestGiver, Player)
  18. Dialog.New(QuestGiver, Player)
  19. Dialog.AddDialog("You made the right choice and just in time! We learned the location of a secret meeting involving a very important Freeport official. As we speak, he's planning to invade Qeynos.")
  20. Dialog.AddVoiceover("voiceover/english/watcher_kenjedeau/fprt_sewer02/watcher_kenjedeau006.mp3", 1366986633, 1336111674)
  21. PlayFlavor(QuestGiver, "", "", "agree", 0, 0, Player)
  22. Dialog.AddOption("What must I do?","Retry")
  23. Dialog.Start()
  24. if HasQuest(Player,5889) and GetQuestStep(Player,5889) ==1 then
  25. SetStepComplete(Player,5889,1)
  26. end
  27. end
  28. function Declined(Quest, QuestGiver, Player)
  29. FaceTarget(QuestGiver, Player)
  30. Dialog.New(QuestGiver, Player)
  31. Dialog.AddDialog("I thought I smelled a coward. I want nothing to do with you until you come to your senses.")
  32. Dialog.AddVoiceover("voiceover/english/watcher_kenjedeau/fprt_sewer02/watcher_kenjedeau005.mp3", 1178065540, 4141402431)
  33. PlayFlavor(QuestGiver, "", "", "glare", 0, 0, Player)
  34. Dialog.AddOption("Fine.")
  35. Dialog.Start()
  36. if HasQuest(Player,5889) and GetQuestStep(Player,5889) ==1 then
  37. SetStepFailed(Player,5889,1)
  38. end
  39. end
  40. function Deleted(Quest, QuestGiver, Player)
  41. end
  42. function Step1Complete(Quest)
  43. UpdateQuestStepDescription(Quest, 1, "I fought my way to the room where the official awaited me.")
  44. UpdateQuestTaskGroupDescription(Quest, 1, "I've reached the official, only to find out he was waiting for me... along with my fellow 'conspirators'.")
  45. AddQuestStepZoneLoc(Quest, 2, "I need to await judgement.", 15, "I've been tricked, but I'm still intent on leaving Freeport. I must await judgement.", 11-1341.61, -69.51, 333.4,33)
  46. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  47. end
  48. function QuestComplete(Quest, QuestGiver, Player)
  49. UpdateQuestStepDescription(Quest, 2, "I have been judged as a traitor to Freeport.")
  50. UpdateQuestTaskGroupDescription(Quest, 2, "I have been banished from Freeport, but I am still alive for some reason.")
  51. UpdateQuestDescription(Quest, "I am the victim of a cruel and elaborate hoax intended to coerce people into betraying Freeport, all for the amusement of the Overlord himself. In the end, I still believed in what I said and accepted my fate. For some reason... I'm still alive. <br> <br>")
  52. GiveQuestReward(Quest, Player)
  53. end
  54. function Reload(Quest, QuestGiver, Player, Step)
  55. if Step == 1 then
  56. Step1Complete(Quest, QuestGiver, Player)
  57. elseif Step == 1 then
  58. QuestComplete(Quest, QuestGiver, Player)
  59. end
  60. end