9
3

exotic_soups.lua 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. --[[
  2. Script Name : Quests/SunkenCity/exotic_soups.lua
  3. Script Purpose : Handles the quest, "Exotic Soups"
  4. Script Author : Scatman
  5. Script Date : 2009.08.01 (15.7.2022 by torsten, this quests used to start in Longshadow Alley but I'll leave it here)
  6. Zone : Sunken City
  7. Quest Giver: Tilzak N'Lim
  8. Preceded by: None
  9. Followed by: None
  10. --]]
  11. local TilzakNLim = 1240026
  12. local DuskSharks = 1240025
  13. function Init(Quest)
  14. AddQuestStepKill(Quest, 1, "I need to collect a meaty shark fin", 1, 25, "I should start looking for the dusk sharks. I'll need a big enough fin to bring back to Tilzak.", 122, DuskSharks)
  15. AddQuestStepCompleteAction(Quest, 1, "Step1_Complete_KilledSharks")
  16. end
  17. function Accepted(Quest, QuestGiver, Player)
  18. FaceTarget(QuestGiver, Player)
  19. conversation = CreateConversation()
  20. PlayFlavor(QuestGiver, "voiceover/english/optional5/standard_dark_elf_male/fprt_hood05/quests/tilzaknlim/tilzak_x1_accept.mp3", "", "", 16004203, 2050489897, Player)
  21. AddConversationOption(conversation, "I'll be back when I have them.", "dlg_3_3")
  22. StartConversation(conversation, QuestGiver, Player, "OH! You'll help me? Oh thank you so much, friend! I wish to make a nice souffle from the fins of the Dusk Sharks that roam the waters here in the Sunken City. I need a large fin in order to make this souffle. I will be eagerly anticipating your return!")
  23. end
  24. function Declined(Quest, QuestGiver, Player)
  25. end
  26. function Step1_Complete_KilledSharks(Quest, QuestGiver, Player)
  27. UpdateQuestStepDescription(Quest, 1, "I've collected the meaty shark fin.")
  28. UpdateQuestTaskGroupDescription(Quest, 1, "I have the shark fin Tilzak was asking for.")
  29. AddQuestStepChat(Quest, 2, "I need to speak with Tilzak", 1, "I should return to Tilzak then get on with my business. I don't even know why I offered to help him with this stupid task.", 0, TilzakNLim)
  30. AddQuestStepCompleteAction(Quest, 2, "Quest_Complete")
  31. end
  32. function Quest_Complete(Quest, QuestGiver, Player)
  33. UpdateQuestStepDescription(Quest, 2, "I've spoken with Tilzak")
  34. UpdateQuestTaskGroupDescription(Quest, 2, "I've given the fin to Tilzak the Fishmonger.")
  35. GiveQuestReward(Quest, Player)
  36. UpdateQuestDescription(Quest, "Tilzak was pleased with the shark fin, and plans on trying his recipe right away.")
  37. end
  38. function Reload(Quest, QuestGiver, Player, Step)
  39. if Step == 1 then
  40. Step1_Complete_KilledSharks(Quest, QuestGiver, Player)
  41. end
  42. end