sketch_the_qeynos_claymore_monument.lua 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. --[[
  2. Script Name : Quests/Nettleville/sketch_the_qeynos_claymore_monument.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.06.24 03:06:44
  5. Script Purpose :
  6. Zone : Nettleville
  7. Quest Giver:
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. require "SpawnScripts/Generic/DialogModule"
  12. function Init(Quest)
  13. AddQuestStepLocation(Quest, 1, "I need to sketch the Qeynos Claymore.", 7, "I need to search North Qeynos for the Qeynos Claymore monument.", 195, 295.30, -18.08, -21.15)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  15. UpdateQuestZone(Quest,"North Qeynos")
  16. end
  17. function Accepted(Quest, QuestGiver, Player)
  18. FaceTarget(QuestGiver, Player)
  19. Dialog.New(QuestGiver, Player)
  20. PlayFlavor(QuestGiver, "", "", "thanks", 0, 0, Player)
  21. Dialog.AddDialog("Take this sketch pad and search the center of Qeynos for the Qeynos Claymore Monument. I have an order for a duplicate of the legendary sword. I need an accurate sketch to use as a model.")
  22. Dialog.AddVoiceover("voiceover/english/smith_cayless_chambers/qey_village01/smithcayless002.mp3", 1924901518, 3903244949)
  23. if GetClass(Player)== 54 then
  24. Dialog.AddOption("I'm actually a bit of a scholar. Hopefully my skills will prove useful.")
  25. end
  26. Dialog.AddOption("No promises on my drawing skills, but I'll be back with a sketch.")
  27. Dialog.Start()
  28. end
  29. function Declined(Quest, QuestGiver, Player)
  30. -- Add dialog here for when the quest is declined
  31. end
  32. function Deleted(Quest, QuestGiver, Player)
  33. -- Remove any quest specific items here when the quest is deleted
  34. end
  35. function Step1Complete(Quest, QuestGiver, Player)
  36. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  37. UpdateQuestStepDescription(Quest, 1, "I have sketched the Qeynos Claymore monument.")
  38. UpdateQuestTaskGroupDescription(Quest, 1, "I have sketched the Qeynos Claymore monument.")
  39. UpdateQuestZone(Quest,"Nettleville")
  40. AddQuestStepChat(Quest, 2, "I need to give my sketch to Smith Cayless Chambers.", 1, "I need to deliver my sketch of the Claymore Monument to Smith Cayless Chambers in Nettleville.", 195, 2330041)
  41. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  42. end
  43. function QuestComplete(Quest, QuestGiver, Player)
  44. UpdateQuestStepDescription(Quest, 2, "I returned to Smith Cayless Chambers.")
  45. UpdateQuestTaskGroupDescription(Quest, 2, "I returned to Smith Cayless Chambers.")
  46. UpdateQuestDescription(Quest, "I discovered and sketched the Qeynos Claymore monument. I have given the sketchpad to Smith Cayless Chambers in Nettleville. She paid me for my service and threw in a easel for my future artistic endeavors.")
  47. GiveQuestReward(Quest, Player)
  48. end
  49. function Reload(Quest, QuestGiver, Player, Step)
  50. if Step == 1 then
  51. Step1Complete(Quest, QuestGiver, Player)
  52. elseif Step == 2 then
  53. QuestComplete(Quest, QuestGiver, Player)
  54. end
  55. end