a_brass_key.lua 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. --[[
  2. Script Name : Quests/Antonica/a_brass_key.lua
  3. Script Author : Dorbin
  4. Script Date : 2023.05.11 11:05:34
  5. Script Purpose :
  6. Zone : Antonica
  7. Quest Giver:
  8. Preceded by: None
  9. Followed by:
  10. --]]
  11. function Init(Quest)
  12. SetQuestFeatherColor(Quest, 3)
  13. SetQuestRepeatable(Quest)
  14. AddQuestStep(Quest, 1, "From the looks of the key and the tag, it would be safe to assume that this key can be used at a lighthouse of sorts.", 1, 100, "I need to find out what lighthouse this key goes to. The trek maybe dangerous, so I should take other hearty adventurers with me. From the looks of the key and the tag, it would be safe to assume that this key can be used at a lighthouse of sorts.", 2176)
  15. AddQuestStepCompleteAction(Quest, 1, "QuestComplete")
  16. end
  17. function Accepted(Quest, QuestGiver, Player)
  18. conversation = CreateConversation()
  19. AddConversationOption(conversation, "I must find the location for this key!")
  20. StartDialogConversation(conversation, 1, QuestGiver, Player, "I need to find out what lighthouse this key goes to. The trek maybe dangerous, so I should take other hearty adventurers with me. From the looks of the key and the tag, it would be safe to assume that this key can be used at a lighthouse of sorts.")
  21. SendMessage(Player,"You slip the key into your questing satchle for later.")
  22. if HasItem(Player, 1271) then
  23. RemoveItem(Player,1271,1)
  24. end
  25. end
  26. function Declined(Quest, QuestGiver, Player)
  27. -- Add dialog here for when the quest is declined
  28. end
  29. function Deleted(Quest, QuestGiver, Player)
  30. -- Remove any quest specific items here when the quest is deleted
  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, 1, "The key fit into a lock to the cellar behind the lighthouse.")
  35. UpdateQuestTaskGroupDescription(Quest, 1, "The key fit into the lock of the lighthouse cellar, I used it and entered.")
  36. UpdateQuestDescription(Quest, "I used the key to open the cellar behind the lighthouse in Antonica and enter it.")
  37. GiveQuestReward(Quest, Player)
  38. end
  39. function Reload(Quest, QuestGiver, Player, Step)
  40. if Step == 1 then
  41. QuestComplete(Quest, QuestGiver, Player)
  42. end
  43. end