armor_for_watchman_fiercecry.lua 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. --[[
  2. Script Name : armor_for_watchman_fiercecry.lua
  3. Script Purpose : Handles the quest, "Armor for Watchman Fiercecry"
  4. Script Author : Dorbin
  5. Script Date : 3/7/2022
  6. Script Notes :
  7. Zone : Graystone Yard
  8. Quest Giver : Watchman Fiercecry
  9. Preceded by : None
  10. Followed by : None
  11. --]]
  12. function Init(Quest)
  13. AddQuestStepChat(Quest, 1, "I need to pick up Watchman Fiercecry's armor.", 1, "I must go pick up a suit of armor from armorsmith Snowboot in the Graystone smithy.", 2, 2350018)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  15. end
  16. function Accepted(Quest, QuestGiver, Player)
  17. -- Add dialog here for when the quest is accepted
  18. end
  19. function Declined(Quest, QuestGiver, Player)
  20. -- Add dialog here for when the quest is declined
  21. end
  22. function Deleted(Quest, QuestGiver, Player)
  23. -- Remove any quest specific items here when the quest is deleted
  24. end
  25. function Step1Complete(Quest, QuestGiver, Player)
  26. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  27. UpdateQuestStepDescription(Quest, 1, "I've picked up Watchman Fiercecry's armor.")
  28. UpdateQuestTaskGroupDescription(Quest, 1, "I've picked up the suit of armor from armorsmith Snowboot.")
  29. AddQuestStepChat(Quest, 2, "I need deliver this armorsuit to Watchman Fiercecry.", 1, "I deliver this suit of armor to Fiercecray in the Graystone.", 2,2350015)
  30. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  31. end
  32. function QuestComplete(Quest, QuestGiver, Player)
  33. UpdateQuestDescription(Quest, "Despite Snowboot giving me a bit of trouble when I went to pick up the suit of armor for Watchman Fiercecry, everything went pretty smoothly. I was surprised at the quality of the armor that was created. Truly fine indeed!")
  34. GiveQuestReward(Quest, Player)
  35. end
  36. function Reload(Quest, QuestGiver, Player, Step)
  37. if Step == 1 then
  38. Step1Complete(Quest, QuestGiver, Player)
  39. elseif Step == 2 then
  40. QuestComplete(Quest, QuestGiver, Player)
  41. end
  42. end