luxuries_for_the_rich.lua 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. --[[
  2. Script Name : Quests/Darklight/luxuries_for_the_rich.lua
  3. Script Purpose : Handles the quest, "Luxuries for the Rich"
  4. Script Author : Scatman
  5. Script Date : 2009.02.02
  6. Zone : Darklight Wood
  7. Quest Giver: Ilmtar D'Viervs
  8. Preceded by: Trinkets (trinkets.lua)
  9. Followed by: More Luxuries (more_luxuries.lua)
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepKill(Quest, 1, "I need the scales from eight snakes for Ilmtar D'Viervs.", 8, 100, ".", 98, 340135, 340134, 340155, 340167)
  13. AddQuestStepCompleteAction(Quest, 1, "step1_complete_gotScales")
  14. end
  15. function Accepted(Quest, QuestGiver, Player)
  16. FaceTarget(QuestGiver, Player)
  17. conversation = CreateConversation()
  18. PlayFlavor(QuestGiver, "voiceover/english/neriak/ilmtar_d_viervs/darklight_wood/tvatar_post/ilmtar/ilmtar018.mp3", "", "", 805456445, 276277273, Player)
  19. AddConversationOption(conversation, "I will return when I get the scales.")
  20. StartConversation(conversation, QuestGiver, Player, "I suppose they DO look good. And if the death of four or five snakes can increase the price of a pair of shoes by five-hundred percent I guess that's just death filling an important market niche. Ah well.")
  21. end
  22. function Declined(Quest, QuestGiver, Player)
  23. end
  24. function step1_complete_gotScales(Quest, QuestGiver, Player)
  25. UpdateQuestStepDescription(Quest, 1, "I have collected the snake scales for Ilmtar.")
  26. AddQuestStepChat(Quest, 2, "I need to bring these scales to Ilmtar D'Viervs.", 1, ".", 98, 340123)
  27. AddQuestStepCompleteAction(Quest, 2, "quest_complete")
  28. end
  29. function quest_complete(Quest, QuestGiver, Player)
  30. UpdateQuestDescription(Quest, "I have collected the snake scales for Ilmtar D'Viervs.")
  31. GiveQuestReward(Quest, Player)
  32. end
  33. function Reload(Quest, QuestGiver, Player, Step)
  34. if Step == 1 then
  35. step1_complete_gotScales(Quest, QuestGiver, Player)
  36. end
  37. end