9
3

purposeful_trinkets.lua 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. --[[
  2. Script Name : Quests/Darklight/purposeful_trinkets.lua
  3. Script Purpose : Handles the quest, "Purposeful Trinkets"
  4. Script Author : Scatman
  5. Script Date : 2009.02.03
  6. Zone : Darklight Wood
  7. Quest Giver: Laexyra Y'Barriath
  8. Preceded by: None
  9. Followed by: Public Service (public_service.lua)
  10. --]]
  11. function Init(Quest)
  12. -- Oiled Leggings
  13. -- Padded Leg Chains
  14. -- Copper Riveted Legplates
  15. -- Hardened Fungus Fragment
  16. -- soldier's trinket
  17. AddQuestStepObtainItem(Quest, 1, "I need to collect five soldier's trinkets.", 5, 100, ".", 368, 8967)
  18. AddQuestStepCompleteAction(Quest, 1, "step1_complete_gotTinkets")
  19. end
  20. function Accepted(Quest, QuestGiver, Player)
  21. FaceTarget(QuestGiver, Player)
  22. conversation = CreateConversation()
  23. PlayFlavor(QuestGiver, "voiceover/english/neriak/laexyra_y_barriath/darklight_wood/tvatar_post/laexyra/laexyra007.mp3", "", "", 2780056941, 3072789247, Player)
  24. AddConversationOption(conversation, "I'll be back.")
  25. StartConversation(conversation, QuestGiver, Player, "Good.")
  26. end
  27. function Declined(Quest, QuestGiver, Player)
  28. end
  29. function step1_complete_gotTinkets(Quest, QuestGiver, Player)
  30. UpdateQuestStepDescription(Quest, 1, "I have collected the trinkets.")
  31. AddQuestStepChat(Quest, 2, "I need to return to Laexyra Y'Barriath.", 1, ".", 0, 340109)
  32. AddQuestStepCompleteAction(Quest, 2, "quest_complete")
  33. end
  34. function quest_complete(Quest, QuestGiver, Player)
  35. -- remove all 5 'soldier's trinket's
  36. UpdateQuestDescription(Quest, "I have collected the trinkets for Laexyra Y'Barriath.")
  37. GiveQuestReward(Quest, Player)
  38. end
  39. function Reload(Quest, QuestGiver, Player, Step)
  40. if Step == 1 then
  41. step1_complete_gotTinkets(Quest, QuestGiver, Player)
  42. end
  43. end