9
3

tutorial_alchemical_experiments.lua 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. --[[
  2. Script Name : Quests/FrostfangSea/tutorial_alchemical_experiments.lua
  3. Script Author : theFoof
  4. Script Date : 2013.10.20
  5. Script Notes :
  6. Zone : Frostfang Sea
  7. Quest Giver : Glin Hammerhelm
  8. Preceded by : Tutorial: Scribing Scrolls
  9. Followed by : Tutorial: Essential Outfitting
  10. --]]
  11. function Init(Quest)
  12. SetQuestFeatherColor(Quest, 2)
  13. AddQuestStepCraft(Quest, 1, "I need to create an Essence of Intercept (Journeyman) using the chemistry table.", 1, 100, "I must follow the tutor's instructions to review the crafting process.", 2219, 112413)
  14. AddQuestStepCompleteAction(Quest, 1, "MadeIntercept")
  15. end
  16. function Accepted(Quest, QuestGiver, Player)
  17. end
  18. function Deleted(Quest, QuestGiver, Player)
  19. end
  20. function Declined(Quest, QuestGiver, Player)
  21. end
  22. function MadeIntercept(Quest, QuestGiver, Player)
  23. SetCompleteFlag(Quest)
  24. UpdateQuestTaskGroupDescription(Quest, 1, "I have created an Essence of Intercept (Journeyman).")
  25. AddQuestStepChat(Quest, 2, "I should return to the tutor with the Essence of Intercept.", 1, "I should return to the tutor with the Essence of Intercept.", 0, GetSpawnID(QuestGiver))
  26. AddQuestStepCompleteAction(Quest, 2, "CompleteQuest")
  27. end
  28. function CompleteQuest(Quest, QuestGiver, Player)
  29. GiveQuestReward(Quest, Player)
  30. end
  31. function Reload(Quest, QuestGiver, Player, Step)
  32. if Step == 1 then
  33. MadeIntercept(Quest, QuestGiver, Player)
  34. end
  35. end