9
3

useful_materials.lua 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. --[[
  2. Script Name : Quests/Darklight/useful_materials.lua
  3. Script Purpose : Handles the quest, "Useful Materials"
  4. Script Author : Scatman
  5. Script Date : 2009.02.02
  6. Zone : Darklight Wood
  7. Quest Giver: Ilmtar D'Viervs
  8. Preceded by: One Man's Waste... (one_mans_waste.lua)
  9. Followed by: Trinkets (trinkets.lua)
  10. --]]
  11. function Init(Quest)
  12. -- Coarse Cloth Sleeves
  13. -- Sanctified Helm
  14. -- Scale Leaf Gloves
  15. -- Shingled Helm
  16. -- Stone Rivet Sabatons
  17. -- Stitched Tracking Cap
  18. -- discarded wood
  19. AddQuestStepObtainItem(Quest, 1, "I need to collect six pieces of wood for Ilmtar D'Viervs.", 6, 100, ".", 830, 4584)
  20. AddQuestStepCompleteAction(Quest, 1, "step1_complete_gotWood")
  21. end
  22. function Accepted(Quest, QuestGiver, Player)
  23. FaceTarget(QuestGiver, Player)
  24. conversation = CreateConversation()
  25. PlayFlavor(QuestGiver, "voiceover/english/neriak/ilmtar_d_viervs/darklight_wood/tvatar_post/ilmtar/ilmtar011.mp3", "", "", 2167619330, 3237098781, Player)
  26. AddConversationOption(conversation, "I'll return.")
  27. StartConversation(conversation, QuestGiver, Player, "Good.")
  28. end
  29. function Declined(Quest, QuestGiver, Player)
  30. end
  31. function step1_complete_gotWood(Quest, QuestGiver, Player)
  32. UpdateQuestStepDescription(Quest, 1, "I have collected the wood.")
  33. AddQuestStepChat(Quest, 2, "I need to bring the wood back to Ilmtar.", 1, ".", 830, 340123)
  34. AddQuestStepCompleteAction(Quest, 2, "quest_complete")
  35. end
  36. function quest_complete(Quest, QuestGiver, Player)
  37. -- remove all six 'discarded wood'
  38. UpdateQuestDescription(Quest, "I have brought Ilmtar the wood he asked for.")
  39. GiveQuestReward(Quest, Player)
  40. end
  41. function Reload(Quest, QuestGiver, Player, Step)
  42. if Step == 1 then
  43. step1_complete_gotWood(Quest, QuestGiver, Player)
  44. end
  45. end