9
3

SearchingforSigils.lua 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. --[[
  2. Script Name : Quests/Darklight/SearchingforSigils.lua
  3. Script Purpose : Handles the quest, "Searching for Sigils"
  4. Script Author : Cynnar
  5. Script Date : 7/8/2015
  6. Script Notes :
  7. Zone : Darklight Wood
  8. Quest Giver : Pellandra D'Xatyl
  9. Preceded by : Sealing the Rift (SealingtheRift.lua)
  10. Followed by : Reclaiming the Sablevein Tear (ReclaimingtheSableveinTear.lua)
  11. --]]
  12. function Init(Quest)
  13. AddQuestStepObtainItem(Quest, 1, "Collect sigil stones from the Sablevein pulverizers", 4, 100, "I must hunt Sablevein pulverizers found outside Sablevein Tear and collect sigil stones from their remains.", 373, 11837)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  15. end
  16. function Step1Complete(Quest, QuestGiver, Player)
  17. UpdateQuestStepDescription(Quest, 1, "I collected several sigil stones from the Sablevein pulverizers")
  18. AddQuestStepChat(Quest, 2, "Return to Pellandra D'Xatyl.", 1, "I must hunt Sablevein pulverizers found outside Sablevein Tear and collect sigil stones from their remains.", 11, 340038)
  19. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  20. end
  21. function QuestComplete(Quest, QuestGiver, Player)
  22. UpdateQuestDescription(Quest, "I collected a good number of sigil stones from the remains of the Sablevein pulverizers and brought them to Pellandra.")
  23. GiveQuestReward(Quest, Player)
  24. end
  25. function Reload(Quest, QuestGiver, Player, Step)
  26. if Step == 1 then
  27. Step1Complete(Quest, QuestGiver, Player)
  28. elseif Step == 2 then
  29. QuestComplete(Quest, QuestGiver, Player)
  30. end
  31. end
  32. function Accepted(Quest, QuestGiver, Player)
  33. FaceTarget(QuestGiver, Player)
  34. conversation = CreateConversation()
  35. PlayFlavor(QuestGiver, "pellandra_d_xatyl/darklight_wood/hates_envy/pellandra_revamp/pellandra011.mp3", "", "", 2108547619, 2126682615, Player)
  36. AddConversationOption(conversation, "I'll return shortly.")
  37. StartConversation(conversation, QuestGiver, Player, "The face of our enemy will soon be revealed " .. GetName(Player) .. ". Help us lift the veil so we may face them openly!")
  38. end
  39. function Declined(Quest, QuestGiver, Player)
  40. -- Add dialog here for when the quest is declined
  41. end