BoneDust.lua 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. --[[
  2. Script Name : bone_dust.lua
  3. Script Purpose : Handles the quest, "Bone Dust"
  4. Script Author : premierio015
  5. Script Date : 12.11.2020
  6. Script Notes : Auto generated with QuestParser.
  7. Zone : Graveyard
  8. Quest Giver :
  9. Preceded by : None
  10. Followed by : None
  11. --]]
  12. function Init(Quest)
  13. AddQuestStep(Quest, 1, "I need 100 bone fragments from the undead.", 100, 100, "Durkix would like me to collect some bone fragments for him.", 92)
  14. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  15. end
  16. function Accepted(Quest, QuestGiver, Player)
  17. conversation = CreateConversation()
  18. AddConversationOption(conversation, "All right.")
  19. StartConversation(conversation, QuestGiver, Player, "Great! I'll be summoning these things in no time! Be quick!")
  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 collected the bone fragments.")
  29. AddQuestStepChat(Quest, 2, "I need to give these bone fragments to Durkix.", 1, "Durkix would like me to collect some bone fragments for him.", 92, 1250037)
  30. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  31. end
  32. function QuestComplete(Quest, QuestGiver, Player)
  33. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  34. UpdateQuestStepDescription(Quest, 2, "I have given Durkix the bone fragments.")
  35. UpdateQuestTaskGroupDescription(Quest, 1, "I have gotten the bone fragments for Durkix.")
  36. UpdateQuestDescription(Quest, "I have collected the bone fragments for Durkix. He thanked me for my help.")
  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