reward_for_a_missing_music_box_.lua 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. --[[
  2. Script Name : Quests/TheRuins/reward_for_a_missing_music_box_.lu
  3. Script Purpose : Handles the quest, "Reward For A Missing Music Box"
  4. Script Author : premierio015
  5. Script Date : 25.06.2021
  6. Script Notes : Auto generated with QuestParser.
  7. Zone : The Ruins
  8. Quest Giver : a broken music box(1286)
  9. Preceded by : None
  10. Followed by : None
  11. --]]
  12. function Init(Quest)
  13. AddQuestStepChat(Quest, 1, "I need to find Lucilla Quietus.", 1, "I should find this Lucilla Quietus and offer to return the music box for a reward.", 1212, 1660054)
  14. AddQuestStepCompleteAction(Quest, 1, "QuestComplete")
  15. UpdateQuestZone(Quest,"South Freeport")
  16. end
  17. function Accepted(Quest, QuestGiver, Player)
  18. if HasItem(Player, 1286,1) then
  19. RemoveItem(Player, 1286)
  20. SendMessage(Player,"You place the broken music box in your quest satchle.")
  21. end
  22. end
  23. function Declined(Quest, QuestGiver, Player)
  24. -- Add dialog here for when the quest is declined
  25. end
  26. function Deleted(Quest, QuestGiver, Player)
  27. -- Remove any quest specific items here when the quest is deleted
  28. end
  29. function QuestComplete(Quest, QuestGiver, Player)
  30. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  31. UpdateQuestStepDescription(Quest, 1, "I found Lucilla Quietus.")
  32. UpdateQuestTaskGroupDescription(Quest, 1, "I found Lucilla Quietus and talked a reward out of her.")
  33. UpdateQuestDescription(Quest, "I found Lucilla and demanded a reward for the return of her stolen music box. She finally consented to pay and I gave her the music box. I wish I would have checked out the music box more thoroughly... <br>")
  34. GiveQuestReward(Quest, Player)
  35. end
  36. function Reload(Quest, QuestGiver, Player, Step)
  37. if Step == 1 then
  38. QuestComplete(Quest, QuestGiver, Player)
  39. end
  40. end