TilzakNLim.lua 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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. local QUEST_1 = 386
  9. function spawn(NPC)
  10. ProvidesQuest(NPC, QUEST_1)
  11. end
  12. function respawn(NPC)
  13. spawn(NPC)
  14. end
  15. function hailed(NPC, Spawn)
  16. FaceTarget(NPC, Spawn)
  17. conversation = CreateConversation()
  18. if not HasCompletedQuest(Spawn, QUEST_1) then
  19. if HasQuest(Spawn, QUEST_1) then
  20. if GetQuestStep(Spawn, QUEST_1) == 2 then
  21. AddConversationOption(conversation, "I have the shark fins you wanted.", "dlg_4_1")
  22. end
  23. else
  24. AddConversationOption(conversation, "I didn't know the Teir'Dal took mundane jobs like fishing.", "dlg_3_1")
  25. end
  26. PlayFlavor(NPC, "voiceover/english/optional5/standard_dark_elf_male/fprt_hood05/std_de_male_tilzak_nlim.mp3", "", "", 3205731528, 2249540299, Spawn)
  27. AddConversationOption(conversation, "Then I'll leave you to your fish.")
  28. StartConversation(conversation, NPC, Spawn, "These are my fish so you can't have them! Go... go find your own!")
  29. else
  30. Say(NPC, "These are my fish so you can't have them! Go... go find your own!", Spawn)
  31. end
  32. end
  33. function dlg_3_1(NPC, Spawn)
  34. FaceTarget(NPC, Spawn)
  35. conversation = CreateConversation()
  36. AddConversationOption(conversation, "Maybe I can offer you a hand. What do you need?", "OfferQuest1")
  37. AddConversationOption(conversation, "Your wants mean nothing to me.")
  38. StartConversation(conversation, NPC, Spawn, "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.")
  39. end
  40. function OfferQuest1(NPC, Spawn)
  41. FaceTarget(NPC, Spawn)
  42. OfferQuest(NPC, Spawn, QUEST_1)
  43. end
  44. function dlg_4_1(NPC, Spawn)
  45. SetStepComplete(Spawn, QUEST_1, 2)
  46. FaceTarget(NPC, Spawn)
  47. conversation = CreateConversation()
  48. PlayFlavor(NPC, "voiceover/english/optional5/standard_dark_elf_male/fprt_hood05/quests/tilzaknlim/tilzak_x1_finish.mp3", "", "", 1351808605, 3311226361, Spawn)
  49. AddConversationOption(conversation, "No thanks. I'll leave that to you. Bye.")
  50. StartConversation(conversation, NPC, Spawn, "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!")
  51. end