shrillers_for_tillheel.lua 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. --[[
  2. Script Name : shrillers_for_tillheel.lua
  3. Script Purpose : Handles the quest, "Shrillers for Tillheel"
  4. Script Author : Dorbin
  5. Script Date : 3/6/2022
  6. Script Notes :
  7. Zone : Graystone Yard
  8. Quest Giver : Assistant Tillheel
  9. Preceded by : None
  10. Followed by : None
  11. --]]
  12. function Init(Quest)
  13. AddQuestStepKill(Quest, 1, "I must kill some juvenile shrillers.", 5, 100, "I must slay five juvenile shrillers to obtain their wings for Tillheel.", 140, 1990004,1990022,1990001)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  15. UpdateQuestZone(Quest,"The Down Below")
  16. end
  17. function Step1Complete(Quest,QuestGiver,Player)
  18. UpdateQuestStepDescription(Quest, 1, "I've killed some juvenile shrillers.")
  19. UpdateQuestTaskGroupDescription(Quest, 1, "I have collected five sets of shriller wings.")
  20. UpdateQuestZone(Quest,"Graystone Yard")
  21. AddQuestStepChat(Quest, 2, "I need to return to Assistant Tillheel.", 1, "I must deliver these shriller wings to Tillheel in Graystone.", 140, 2350056)
  22. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  23. end
  24. function Accepted(Quest, QuestGiver, Player)
  25. -- Add dialog here for when the quest is accepted
  26. end
  27. function Declined(Quest, QuestGiver, Player)
  28. -- Add dialog here for when the quest is declined
  29. end
  30. function Deleted(Quest, QuestGiver, Player)
  31. -- Remove any quest specific items here when the quest is deleted
  32. end
  33. function QuestComplete(Quest, QuestGiver, Player)
  34. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  35. UpdateQuestTaskGroupDescription(Quest, 2, "I have delivered the sets of shriller wings.")
  36. UpdateQuestDescription(Quest, "I collected and delivered five sets of shriller wings to Tillheel. He was very grateful.")
  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