9
3

fishing_for_bait.lua 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. --[[
  2. Script Name : Quests/Antonica/fishing_for_bait.lua
  3. Script Author : Premierio015
  4. Script Date : 2021.08.13 07:08:34
  5. Script Purpose :
  6. Zone : Antonica
  7. Quest Giver:
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. function Init(Quest)
  12. AddQuestStep(Quest, 1, "I need to find Blarton's lost tin of bait.", 1, 100, "I need to find the lost tin of bait for Blarton. His cousin left it at a camp to the south of Windstalker Village.", 941)
  13. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  14. end
  15. function Accepted(Quest, QuestGiver, Player)
  16. FaceTarget(QuestGiver, Player)
  17. local conversation = CreateConversation()
  18. AddConversationOption(conversation, "I'll be back as soon as I can.")
  19. StartConversation(conversation, QuestGiver, Player, "Thank you, and good luck.")
  20. end
  21. function Declined(Quest, QuestGiver, Player)
  22. -- Add dialog here for when the quest is declined
  23. end
  24. function Deleted(Quest, QuestGiver, Player)
  25. -- Remove any quest specific items here when the quest is deleted
  26. end
  27. function Step1Complete(Quest, QuestGiver, Player)
  28. UpdateQuestStepDescription(Quest, 1, "I have found Blarton's lost tin of bait.")
  29. UpdateQuestTaskGroupDescription(Quest, 1, "I found Blarton's bait. Now I need to bring it back to him.")
  30. AddQuestStepChat(Quest, 2, "I need to return to Blarton and speak with him about his bait.", 1, "I need to return to Blarton with his bait.", 11, 120163)
  31. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  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. UpdateQuestStepDescription(Quest, 2, "I have returned the bait to Blarton.")
  36. UpdateQuestTaskGroupDescription(Quest, 2, "I have returned the bait to Blarton.")
  37. UpdateQuestDescription(Quest, "I have found Blarton's lost bait and returned it to him.")
  38. GiveQuestReward(Quest, Player)
  39. end
  40. function Reload(Quest, QuestGiver, Player, Step)
  41. if Step == 1 then
  42. Step1Complete(Quest, QuestGiver, Player)
  43. elseif Step == 2 then
  44. QuestComplete(Quest, QuestGiver, Player)
  45. end
  46. end