Knight-LieutenantLaughlin.lua 3.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. --[[
  2. Script Name : SpawnScripts/NorthQeynos/Knight-LieutenantLaughlin.lua
  3. Script Purpose : Knight-Lieutenant Laughlin
  4. Script Author : Dorbin
  5. Script Date : 2022.04.23
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. require "SpawnScripts/Generic/DialogModule"
  9. local Gnolls = 5543
  10. function spawn(NPC)
  11. ProvidesQuest(NPC,Gnolls)
  12. end
  13. function respawn(NPC)
  14. spawn(NPC)
  15. end
  16. function hailed(NPC, Spawn)
  17. if GetFactionAmount(Spawn, 11)>0 then
  18. Dialog4(NPC, Spawn)
  19. else
  20. PlayFlavor(NPC,"","","shakefist",0,0,Spawn)
  21. end
  22. end
  23. function Dialog2(NPC, Spawn)
  24. FaceTarget(NPC, Spawn)
  25. Dialog.New(NPC, Spawn)
  26. PlayFlavor(NPC, "","", "shrug", 0, 0,Spawn)
  27. Dialog.AddDialog("Famous, eh? Best keep your feet planted before your head floats off. Though, if you're looking for some recognition, I've been having some problems with the gnolls outside the gates here. I can't spare the men to go hunt them down, you wouldn't be interested in helping out, would you?")
  28. Dialog.AddVoiceover("voiceover/english/optional1/knight-lieutenant_laughlin/qey_north/quests/sirlaughlin/grd_laughlin_x1_initial.mp3", 2796593065, 1366994589)
  29. Dialog.AddOption("I'd be more than happy to carry the banner of Qeynos into battle with the gnolls!", "Dialog1")
  30. Dialog.AddOption("Gnolls? Send a new recruit out to deal with the problem.")
  31. Dialog.Start()
  32. end
  33. function Dialog1(NPC, Spawn)
  34. FaceTarget(NPC, Spawn)
  35. OfferQuest(NPC, Spawn,Gnolls)
  36. end
  37. function Dialog3(NPC, Spawn)
  38. FaceTarget(NPC, Spawn)
  39. Dialog.New(NPC, Spawn)
  40. PlayFlavor(NPC, "","", "agree", 0, 0,Spawn)
  41. Dialog.AddDialog("So you did... so you did. Well met adventurer you may be famous one day after all. Let me see, I think the city can afford to pay you a bit for your work here. Take this bag of coins, it should suffice.")
  42. Dialog.AddVoiceover("voiceover/english/optional1/knight-lieutenant_laughlin/qey_north/quests/sirlaughlin/grd_laughlin_x1_finish.mp3", 689966140, 111412847)
  43. Dialog.AddOption("Thank you sir. It was a pleasure to serve the city of Qeynos.","QuestFinish")
  44. Dialog.Start()
  45. end
  46. function QuestFinish(NPC, Spawn)
  47. FaceTarget(NPC, Spawn)
  48. SetStepComplete(Spawn,Gnolls, 2)
  49. PlayFlavor(Spawn, "","", "salute", 0, 0)
  50. end
  51. function Dialog4(NPC, Spawn)
  52. FaceTarget(NPC, Spawn)
  53. Dialog.New(NPC, Spawn)
  54. PlayFlavor(NPC, "","", "salute", 0, 0,Spawn)
  55. Dialog.AddDialog("Hail and well met! Please beware that while you are safe within Qeynos' mighty walls, the outside world is not as forgiving. Dangerous creatures roam the lands beyond these gates. Beware!")
  56. Dialog.AddVoiceover("voiceover/english/optional1/knight-lieutenant_laughlin/qey_north/grd_sirlaughlin.mp3", 3112487329, 768408857)
  57. if GetQuestStep(Spawn,Gnolls)==2 then
  58. Dialog.AddOption("I gave those gnolls a good thrashing, and have returned with the ten ears you requested.", "Dialog3")
  59. end
  60. if not HasQuest(Spawn,Gnolls) and not HasCompletedQuest(Spawn,Gnolls)then
  61. Dialog.AddOption("I won't let danger stand in my way. I'm going to be famous one day!", "Dialog2")
  62. Dialog.AddOption("Erk! Dangerous creatures? I think I'll stay inside the gates!")
  63. end
  64. Dialog.AddOption("Well met to you as well.")
  65. Dialog.Start()
  66. end