exploring_the_chessboard.lua 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. --[[
  2. Script Name : Quests/Antonica/exploring_the_chessboard.lua
  3. Script Author : Premierio015
  4. Script Date : 2021.08.24 05:08:36
  5. Script Purpose :
  6. Zone : Antonica
  7. Quest Giver:
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. require "SpawnScripts/Generic/DialogModule"
  12. function Init(Quest)
  13. AddQuestStepZoneLoc(Quest, 1, "I must find the chessboard floor in Stormhold.", 10, "I should venture into the Stormhold to see if this giant chessboard floor exists.", 0, 70, -5, -100, 15)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  15. UpdateQuestZone(Quest,"Stormhold")
  16. end
  17. function Step1Complete(Quest, QuestGiver, Player)
  18. UpdateQuestStepDescription(Quest, 1, "I found the chessboard floor in Stormhold.")
  19. UpdateQuestTaskGroupDescription(Quest, 1, "I saw the remarkable chessboard in the Stormhold.")
  20. UpdateQuestZone(Quest,"Antonica")
  21. AddQuestStepChat(Quest, 2, "I must speak with Breeza Harmet.", 1, "I should return to Breeza Harmet at Windstalker Pond in Antonica and tell her of the giant chessboard.", 0, 120159)
  22. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  23. end
  24. function Accepted(Quest, QuestGiver, Player)
  25. FaceTarget(QuestGiver, Player)
  26. Dialog.New(QuestGiver, Player)
  27. Dialog.AddDialog("Oh no, not I. I'm not an adventurer like you. I'm a mere fletcher who enjoys a good game of chess. Unfortunately, the banquet hall is within Stormguard, the legendary home of the Knights of Thunder. If you come across the fortress in your travels, would you return to me and let me know if the chessboard hall truly exists?")
  28. Dialog.AddVoiceover("voiceover/english/breeza_harmet/antonica/breezaharmet002.mp3", 3534908306, 1371562053)
  29. PlayFlavor(QuestGiver, "", "", "no", 0, 0, Player)
  30. Dialog.AddOption("Most call it Stormhold. I have heard tales of it. If I see this giant chessboard, I will return to tell you.")
  31. Dialog.Start()
  32. end
  33. function Declined(Quest, QuestGiver, Player)
  34. end
  35. function QuestComplete(Quest, QuestGiver, Player)
  36. UpdateQuestStepDescription(Quest, 2, "I have spoken with Breeza Harmet.")
  37. UpdateQuestTaskGroupDescription(Quest, 2, "I told Breeza Harmet of the chessboard in Stormhold.")
  38. UpdateQuestDescription(Quest, "Upon exploring Stormhold I was able to find the chessboard which Breeza had spoken of. It does seem the Knights of Thunder held banquets here but why on a chessboard? Maybe there is more to this unique room...")
  39. GiveQuestReward(Quest, Player)
  40. end
  41. function Reload(Quest, QuestGiver, Player, Step)
  42. if Step == 1 then
  43. Step1Complete(Quest, QuestGiver, Player)
  44. elseif Step == 2 then
  45. QuestComplete(Quest, QuestGiver, Player)
  46. end
  47. end