fish_of_the_chrykori_island.lua 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. --[[
  2. Script Name : Quests/TimorousDeep/fish_of_the_chrykori_island.lua
  3. Script Purpose : Handles the quest, "Fish of the Chrykori Island"
  4. Script Author : Scatman
  5. Script Date : 2009.02.06
  6. Zone : Timorous Deep
  7. Quest Giver: Citizen Niba'Ouz
  8. Preceded by: None
  9. Followed by: Bigger Fish to Fry (bigger_fish_to_fry.lua)
  10. --]]
  11. function Init(Quest)
  12. -- Chrykori saltfin
  13. AddQuestStepObtainItem(Quest, 1, "I need to fish up some Chrykori saltfin.", 3, 100, ".", 2540, 3726)
  14. AddQuestStepCompleteAction(Quest, 1, "step1_complete_gotSaltfin")
  15. end
  16. function Accepted(Quest, QuestGiver, Player)
  17. FaceTarget(QuestGiver, Player)
  18. conversation = CreateConversation()
  19. PlayFlavor(QuestGiver, "voiceover/english/rok_questvo/citizen_niba_ouz/_exp04/exp04_rgn_timorous_deep/chrykori_tie/nibaouz/nibaouz003.mp3", "", "", 3742615555, 2339583945, Player)
  20. AddConversationOption(conversation, "Ok.")
  21. StartConversation(conversation, QuestGiver, Player, "Great. You can find them all around this side of the island.")
  22. end
  23. function Declined(Quest, QuestGiver, Player)
  24. end
  25. function step1_complete_gotSaltfin(Quest, QuestGiver, Player)
  26. UpdateQuestStepDescription(Quest, 1, "I have fished up the saltfin.")
  27. AddQuestStepChat(Quest, 2, "I need to return to Citizen Niba'Ouz.", 1, ".", 2540, 2630024)
  28. AddQuestStepCompleteAction(Quest, 2, "quest_complete")
  29. end
  30. function quest_complete(Quest, QuestGiver, Player)
  31. -- remove Chrykori saltfin
  32. while HasItem(Player, 4363) do
  33. RemoveItem(Player, 4363)
  34. end
  35. UpdateQuestDescription(Quest, "I have brought the Chrykori saltfin to Citizen Niba'Ouz.")
  36. GiveQuestReward(Quest, Player)
  37. end
  38. function Reload(Quest, QuestGiver, Player, Step)
  39. if Step == 1 then
  40. step1_complete_gotSaltfin(Quest, QuestGiver, Player, Step)
  41. end
  42. end