GuardTellik.lua 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. --[[
  2. Script Name : SpawnScripts/ButcherblockMountains/GuardTellik.lua
  3. Script Purpose : Guard Tellik
  4. Script Author : jakejp
  5. Script Date : 2018.06.04
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. local NecessaryPrecautions = 273
  9. function spawn(NPC)
  10. ProvidesQuest(NPC, NecessaryPrecautions)
  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 HasCompletedQuest(Spawn, NecessaryPrecautions) == false and HasQuest(Spawn, NecessaryPrecautions) == false and CanReceiveQuest(Spawn, NecessaryPrecautions) == true then
  19. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_1_1004.mp3", "", "", 0, 0, Spawn)
  20. AddConversationOption(conversation, "Really? Why is that?", "dlg_2_1")
  21. AddConversationOption(conversation, "I imagine. Farewell.")
  22. StartConversation(conversation, NPC, Spawn, "So this is Faydwer. There have always been stories in Gorowyn about this place, but I never thought I would see it. It's no Timorous Deep of course, but it is beautiful in its own right. Coming here was a challenge all by itself, but it has proven to be quite difficult to remain here.")
  23. elseif GetQuestStep(Spawn, NecessaryPrecautions) == 1 then
  24. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_1_1003.mp3", "", "", 0, 0, Spawn)
  25. Say(NPC, "Whether here or home in Gorowyn, my duty does not change.")
  26. elseif HasCompletedQuest(Spawn, NecessaryPrecautions) == true then
  27. Say(NPC, "Whether here or home in Gorowyn, my duty does not change.")
  28. else
  29. Say(NPC, "Whether here or home in Gorowyn, my duty does not change.")
  30. end
  31. end
  32. function dlg_2_1(NPC, Spawn)
  33. FaceTarget(NPC, Spawn)
  34. conversation = CreateConversation()
  35. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  36. AddConversationOption(conversation, "That is frustrating. What are you planning to do, then?", "dlg_2_2")
  37. AddConversationOption(conversation, "I'm sorry to hear that. Farewell.")
  38. StartConversation(conversation, NPC, Spawn, "A myriad of reasons, but not the least of which are the dwarves. They have claim over much of the Butcherblock Mountains, and quite loathe to have anyone they consider to be intruders on their lands. They haven't been openly hostile as of yet, but sending out patrols at this point would certainly not be a good plan, given how few in number we are... if the dwarves did not take kindly to what they see as trespassing, it could be disastrous for us.")
  39. end
  40. function dlg_2_2(NPC, Spawn)
  41. FaceTarget(NPC, Spawn)
  42. conversation = CreateConversation()
  43. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  44. AddConversationOption(conversation, "Hire? As a negotiator?", "dlg_2_3")
  45. AddConversationOption(conversation, "I'm not really interested. Farewell.")
  46. StartConversation(conversation, NPC, Spawn, "It may be imperative to our continued presence here that we establish some kind of cooperation with the dwarves. Unfortunately, our numbers here are fairly small, and we don't have anyone who might be able to begin the negotiations necessary. I know this probably isn't normally what you do, but might you be available for hire?")
  47. end
  48. function dlg_2_3(NPC, Spawn)
  49. FaceTarget(NPC, Spawn)
  50. conversation = CreateConversation()
  51. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  52. AddConversationOption(conversation, "Well, it couldn't hurt to see what I can get done, then. Farewell.", "GiveNecessaryPrecautions")
  53. StartConversation(conversation, NPC, Spawn, "Something like that, yes. All I really need you to do is speak with the assistant dockmaster, and give her a note from us. I know she has worked with Emissary Raghuntha, and might be more amicable to our offer. Perhaps if you can perform deeds for others on the docks, it will show the dwarves that we are serious about our offer for cooperation. And I'm sure there will be plenty of reward in it for you, too.")
  54. end
  55. function GiveNecessaryPrecautions(NPC, Spawn)
  56. OfferQuest(NPC, Spawn, NecessaryPrecautions)
  57. end