TilzakNLim.lua 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. --[[
  2. Script Name : SpawnScripts/SunkenCity/TilzakNLim.lua
  3. Script Purpose : Tilzak N`Lim
  4. Script Author : Neatz09
  5. Script Date : 12/31/2018
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  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. Dialog.AddOption("I have the shark fins you wanted.", "Dialog1")
  31. if CanReceiveQuest(Spawn,QUEST_1) then
  32. Dialog.AddOption("I didn't know the Teir'Dal took mundane jobs like fishing.", "Dialog2")
  33. end
  34. if GetQuestStep(Spawn, QUEST_1) == 2 then
  35. Dialog.AddOption("I have the shark fins you wanted.", "Dialog4")
  36. end
  37. Dialog.AddOption("Then I'll leave you to your fish.")
  38. Dialog.Start()
  39. end
  40. function Dialog2(NPC, Spawn)
  41. FaceTarget(NPC, Spawn)
  42. Dialog.New(NPC, Spawn)
  43. 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.")
  44. Dialog.AddOption("Maybe I can offer you a hand. What do you need?", "OfferQuest1")
  45. Dialog.AddOption("Your wants mean nothing to me.")
  46. Dialog.Start()
  47. end
  48. function OfferQuest1(NPC, Spawn)
  49. FaceTarget(NPC, Spawn)
  50. OfferQuest(NPC, Spawn, QUEST_1)
  51. end
  52. function Dialog4(NPC, Spawn)
  53. SetStepComplete(Spawn, QUEST_1, 2)
  54. FaceTarget(NPC, Spawn)
  55. Dialog.New(NPC, Spawn)
  56. 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!")
  57. Dialog.AddVoiceover("voiceover/english/optional5/standard_dark_elf_male/fprt_hood05/quests/tilzaknlim/tilzak_x1_finish.mp3", 1351808605, 3311226361)
  58. Dialog.AddOption("No thanks. I'll leave that to you. Bye.")
  59. Dialog.Start()
  60. end