trinkets.lua 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. --[[
  2. Script Name : Quests/Darklight/trinkets.lua
  3. Script Purpose : Handles the quest, "trinkets.lua"
  4. Script Author : Scatman
  5. Script Date : 2009.02.02
  6. Zone : Darklight Wood
  7. Quest Giver: Ilmtar D'Viervs
  8. Preceded by: Useful Materials (useful_materials.lua)
  9. Followed by: Luxuries for the Rich (luxuries_for_the_rich.lua)
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepKill(Quest, 1, "I need eight pairs of screecher teeth for Ilmtar D'Viervs.", 8, 100, ".", 167, 340131, 340163, 340129, 340130, 340133)
  13. AddQuestStepCompleteAction(Quest, 1, "step1_complete_gotTeeth")
  14. end
  15. function Accepted(Quest, QuestGiver, Player)
  16. FaceTarget(QuestGiver, Player)
  17. conversation = CreateConversation()
  18. PlayFlavor(QuestGiver, "voiceover/english/neriak/ilmtar_d_viervs/darklight_wood/tvatar_post/ilmtar/ilmtar015.mp3", "", "", 3602136713, 273222269, Player)
  19. AddConversationOption(conversation, "I'll be back.")
  20. StartConversation(conversation, QuestGiver, Player, "Good is good.")
  21. end
  22. function Declined(Quest, QuestGiver, Player)
  23. end
  24. function step1_complete_gotTeeth(Quest, QuestGiver, Player)
  25. UpdateQuestStepDescription(Quest, 1, "I have collected the screecher teeth for Ilmtar.")
  26. AddQuestStepChat(Quest, 2, "I need to bring these screecher teeth to Ilmtar D'Viervs.", 1, ".", 167, 340123)
  27. AddQuestStepCompleteAction(Quest, 2, "quest_complete")
  28. end
  29. function quest_complete(Quest, QuestGiver, Player)
  30. UpdateQuestDescription(Quest, "I have collected the screecher teeth for Ilmtar.")
  31. GiveQuestReward(Quest, Player)
  32. end
  33. function Reload(Quest, QuestGiver, Player, Step)
  34. if Step == 1 then
  35. step1_complete_gotTeeth(Quest, QuestGiver, Player)
  36. end
  37. end