9
3

sablevein_rubble.lua 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. --[[
  2. Script Name : Quests/Darklight/sablevein_rubble.lua
  3. Script Purpose : Handles the quest, "Sablevein Rubble"
  4. Script Author : Scatman
  5. Script Date : 2009.02.01
  6. Zone : Darklight Wood
  7. Quest Giver: Danya Halfmoon
  8. Preceded by: None
  9. Followed by: None
  10. --]]
  11. function Init(Quest)
  12. -- Sablevein rubble
  13. AddQuestStepObtainItem(Quest, 1, "I need to gather six samples of Sablevein rubble.", 6, 100, ".", 183, 10242)
  14. AddQuestStepCompleteAction(Quest, 1, "step1_complete_gotRubble")
  15. end
  16. function Accepted(Quest, QuestGiver, Player)
  17. FaceTarget(QuestGiver, Player)
  18. conversation = CreateConversation()
  19. PlayFlavor(QuestGiver, "voiceover/english/neriak/danya_halfmoon/darklight_wood/hates_envy/danya/danya005.mp3", "", "", 2830883681, 1931267037, Player)
  20. AddConversationOption(conversation, "I'll be back.")
  21. StartConversation(conversation, QuestGiver, Player, "Good. That will serve to keep my mind off of these people around me.")
  22. end
  23. function Declined(Quest, QuestGiver, Player)
  24. end
  25. function step1_complete_gotRubble(Quest, QuestGiver, Player)
  26. UpdateQuestStepDescription(Quest, 1, "I have collected the Sablevein rubble.")
  27. UpdateQuestTaskGroupDescription(Quest, 1, "I have collected the Sablevein rubble.")
  28. AddQuestStepChat(Quest, 2, "I need to bring the rubble back to Danya Halfmoon.", 1, ".", 183, 340073)
  29. AddQuestStepCompleteAction(Quest, 2, "quest_complete")
  30. end
  31. function quest_complete(Quest, QuestGiver, Player)
  32. -- Sablevein rubble
  33. while HasItem(Player, 10242, 1) do
  34. RemoveItem(Player, 10242)
  35. end
  36. UpdateQuestDescription(Quest, "I have brought Danya the Sablevein rubble she asked for.")
  37. GiveQuestReward(Quest, Player)
  38. end
  39. function Reload(Quest, QuestGiver, Player, Step)
  40. if Step == 1 then
  41. step1_complete_killedIthari(Quest, QuestGiver, Player)
  42. end
  43. end