whats_in_demand.lua 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. --[[
  2. Script Name : Quests/Darklight/whats_in_demand.lua
  3. Script Purpose : Handles the quest, "What's in Demand?"
  4. Script Author : Scatman
  5. Script Date : 2009.02.02
  6. Zone : Darklight Wood
  7. Quest Giver: Ilmtar D'Viervs
  8. Preceded by: None
  9. Followed by: One Man's Waste... (one_mans_waste.lua)
  10. --]]
  11. function Init(Quest)
  12. -- Merchant's Pouch
  13. AddQuestStepKill(Quest, 1, "I need to collect ten bone fragments from the zombies around T'Vatar Post.", 10, 100, ".", 418, 340126, 340117, 340096, 340098, 340118, 340114)
  14. AddQuestStepCompleteAction(Quest, 1, "step1_complete_gotBones")
  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/ilmtar003.mp3", "", "", 2929478773, 1922139925, Player)
  20. AddConversationOption(conversation, "I'll be back.")
  21. StartConversation(conversation, QuestGiver, Player, "Then I await your return.")
  22. end
  23. function Declined(Quest, QuestGiver, Player)
  24. end
  25. function step1_complete_gotBones(Quest, QuestGiver, Player)
  26. UpdateQuestStepDescription(Quest, 1, "Bone Fragment Found")
  27. AddQuestStepChat(Quest, 2, "I need to bring these bone fragments to Ilmtar.", 1, ".", 418, 340123)
  28. AddQuestStepCompleteAction(Quest, 2, "quest_complete")
  29. end
  30. function quest_complete(Quest, QuestGiver, Player)
  31. UpdateQuestDescription(Quest, "I have given Ilmtar the bones he requested.")
  32. GiveQuestReward(Quest, Player)
  33. end
  34. function Reload(Quest, QuestGiver, Player, Step)
  35. if Step == 1 then
  36. step1_complete_gotBones(Quest, QuestGiver, Player)
  37. end
  38. end