TheBoarsHead.lua 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. --[[
  2. Script Name : Quests/NektroposCastle/TheBoarsHead.lua
  3. Script Purpose : The Boar's Head
  4. Script Author : smash
  5. Script Date : 1/26/2016
  6. Script Notes :
  7. Zone : Nektropos Castle
  8. Quest Giver : None
  9. Preceded by : None
  10. Followed by : The Red Marble
  11. --]]
  12. function Init(Quest)
  13. AddQuestStep(Quest, 1, "Find a new place to put the black marble eye.", 1, 100, "Find a new place to place the black marble eye, maybe a hollow socket of another boar's head.", 1175)
  14. AddQuestStepCompleteAction(Quest, 1, "CompleteQuest")
  15. end
  16. function Accepted(Quest, QuestGiver, Player)
  17. local conversation = CreateConversation()
  18. AddConversationOption(conversation, "Stop examining the head.", "CloseConversation")
  19. StartDialogConversation(conversation, 1, QuestGiver, Player, "You take the black marble-like eye.")
  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