9
3

GuardDaarwyn.lua 4.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. --[[
  2. Script Name : SpawnScripts/ButcherblockMountains/GuardDaarwyn.lua
  3. Script Purpose : Guard Daarwyn
  4. Script Author : jakejp
  5. Script Date : 2018.06.04
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. local ThievingRunts = 272
  9. function spawn(NPC)
  10. ProvidesQuest(NPC, ThievingRunts)
  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, ThievingRunts) == false and HasQuest(Spawn, ThievingRunts) == false and CanReceiveQuest(Spawn, ThievingRunts) == true then
  19. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_3_1003.mp3", "", "", 0, 0, Spawn)
  20. AddConversationOption(conversation, "What is happening?", "dlg_3_1")
  21. AddConversationOption(conversation, "That's unfortunate. Farewell.")
  22. StartConversation(conversation, NPC, Spawn, "Blast those beasts. As if we don't have few enough supplies, they sneak into our camp and steal what little we have! It is maddening!")
  23. elseif GetQuestStep(Spawn, ThievingRunts) == 1 then
  24. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_1_1003.mp3", "", "", 0, 0, Spawn)
  25. AddConversationOption(conversation, "I am still hunting them down. I will return soon.")
  26. StartConversation(conversation, NPC, Spawn, "Well? How goes your hunt?")
  27. elseif GetQuestStep(Spawn, ThievingRunts) == 2 then
  28. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_1_1003.mp3", "", "", 0, 0, Spawn)
  29. AddConversationOption(conversation, "I have gathered up a good batch of ears for you.", "dlg_1_1")
  30. StartConversation(conversation, NPC, Spawn, "Well? How goes your hunt?")
  31. elseif HasCompletedQuest(Spawn, ThievingRunts) == true then
  32. PlayFlavor(NPC, "", "The dangers here are unique, but it isn't anything we cannot deal with.", "converse", 1689589577, 4560189, Spawn)
  33. else
  34. PlayFlavor(NPC, "", "The dangers here are unique, but it isn't anything we cannot deal with.", "converse", 1689589577, 4560189, Spawn)
  35. end
  36. end
  37. function dlg_1_1(NPC, Spawn)
  38. SetStepComplete(Spawn, ThievingRunts, 2)
  39. FaceTarget(NPC, Spawn)
  40. conversation = CreateConversation()
  41. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  42. AddConversationOption(conversation, "Thank you. Farewell.", "dlg_1_2")
  43. StartConversation(conversation, NPC, Spawn, "Now this is good to see! I may not have the supplies back, but perhaps hanging some of these around might deter them from taking any more. Well, I promised you a bounty, and you have earned it. A job well done.")
  44. end
  45. function dlg_3_1(NPC, Spawn)
  46. FaceTarget(NPC, Spawn)
  47. conversation = CreateConversation()
  48. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  49. AddConversationOption(conversation, "Perhaps I could help with that. I am looking for work in the area, anyway.", "dlg_3_2")
  50. AddConversationOption(conversation, "Maybe you'll get your chance sometime. Farewell.")
  51. StartConversation(conversation, NPC, Spawn, "The goblins! They creep up from the water in the night, and take anything that is close to the edge of the camp. We have to post guards all around at all hours, which puts a further strain on our already thin numbers. If I could, I would hunt them down myself!")
  52. end
  53. function dlg_3_2(NPC, Spawn)
  54. FaceTarget(NPC, Spawn)
  55. conversation = CreateConversation()
  56. PlayFlavor(NPC, "", "", "", 0, 0, Spawn)
  57. AddConversationOption(conversation, "Sounds fair, then. I will return soon.", "GiveThievingRunts")
  58. StartConversation(conversation, NPC, Spawn, "Eager to get into the fight, are you? Well, I won't stop you, then... have at them. I'll even give you a bounty for clearing some of the wretches out. Bring me their ears as proof. Come back to me when you've finished up, and we'll see how you do. Now get to it.")
  59. end
  60. function GiveThievingRunts(NPC, Spawn)
  61. OfferQuest(NPC, Spawn, ThievingRunts)
  62. end
  63. --[[ raw_conversations
  64. PlayFlavor(NPC, "", "The dangers here are unique, but it isn't anything we cannot deal with.", "converse", 1689589577, 4560189, Spawn)
  65. --]]