ArmadilloHides.lua 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. --[[
  2. Script Name : armadillo_hides.lua
  3. Script Purpose : Handles the quest, "Armadillo Hides"
  4. Script Author : premierio015
  5. Script Date : 27.02.2021
  6. Script Notes : Auto generated with QuestParser.
  7. Zone : Commonlands
  8. Quest Giver : Gerun Pontian
  9. Preceded by : None
  10. Followed by : None
  11. --]]
  12. function Init(Quest)
  13. AddQuestStepKill(Quest, 1, "I need to collect ten armadillo hides for Gerun", 10, 100, "I need to collect the armadillo hides for Gerun.", 2047, 330028, 330024)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  15. end
  16. function Accepted(Quest, QuestGiver, Player)
  17. FaceTarget(QuestGiver, Player)
  18. conversation = CreateConversation()
  19. AddConversationOption(conversation, "I'll be right back.")
  20. StartConversation(conversation, QuestGiver, Player, "I'm sure you will.")
  21. end
  22. function Declined(Quest, QuestGiver, Player)
  23. -- Add dialog here for when the quest is declined
  24. end
  25. function Deleted(Quest, QuestGiver, Player)
  26. -- Remove any quest specific items here when the quest is deleted
  27. end
  28. function Step1Complete(Quest, QuestGiver, Player)
  29. UpdateQuestStepDescription(Quest, 1, "I have collected the armadillo hides.")
  30. AddQuestStepChat(Quest, 2, "I need to bring these hides to Gerun", 1, "I need to collect the armadillo hides for Gerun.", 11, 330014)
  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 given Gerun the hides.")
  36. UpdateQuestTaskGroupDescription(Quest, 1, "I have given Gerun the armadillo hides.")
  37. UpdateQuestDescription(Quest, "I have given Gerun the armadillo hides. He thanked me and paid me my cut.")
  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