9
3

exotic_soups.lua 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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) Dorbin - added dialog to accepted and moved back to Longshadow for classic.
  6. Zone : Sunken City
  7. Quest Giver: Tilzak N'Lim
  8. Preceded by: None
  9. Followed by: None
  10. --]]
  11. require "SpawnScripts/Generic/DialogModule"
  12. function Init(Quest)
  13. AddQuestStepKill(Quest, 1, "I need to collect a meaty shark fin", 10, 85, "I should start looking for the dusk sharks. I'll need a big enough fin to bring back to Tilzak.", 122, 1240025, 8410007 )
  14. AddQuestStepCompleteAction(Quest, 1, "Step1_Complete_KilledSharks")
  15. UpdateQuestZone(Quest,"Sunken City")
  16. end
  17. function Accepted(Quest, QuestGiver, Player)
  18. FaceTarget(QuestGiver, Player)
  19. Dialog.New(QuestGiver, Player)
  20. Dialog.AddDialog("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!")
  21. Dialog.AddVoiceover("voiceover/english/optional5/standard_dark_elf_male/fprt_hood05/quests/tilzaknlim/tilzak_x1_accept.mp3", 16004203, 2050489897)
  22. PlayFlavor(QuestGiver, "", "", "happy", 0, 0, Player, 0)
  23. Dialog.AddOption("I'll be back when I have them.")
  24. Dialog.Start()
  25. end
  26. function Declined(Quest, QuestGiver, Player)
  27. end
  28. function Step1_Complete_KilledSharks(Quest, QuestGiver, Player)
  29. UpdateQuestStepDescription(Quest, 1, "I've collected the meaty shark fin.")
  30. UpdateQuestTaskGroupDescription(Quest, 1, "I have the shark fin Tilzak was asking for.")
  31. UpdateQuestZone(Quest,"Longshadow Alley")
  32. 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, 1240026,1380131)
  33. AddQuestStepCompleteAction(Quest, 2, "Quest_Complete")
  34. end
  35. function Quest_Complete(Quest, QuestGiver, Player)
  36. UpdateQuestStepDescription(Quest, 2, "I've spoken with Tilzak")
  37. UpdateQuestTaskGroupDescription(Quest, 2, "I've given the fin to Tilzak the Fishmonger.")
  38. GiveQuestReward(Quest, Player)
  39. UpdateQuestDescription(Quest, "Tilzak was pleased with the shark fin, and plans on trying his recipe right away.")
  40. end
  41. function Reload(Quest, QuestGiver, Player, Step)
  42. if Step == 1 then
  43. Step1_Complete_KilledSharks(Quest, QuestGiver, Player)
  44. end
  45. end