9
3

so_hot_you_catch_them_cooked.lua 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. --[[
  2. Script Name : Quests/Darklight/so_hot_you_catch_them_cooked.lua
  3. Script Purpose : Handles the quest, "So Hot You Catch Them Cooked"
  4. Script Author : Scatman
  5. Script Date : 2009.02.04
  6. Zone : Darklight Wood
  7. Quest Giver: Dirzdia T'Zauvirr
  8. Preceded by: Reaping the Benefits of a Monopoly (reaping_the_benefits_of_a_monopoly.lua)
  9. Followed by: The Big One (the_big_one.lua)
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepObtainItem(Quest, 1, "I need to catch eight seared char.", 8, 100, ".", 2541, 45366)
  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/dirzdia016.mp3", "", "", 3096333821, 2080368744, Player)
  19. AddConversationOption(conversation, "I'll be back.")
  20. StartConversation(conversation, QuestGiver, Player, "Glad to hear it! I'll be waiting here... fishing!")
  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 seared char.")
  26. AddQuestStepChat(Quest, 2, "I need to bring these fish back to Dirzdia.", 1, ".", 2541, 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 brought Dirzdia the seared char she wanted.")
  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