staffing_up.lua 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. --[[
  2. Script Name : staffing_up.lua
  3. Script Purpose : Handles the quest, "Staffing Up"
  4. Script Author : Neatz09
  5. Script Date : 11/23/2023
  6. Script Notes : Auto generated with QuestParser.
  7. Zone : World Event
  8. Quest Giver :
  9. Preceded by : None
  10. Followed by : None
  11. --]]
  12. local Fruppen = 1230017
  13. function Init(Quest)
  14. AddQuestStep(Quest, 1, "Find a strong tree branch.", 1, 100, "I am looking for a branch that will make a decent staff.", 618)
  15. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  16. end
  17. function Accepted(Quest, QuestGiver, Player)
  18. -- Add dialog here for when the quest is accepted
  19. end
  20. function Declined(Quest, QuestGiver, Player)
  21. -- Add dialog here for when the quest is declined
  22. end
  23. function Deleted(Quest, QuestGiver, Player)
  24. -- Remove any quest specific items here when the quest is deleted
  25. end
  26. function Step1Complete(Quest, QuestGiver, Player)
  27. UpdateQuestStepDescription(Quest, 1, "I found a strong tree branch.")
  28. UpdateQuestTaskGroupDescription(Quest, 1, "I found a good branch.")
  29. AddQuestStepChat(Quest, 2, "Give the branch to Fruppen.", 1, "I need to take this tree branch back to Fruppen.", 11, "Fruppen")
  30. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  31. end
  32. function QuestComplete(Quest, QuestGiver, Player)
  33. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  34. UpdateQuestStepDescription(Quest, 2, "I gave the branch to Fruppen.")
  35. UpdateQuestTaskGroupDescription(Quest, 2, "I've given the tree branch to Fruppen.")
  36. UpdateQuestDescription(Quest, "I've found a strong tree branch and given it to Fruppen so he can practice to be like his brother.")
  37. GiveQuestReward(Quest, Player)
  38. end
  39. function Reload(Quest, QuestGiver, Player, Step)
  40. if Step == 1 then
  41. Step1Complete(Quest, QuestGiver, Player)
  42. elseif Step == 2 then
  43. QuestComplete(Quest, QuestGiver, Player)
  44. end
  45. end