TheRedMarble.lua 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. --[[
  2. Script Name : Quests/NektroposCastle/TheRedMarble.lua
  3. Script Purpose : The Red Marble
  4. Script Author : smash
  5. Script Date : 1/26/2016
  6. Script Notes :
  7. Zone : Nektropos Castle
  8. Quest Giver : None
  9. Preceded by : The Boar's Head
  10. Followed by : None
  11. --]]
  12. function Init(Quest)
  13. AddQuestStep(Quest, 1, "Find a new place to fit this red marble.", 1, 100, "Place the red eye in a hollow socket.", 1187)
  14. AddQuestStepCompleteAction(Quest, 1, "CompleteQuest")
  15. end
  16. function Accepted(Quest, QuestGiver, Player)
  17. local conversation = CreateConversation()
  18. AddConversationOption(conversation, "Stop inspecting the lockerbox", "CloseConversation")
  19. StartDialogConversation(conversation, 1, QuestGiver, Player, "After rummaging around the tattered clothes and avoiding critters you find a red marble.")
  20. end
  21. function Deleted(Quest, QuestGiver, Player)
  22. end
  23. function Declined(Quest, QuestGiver, Player)
  24. end
  25. function Reload(Quest, QuestGiver, Player, Step)
  26. end
  27. function CompleteQuest(Quest, QuestGiver, Player)
  28. UpdateQuestStepDescription(Quest, 1, "I've placed the eye into the head of the boar.")
  29. UpdateQuestTaskGroupDescription(Quest, 1, "Placed the black eye in a hollow socket.")
  30. GiveQuestReward(Quest, Player)
  31. end