exploring_the_chessboard.lua 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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. function Init(Quest)
  12. 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)
  13. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  14. end
  15. function Step1Complete(Quest, QuestGiver, Player)
  16. UpdateQuestStepDescription(Quest, 1, "I found the chessboard floor in Stormhold.")
  17. UpdateQuestTaskGroupDescription(Quest, 1, "I saw the remarkable chessboard in the Stormhold.")
  18. 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)
  19. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  20. end
  21. function Accepted(Quest, QuestGiver, Player)
  22. FaceTarget(QuestGiver, Player)
  23. local conversation = CreateConversation()
  24. PlayFlavor(QuestGiver, "voiceover/english/breeza_harmet/antonica/breezaharmet002.mp3", "", "", 3534908306, 1371562053, Player)
  25. AddConversationOption(conversation, "Most call it Stormhold. I have heard tales of it. If I see this giant chessboard, I will return to tell you.")
  26. StartConversation(conversation, QuestGiver, Player, "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?")
  27. end
  28. function Declined(Quest, QuestGiver, Player)
  29. end
  30. function QuestComplete(Quest, QuestGiver, Player)
  31. UpdateQuestStepDescription(Quest, 2, "I have spoken with Breeza Harmet.")
  32. UpdateQuestTaskGroupDescription(Quest, 2, "I told Breeza Harmet of the chessboard in Stormhold.")
  33. 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...")
  34. GiveQuestReward(Quest, Player)
  35. end
  36. function Reload(Quest, QuestGiver, Player, Step)
  37. if Step == 1 then
  38. Step1Complete(Quest, QuestGiver, Player)
  39. elseif Step == 2 then
  40. QuestComplete(Quest, QuestGiver, Player)
  41. end
  42. end