9
3

reaping_the_benefits_of_a_monopoly.lua 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. --[[
  2. Script Name : Quests/Darklight/reaping_the_benefits_of_a_monopoly.lua
  3. Script Purpose : Handles the quest, "Reaping the Benefits of a Monopoly"
  4. Script Author : Scatman
  5. Script Date : 2009.02.04
  6. Zone : Darklight Wood
  7. Quest Giver: Dirzdia T'Zauvirr
  8. Preceded by: Smoking the Competition (smoking_the_competition.lua)
  9. Followed by: So Hot You Catch Them Cooked (so_hot_you_catch_them_cooked.lua)
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepObtainItem(Quest, 1, "I need to fish up eight searing trout.", 8, 100, ".", 2542, 45370)
  13. AddQuestStepCompleteAction(Quest, 1, "step1_complete_caughtFish")
  14. end
  15. function Accepted(Quest, QuestGiver, Player)
  16. FaceTarget(QuestGiver, Player)
  17. conversation = CreateConversation()
  18. PlayFlavor(QuestGiver, "voiceover/english/neriak/dirzdia_t_zauvirr/darklight_wood/tvatar_post/dirzdia/dirzdia012.mp3", "", "", 2680874987, 3116118568, Player)
  19. AddConversationOption(conversation, "All right.")
  20. StartConversation(conversation, QuestGiver, Player, "Great! Just bring them back to me when you've caught them.")
  21. end
  22. function Declined(Quest, QuestGiver, Player)
  23. end
  24. function step1_complete_caughtFish(Quest, QuestGiver, Player)
  25. UpdateQuestStepDescription(Quest, 1, "I have caught the trout.")
  26. AddQuestStepChat(Quest, 2, "I need to bring these trout back to Dirzdia.", 1, ".", 2542, 340139)
  27. AddQuestStepCompleteAction(Quest, 2, "quest_complete")
  28. end
  29. function quest_complete(Quest, QuestGiver, Player)
  30. -- remove the fish
  31. UpdateQuestDescription(Quest, "I have caught the searing trout and brought it back to Dirzdia.")
  32. GiveQuestReward(Quest, Player)
  33. end
  34. function Reload(Quest, QuestGiver, Player, Step)
  35. if Step == 1 then
  36. step1_complete_caughtFish(Quest, QuestGiver, Player)
  37. end
  38. end