tutorial_scribing_scrolls.lua 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. --[[
  2. Script Name : Quests/FrostfangSea/tutorial_scribing_scrolls.lua
  3. Script Purpose : Tutorial: Scribing Scrolls
  4. Script Author : theFoof
  5. Script Date : 2013.10.20
  6. Script Notes :
  7. Zone : Frostfang Sea
  8. Quest Giver : Glin Hammerhelm
  9. Preceded by : Tutorial: The Art of Weapons
  10. Followed by : Tutorial: Alchemical Experiments
  11. --]]
  12. function Init(Quest)
  13. SetQuestFeatherColor(Quest, 2)
  14. AddQuestStepCraft(Quest, 1, "I need to create a spell scroll of Shackle (Journeyman) using the engraved desk.", 1, 100, "I must follow the tutor's instructions to review the crafting process.", 715, 119296)
  15. AddQuestStepCompleteAction(Quest, 1, "MadeScroll")
  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 MadeScroll(Quest, QuestGiver, Player)
  24. SetCompleteFlag(Quest)
  25. UpdateQuestTaskGroupDescription(Quest, 1, "I have created a spell scroll of Shackle (Journeyman).")
  26. AddQuestStepChat(Quest, 2, "I should return to the tutor with the scroll of Shackle.", 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. MadeScroll(Quest, QuestGiver, Player)
  35. end
  36. end