cutlass_cleaning.lua 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. --[[
  2. Script Name : Quests/IsleofRefuge/cutlass_cleaning.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.09.04 07:09:27
  5. Script Purpose :
  6. Zone : IsleofRefuge
  7. Quest Giver:
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepChat(Quest, 1, "I should find someone back at the outpost who can fix the cutlass up for me.", 1, "I should find someone back at the outpost who can fix the cutlass up for me.", 36, 3250058)
  13. AddQuestStepCompleteAction(Quest, 1, "QuestComplete")
  14. end
  15. function Accepted(Quest, QuestGiver, Player)
  16. while HasItem(Player, 10149, 1) do
  17. RemoveItem(Player, 10149)
  18. end
  19. SendMessage(Player, "Your old salt encrusted cutlass has been placed in your quest satchel.")
  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 QuestComplete(Quest, QuestGiver, Player)
  28. -- The following UpdateQuestStepDescription and UpdateTaskGroupDescription are not needed, parser adds them for completion in case stuff needs to be moved around
  29. UpdateQuestStepDescription(Quest, 1, "Mannus repaired the blade for me.")
  30. UpdateQuestTaskGroupDescription(Quest, 1, "Mender Mannus was able to repair the blade as good as new.")
  31. UpdateQuestDescription(Quest, "Mender Mannus was able to repair the blade as good as new.")
  32. GiveQuestReward(Quest, Player)
  33. end
  34. function Reload(Quest, QuestGiver, Player, Step)
  35. if Step == 1 then
  36. QuestComplete(Quest, QuestGiver, Player)
  37. end
  38. end