9
3

one_mans_waste.lua 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. --[[
  2. Script Name : Quests/Darklight/one_mans_waste.lua
  3. Script Purpose : Handles the quest, "One Man's Waste..."
  4. Script Author : Scatman
  5. Script Date : 2009.02.02
  6. Zone : Darklight Wood
  7. Quest Giver: Ilmtar D'Viervs
  8. Preceded by: What's in Demand? (whats_in_demand.lua)
  9. Followed by: Useful Materials (useful_materials.lua)
  10. --]]
  11. function Init(Quest)
  12. -- discarded weapon
  13. AddQuestStepObtainItem(Quest, 1, "I need to collect six old weapons.", 6, 100, ".", 5, 4583)
  14. AddQuestStepCompleteAction(Quest, 1, "step1_complete_gotWeapons")
  15. end
  16. function Accepted(Quest, QuestGiver, Player)
  17. FaceTarget(QuestGiver, Player)
  18. conversation = CreateConversation()
  19. PlayFlavor(QuestGiver, "voiceover/english/neriak/ilmtar_d_viervs/darklight_wood/tvatar_post/ilmtar/ilmtar007.mp3", "", "", 1159271523, 3598851329, Player)
  20. AddConversationOption(conversation, "We'll see what I dig up.")
  21. StartConversation(conversation, QuestGiver, Player, "A ring is a ring is a ring, but the ring of a king... now that's something someone will pay for.")
  22. end
  23. function Declined(Quest, QuestGiver, Player)
  24. end
  25. function step1_complete_gotWeapons(Quest, QuestGiver, Player)
  26. UpdateQuestStepDescription(Quest, 1, "I have collected the old weapons.")
  27. AddQuestStepChat(Quest, 2, "I need to bring these weapons to Ilmtar D'Viervs.", 1, ".", 5, 340123)
  28. AddQuestStepCompleteAction(Quest, 2, "quest_complete")
  29. end
  30. function quest_complete(Quest, QuestGiver, Player)
  31. -- remove all six 'discarded weapon'
  32. UpdateQuestDescription(Quest, "I have collected the weapons for Ilmtar.")
  33. GiveQuestReward(Quest, Player)
  34. end
  35. function Reload(Quest, QuestGiver, Player, Step)
  36. if Step == 1 then
  37. step1_complete_gotWeapons(Quest, QuestGiver, Player)
  38. end
  39. end