Finn.lua 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. --[[
  2. Script Name : SpawnScripts/SouthQeynos/Finn.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.11.15 02:11:40
  5. Script Purpose :
  6. :
  7. --]]
  8. require "SpawnScripts/Generic/DialogModule"
  9. function spawn(NPC)
  10. SetPlayerProximityFunction(NPC, 10, "InRange", "LeaveRange")
  11. SetRequiredQuest(NPC,5771,1,1,0,0)
  12. end
  13. function InRange(NPC,Spawn)
  14. FaceTarget(NPC, Spawn)
  15. PlayFlavor(NPC,"","You there! You must be the one sent to help! They've all lost their wits!","wave",0,0,Spawn)
  16. end
  17. function hailed(NPC, Spawn)
  18. Dialog1(NPC, Spawn)
  19. end
  20. function respawn(NPC)
  21. spawn(NPC)
  22. end
  23. function Dialog1(NPC, Spawn)
  24. FaceTarget(NPC, Spawn)
  25. Dialog.New(NPC, Spawn)
  26. Dialog.AddDialog("The place being torn apart! We were just having a drink is all...")
  27. PlayFlavor(NPC,"","","confused",0,0,Spawn)
  28. Dialog.AddVoiceover("voiceover/english/voice_emotes/greetings/greetings_3_1050.mp3", 0, 0)
  29. Dialog.AddOption("Calm down and tell me what is going on.", "Dialog2")
  30. Dialog.AddOption("I'm not going in there!")
  31. Dialog.Start()
  32. end
  33. function Dialog2(NPC, Spawn)
  34. FaceTarget(NPC, Spawn)
  35. Dialog.New(NPC, Spawn)
  36. Dialog.AddDialog("We were all just having a drink in the Wayfarer's Rest like we do every night. I stepped out for a bit and came back to crashing and smashing from inside. They've all lost it, but I can't tell why. Even lil' Stimpleweed, who would never hurt a soul, is tearing up the place. Please, you must find a way to settle them down!")
  37. PlayFlavor(NPC,"","","pout",0,0,Spawn)
  38. Dialog.AddOption("Alright. I'll investigate.","Door")
  39. Dialog.AddOption("Did you notice anything odd?","Odd")
  40. Dialog.Start()
  41. end
  42. function Odd(NPC, Spawn)
  43. FaceTarget(NPC, Spawn)
  44. Dialog.New(NPC, Spawn)
  45. Dialog.AddDialog("There was a shady look'n character who entered earlier, but I thought they had left after their drink... Please, we must figure out how to calm them down!")
  46. PlayFlavor(NPC,"","","shrug",0,0,Spawn)
  47. Dialog.AddOption("Alright. I'll investigate.","Door")
  48. Dialog.Start()
  49. end
  50. function Door(NPC, Spawn)
  51. SpawnSet(NPC,"heading",194)
  52. PlayFlavor(NPC,"","The tavern is right there. Please, be careful!","point",0,0,Spawn)
  53. end