9
3

TilzakNLim.lua 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. --[[
  2. Script Name : SpawnScripts/Longshadow/TilzakNLim.lua
  3. Script Author : Dorbin
  4. Script Date : 2023.10.12 01:10:44
  5. Script Purpose :
  6. :
  7. --]]
  8. require "SpawnScripts/Generic/DialogModule"
  9. local QUEST_1 = 386
  10. local InformationGatheringFromaFishmonger = 5677
  11. function spawn(NPC)
  12. ProvidesQuest(NPC, QUEST_1)
  13. end
  14. function respawn(NPC)
  15. spawn(NPC)
  16. end
  17. function hailed(NPC, Spawn)
  18. FaceTarget(NPC, Spawn)
  19. if GetFactionAmount(Spawn,12) <1 then
  20. PlayFlavor(NPC, "", "", "threaten", 0, 0, Spawn)
  21. else
  22. Dialog1(NPC, Spawn)
  23. end
  24. end
  25. function Dialog1(NPC, Spawn)
  26. FaceTarget(NPC, Spawn)
  27. Dialog.New(NPC, Spawn)
  28. Dialog.AddDialog("These are my fish so you can't have them! Go... go find your own!")
  29. Dialog.AddVoiceover("voiceover/english/optional5/standard_dark_elf_male/fprt_hood05/std_de_male_tilzak_nlim.mp3", 3205731528, 2249540299)
  30. if CanReceiveQuest(Spawn,QUEST_1) then
  31. Dialog.AddOption("I didn't know the Teir'Dal took mundane jobs like fishing.", "Dialog2")
  32. end
  33. if GetQuestStep(Spawn, QUEST_1) == 2 then
  34. Dialog.AddOption("I have the shark fins you wanted.", "Dialog4")
  35. end
  36. if GetQuestStep(Spawn, InformationGatheringFromaFishmonger) == 1 then
  37. Dialog.AddOption("Word would have it that you know about a meeting. What can you tell me about it?", "Dialog5")
  38. end
  39. Dialog.AddOption("Then I'll leave you to your fish.")
  40. Dialog.Start()
  41. end
  42. function Dialog2(NPC, Spawn)
  43. FaceTarget(NPC, Spawn)
  44. Dialog.New(NPC, Spawn)
  45. Dialog.AddDialog("Only when we have no choice. I used to be a chef to some of the most important people in Neriak back in the day. Now I am nothing more than a common fisherman. This is my lot in life, I guess. If I returned to Neriak with new recipes I might once again regain that prominent position. If only I had the ingredients to make a new recipe I've come up with.")
  46. PlayFlavor(NPC, "", "", "no", 0, 0, Spawn)
  47. Dialog.AddOption("Maybe I can offer you a hand. What do you need?", "OfferQuest1")
  48. Dialog.AddOption("Your wants mean nothing to me.")
  49. Dialog.Start()
  50. end
  51. function OfferQuest1(NPC, Spawn)
  52. FaceTarget(NPC, Spawn)
  53. OfferQuest(NPC, Spawn, QUEST_1)
  54. end
  55. function Dialog4(NPC, Spawn)
  56. SetStepComplete(Spawn, QUEST_1, 2)
  57. FaceTarget(NPC, Spawn)
  58. Dialog.New(NPC, Spawn)
  59. Dialog.AddDialog("Oh, thank you so much, my good friend. These will be wonderful once they're prepared correctly. I need to be careful though, because these shark fins can be highly poisonous if they aren't prepared correctly. Don't worry, though -- I've prepared dishes very similar to this before. If you'd like you can be the first person to try it when I'm done!")
  60. Dialog.AddVoiceover("voiceover/english/optional5/standard_dark_elf_male/fprt_hood05/quests/tilzaknlim/tilzak_x1_finish.mp3", 1351808605, 3311226361)
  61. Dialog.AddOption("No thanks. I'll leave that to you. Bye.")
  62. Dialog.Start()
  63. end
  64. function Dialog5(NPC, Spawn)
  65. FaceTarget(NPC, Spawn)
  66. Dialog.New(NPC, Spawn)
  67. Dialog.AddDialog("Wait, I assume that this is a secret meeting? How would you know about it?")
  68. Dialog.AddOption("My source tells me you might be involved.","Dialog6")
  69. Dialog.Start()
  70. end
  71. function Dialog6(NPC, Spawn)
  72. SetStepComplete(Spawn, InformationGatheringFromaFishmonger, 1)
  73. FaceTarget(NPC, Spawn)
  74. Dialog.New(NPC, Spawn)
  75. PlayFlavor(NPC, "", "", "glare", 0, 0, Spawn)
  76. Dialog.AddDialog("Ahhh... Well tell your 'source' that I have no intention in telling him where any meeting is. Information is power, and the Overlord has intrusted me with a great deal of it. What I will tell you is the house was just a setup to expose some 'rats', but sometimes information gathering is a bit... extreme. If you or your 'source' decides to stick his nose where it doesn't belong, it will be more than furniture that ends up broken. Got it?")
  77. Dialog.AddOption("Uhh, I'll make sure he knows.")
  78. Dialog.Start()
  79. end