return_the_tome_for_viceheart.lua 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. --[[
  2. Script Name : return_the_tome_for_viceheart.lua
  3. Script Purpose : Handles the quest, "Return the Tome for Viceheart"
  4. Script Author : Dorbin
  5. Script Date : 3/7/2022
  6. Script Notes :
  7. Zone : Graystone Yard
  8. Quest Giver : Barry Viceheart
  9. Preceded by : None
  10. Followed by : None
  11. --]]
  12. function Init(Quest)
  13. AddQuestStepChat(Quest, 1, "I need to drop off the tome to scribe Bleemeb in Castleview.", 1, "I need to return the tome to the scribe shop in Castleview Hamlet.", 195, 2360055)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  15. UpdateQuestZone(Quest,"Castleview Hamlet")
  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. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  28. UpdateQuestStepDescription(Quest, 1, "I spoke to Scribe Bleemeb in Castleview.")
  29. UpdateQuestTaskGroupDescription(Quest, 1, "I returned the tome to Bleemeb in Castleview Hamlet.")
  30. UpdateQuestZone(Quest,"Graystone Yard")
  31. AddQuestStepChat(Quest, 2, "I need to relay the message back to Viceheart in Graystone Yard.", 1, "I need to return to Viceheart at the bank in Graystone Yard.", 0, 2350024)
  32. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  33. end
  34. function QuestComplete(Quest, QuestGiver, Player)
  35. UpdateQuestStepDescription(Quest, 2, "I returned to Barry Viceheart.")
  36. UpdateQuestDescription(Quest, "I returned the tome and relayed a message to Viceheart. The scribe shop in Castleview Hamlet does not want to do business with him any longer.")
  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