tutorial_learning_to_cook.lua 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. --[[
  2. Script Name : Quests/FrostfangSea/tutorial_learning_to_cook.lua
  3. Script Purpose : Tutorial: Learning to Cook
  4. Script Author : theFoof
  5. Script Date : 2013.10.19
  6. Script Notes :
  7. Zone : Frostfang Sea
  8. Quest Giver : Glin Hammerhelm
  9. Preceded by : Tutorial: Countering Problems
  10. Followed by : Tutorial: The Art of Weapons
  11. --]]
  12. function Init(Quest)
  13. SetQuestFeatherColor(Quest, 2)
  14. AddQuestStepCraft(Quest, 1, "I need to create some jum jum cider using the recipe the tutor gave me.", 1, 100, "I must follow the tutor's instructions to review the crafting process.", 310, 36399)
  15. AddQuestStepCompleteAction(Quest, 1, "MadeCider")
  16. end
  17. function Accepted(Quest, QuestGiver, Player)
  18. end
  19. function Deleted(Quest, QuestGiver, Player)
  20. end
  21. function Declined(Quest, QuestGiver, Player)
  22. end
  23. function MadeCider(Quest, QuestGiver, Player)
  24. UpdateQuestTaskGroupDescription(Quest, 1, "I have created some jum jum cider.")
  25. SetCompleteFlag(Quest)
  26. AddQuestStepChat(Quest, 2, "I should return to the tutor with the jum jum cider.", 1, "I should return to the tutor with my work.", 0, GetSpawnID(QuestGiver))
  27. AddQuestStepCompleteAction(Quest, 2, "CompleteQuest")
  28. end
  29. function CompleteQuest(Quest, QuestGiver, Player)
  30. GiveQuestReward(Quest, Player)
  31. end
  32. function Reload(Quest, QuestGiver, Player, Step)
  33. if Step == 1 then
  34. MadeCider(Quest, QuestGiver, Player)
  35. end
  36. end