9
3

DiggingInTheYard.lua 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. --[[
  2. Script Name : DiggingintheYard.lua
  3. Script Purpose : Handles the quest, "Digging in the Yard"
  4. Script Author : jakejp
  5. Script Date : 6/13/2018
  6. Script Notes :
  7. Zone : Butcherblock Mountains
  8. Quest Giver :
  9. Preceded by : None
  10. Followed by : None
  11. --]]
  12. function Init(Quest)
  13. AddQuestStepObtainItem(Quest, 1, "Gather the pure soil.", 5, 100, "I must gather pure soil for Geldrani.", 320, 5100)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  15. end
  16. function Step1Complete(Quest, QuestGiver, Player)
  17. UpdateQuestStepDescription(Quest, 1, "I have collected all of the necessary pure soil.")
  18. UpdateQuestTaskGroupDescription(Quest, 1, "I have gathered the necessary pure soil.")
  19. AddQuestStepChat(Quest, 2, "Speak with Geldrani A'Zhi'Tel.", 1, "I must return the pure soil to Geldrani.", 320, 1081108)
  20. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  21. end
  22. function QuestComplete(Quest, QuestGiver, Player)
  23. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  24. UpdateQuestStepDescription(Quest, 2, "Geldrani now has the soil he needs.")
  25. UpdateQuestTaskGroupDescription(Quest, 2, "I have brought Geldrani the pure soil.")
  26. UpdateQuestDescription(Quest, "I was able to gather the pure soil that Geldrani requested.")
  27. GiveQuestReward(Quest, Player)
  28. end
  29. function Reload(Quest, QuestGiver, Player, Step)
  30. if Step == 1 then
  31. Step1Complete(Quest, QuestGiver, Player)
  32. elseif Step == 2 then
  33. QuestComplete(Quest, QuestGiver, Player)
  34. end
  35. end
  36. function Accepted(Quest, QuestGiver, Player)
  37. FaceTarget(QuestGiver, Player)
  38. conversation = CreateConversation()
  39. PlayFlavor(QuestGiver, "geldrani_a_zhi_tel/_exp03/exp03_rgn_butcherblock/geldrani/qst_geldrani_007.mp3", "", "", 4076175152, 3212649291, Player)
  40. AddConversationOption(conversation, "I will see what I can do.", "dlg_3_2")
  41. StartConversation(conversation, QuestGiver, Player, "Who knows what those curs are digging for, but in the end, they are doing the hard work for me, anyway. Bring me as much of the soil as you can find.")
  42. end
  43. function Declined(Quest, QuestGiver, Player)
  44. -- Add dialog here for when the quest is declined
  45. end