9
3

TilzakNLim.lua 2.9 KB

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