9
3

SableveinRubble.lua 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. --[[
  2. Script Name : Quests/Darklight/SableveinRubble.lua
  3. Script Purpose : Handles the quest, "Sablevein Rubble"
  4. Script Author : QuestParser Cynnar
  5. Script Date : 8/30/2015
  6. Script Notes :
  7. Zone : Darklight Wood
  8. Quest Giver : Danya Halfmoon 340018
  9. Preceded by : None
  10. Followed by : None
  11. --]]
  12. function Init(Quest)
  13. AddQuestStepHarvest(Quest, 1, "Gather samples of Sablevein rubble", 6, 100, "Danya Halfmoon would like me to bring her the rubble from Sablevein Tear.", 183, 11836)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  15. end
  16. function Step1Complete(Quest, QuestGiver, Player)
  17. UpdateQuestStepDescription(Quest, 1, "I have collected the Sablevein rubble")
  18. AddQuestStepChat(Quest, 2, "Bring the rubble back to Danya Halfmoon", 1, "Danya Halfmoon would like me to bring her the rubble from Sablevein Tear.", 183, 340018)
  19. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  20. end
  21. function QuestComplete(Quest, QuestGiver, Player)
  22. -- Sablevein rubble
  23. while HasItem(Player, 11836, 1) do
  24. RemoveItem(Player, 11836)
  25. end
  26. UpdateQuestDescription(Quest, "I have brought Danya the Sablevein rubble she asked for.")
  27. SetTempVariable(Player, "SableOre", nil)
  28. GiveQuestReward(Quest, Player)
  29. end
  30. function Reload(Quest, QuestGiver, Player, Step)
  31. if Step == 1 then
  32. Step1Complete(Quest, QuestGiver, Player)
  33. elseif Step == 2 then
  34. QuestComplete(Quest, QuestGiver, Player)
  35. end
  36. end
  37. function Accepted(Quest, QuestGiver, Player)
  38. FaceTarget(QuestGiver, Player)
  39. conversation = CreateConversation()
  40. PlayFlavor(QuestGiver, "voiceover/english/neriak/danya_halfmoon/darklight_wood/hates_envy/danya/danya005.mp3", "", "", 2830883681, 1931267037, Player)
  41. AddConversationOption(conversation, "I'll be back.")
  42. StartConversation(conversation, QuestGiver, Player, "Good. That will serve to keep my mind off of these people around me.")
  43. SetTempVariable(Player, "SableOre", 0)
  44. end
  45. function Declined(Quest, QuestGiver, Player)
  46. -- Add dialog here for when the quest is declined
  47. end
  48. function Deleted(Quest, Spawn)
  49. while HasItem(Player, 11836) do
  50. RemoveItem(Player, 11836)
  51. end
  52. end