9
3

information_gathering_from_a_fishmonger.lua 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. --[[
  2. Script Name : information_gathering_from_a_fishmonger.lua
  3. Script Purpose : Handles the quest, "Information Gathering From a Fishmonger"
  4. Script Author : torsten
  5. Script Date : 18.07.2022
  6. Script Notes :
  7. Zone : Longshadow Alley
  8. Quest Giver : Orian D`Rak
  9. Preceded by : Ogre Watch
  10. Followed by : None
  11. --]]
  12. require "SpawnScripts/Generic/DialogModule"
  13. function Init(Quest)
  14. AddQuestStepChat(Quest, 1, "I need to speak with Tilzak in the Longshadow Alley.", 1, "Tilzak apparently is the local fishmonger. I need to see if I can get him to tell me the information I need.", 11, 1240026,1380131)
  15. AddQuestStepCompleteAction(Quest, 1, "Step1Complete")
  16. UpdateQuestZone(Quest,"Longshadow Alley")
  17. end
  18. function Step1Complete(Quest, QuestGiver, Player)
  19. UpdateQuestStepDescription(Quest, 1, "I have spoken with Tilzak")
  20. UpdateQuestTaskGroupDescription(Quest, 1, "Tilzak didn't tell me the information, but he apparently is far more than he appears to be.")
  21. AddQuestStepChat(Quest, 2, "I should return to Orian D`Rak.", 1, "I should return to Orian D`Rak in Longshadow Alley.", 11, 1380039)
  22. AddQuestStepCompleteAction(Quest, 2, "QuestComplete")
  23. end
  24. function QuestComplete(Quest, QuestGiver, Player)
  25. UpdateQuestStepDescription(Quest, 2, "I have told Orian what little I was able to find out.")
  26. UpdateQuestTaskGroupDescription(Quest, 2, "Tilzak didn't tell me the information, but he apparently is far more than he appears to be.")
  27. UpdateQuestDescription(Quest, "Orian D'Rak has decided to slow down his information gathering efforts. He will continue with his information gathering personally for now. He did reward me with some coin for my efforts, though.")
  28. GiveQuestReward(Quest, Player)
  29. end
  30. function Accepted(Quest, QuestGiver, Player)
  31. FaceTarget(QuestGiver, Player)
  32. Dialog.New(QuestGiver, Player)
  33. Dialog.AddDialog("I need you to find Tilzak N'Lim. He lives close to here and is nothing more than a simple fishmonger! What a disgrace! A Teir'Dal performing the common chores of a slave! From the new information, I am wondering if Tilzak is as simple as he appears. Ask him for directions to \"the meeting place\" then return.")
  34. -- Dialog.AddVoiceover("voiceover/english/optional1/kylanith_d_lar/fprt_hood05/qst_kylanith_hail.mp3", 387692981, 2731095766)
  35. Dialog.AddOption("I'll make him squirm to get the information.")
  36. Dialog.Start()
  37. end
  38. function Declined(Quest, QuestGiver, Player)
  39. -- Add dialog here for when the quest is declined
  40. end
  41. function Deleted(Quest, QuestGiver, Player)
  42. -- Remove any quest specific items here when the quest is deleted
  43. end
  44. function Reload(Quest, QuestGiver, Player, Step)
  45. if Step == 1 then
  46. Step1Complete(Quest, QuestGiver, Player)
  47. elseif Step == 2 then
  48. QuestComplete(Quest, QuestGiver, Player)
  49. end
  50. end