the_half_eaten_order_slip.lua 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. --[[
  2. Script Name : the_half_eaten_order_slip.lua
  3. Script Purpose : Handles the quest, "The Half Eaten Order Slip"
  4. Script Author : premierio015
  5. Script Date : 08.05.2022
  6. Script Notes : Auto generated with QuestParser.
  7. Zone : Antonica
  8. Quest Giver :
  9. Preceded by : None
  10. Followed by : None
  11. --]]
  12. function Init(Quest)
  13. AddQuestStepChat(Quest, 1, "Speak to the slip owner", 1, "I need to find the owner of the slip, a Walcott in Antonica perhaps.", 11, 120078)
  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. UpdateQuestStepDescription(Quest, 1, "Spoke to Farmer Walcott.")
  27. UpdateQuestTaskGroupDescription(Quest, 1, "I found Farmer Walcott in Antonica.")
  28. AddQuestStepKill(Quest, 2, "Slay some witherstraw scarecrows", 2, 100, "I need to slay 2 witherstraw scarecrows in the crops outside of the North Gates of Qeynos.", 611, 120077, 121235)
  29. AddQuestStepCompleteAction(Quest, 2, "Step2Complete")
  30. end
  31. function Step2Complete(Quest, QuestGiver, Player)
  32. UpdateQuestStepDescription(Quest, 2, "Slew some witherstraw scarecrows.")
  33. UpdateQuestTaskGroupDescription(Quest, 2, "I slew 2 witherstraw scarecrows in Antonica.")
  34. AddQuestStepChat(Quest, 3, "Speak to Farmer Walcott", 1, "I need to return to Farmer Walcott.", 11, 120078)
  35. AddQuestStepCompleteAction(Quest, 3, "QuestComplete")
  36. end
  37. function QuestComplete(Quest, QuestGiver, Player)
  38. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  39. UpdateQuestStepDescription(Quest, 3, "Spoke to Farmer Walcott.")
  40. UpdateQuestTaskGroupDescription(Quest, 3, "I returned to speak to Farmer Walcott.")
  41. UpdateQuestDescription(Quest, "I aided Farmer Walcott in his fight against evil scarecrows in his fields. I slew two of the creatures for him.")
  42. GiveQuestReward(Quest, Player)
  43. end
  44. function Reload(Quest, QuestGiver, Player, Step)
  45. if Step == 1 then
  46. Step1Complete(Quest, QuestGiver, Player)
  47. elseif Step == 2 then
  48. Step2Complete(Quest, QuestGiver, Player)
  49. elseif Step == 3 then
  50. QuestComplete(Quest, QuestGiver, Player)
  51. end
  52. end