the_big_one.lua 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. --[[
  2. Script Name : Quests/Darklight/the_big_one.lua
  3. Script Purpose : Handles the quest, "The Big One"
  4. Script Author : Scatman
  5. Script Date : 2009.02.04
  6. Zone : Darklight Wood
  7. Quest Giver: Dirzdia T'Zauvirr
  8. Preceded by: So Hot You Catch Them Cooked (so_hot_you_catch_them_cooked.lua)
  9. Followed by: ()
  10. --]]
  11. function Init(Quest)
  12. AddQuestStepObtainItem(Quest, 1, "I need to catch eight seared char.", 8, 100, ".", 2541, 40609)
  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