9
3

LodoBightn.lua 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. --[[
  2. Script Name : SpawnScripts/QeynosCapitolDistrict/LodoBightn.lua
  3. Script Purpose : Lodo Bightn
  4. Script Author : Dorbin
  5. Script Date : 2022.05.17
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. require "SpawnScripts/Generic/DialogModule"
  9. local Dagger = 5558
  10. function spawn(NPC)
  11. SetInfoStructString(NPC, "action_state", "drinking_idle")
  12. end
  13. function respawn(NPC)
  14. spawn(NPC)
  15. end
  16. function hailed(NPC, Spawn)
  17. if GetQuestStepProgress(Spawn,Dagger) == 4 then
  18. Dialog4(NPC, Spawn)
  19. RandomGreeting(NPC, Spawn)
  20. else
  21. PlayFlavor(NPC,"","","glare",0,0,Spawn)
  22. Emote(NPC,"a stares at you with an evil grin, then goes back to his ale.")
  23. FaceTarget(NPC, Spawn)
  24. end
  25. end
  26. function RandomGreeting(NPC, Spawn)
  27. local choice = MakeRandomInt(1,1)
  28. if choice == 1 then
  29. PlayVoice(NPC, "voiceover/english/voice_emotes/greetings/greetings_2_1020.mp3", 0, 0, Spawn)
  30. end
  31. end
  32. function Dialog1(NPC, Spawn)
  33. FaceTarget(NPC, Spawn)
  34. Dialog.New(NPC, Spawn)
  35. Dialog.AddDialog("Oh, I'm afraid not. Don't get that nasty sort out here. Bunch of 'em out by Freeport I hear, though.")
  36. Dialog.AddVoiceover("voiceover/english/optional5/lodo_bightn/bf_halfling_lodobightn3_64.mp3", 4220445890, 889140163)
  37. Dialog.AddOption("This one would have come here from Freeport.", "Dialog5")
  38. Dialog.Start()
  39. end
  40. function Dialog2(NPC, Spawn)
  41. FaceTarget(NPC, Spawn)
  42. Dialog.New(NPC, Spawn)
  43. Dialog.AddDialog("You see if you can do that. Don't like that sort around here, we don't!")
  44. Dialog.AddVoiceover("voiceover/english/optional5/lodo_bightn/bf_halfling_lodobightn7_64.mp3", 1750948791, 3710883343)
  45. Dialog.AddOption("Take care.")
  46. Dialog.Start()
  47. end
  48. function Dialog3(NPC, Spawn)
  49. FaceTarget(NPC, Spawn)
  50. Dialog.New(NPC, Spawn)
  51. Dialog.AddDialog("Now that you mention it, I reckon so. Rather brutish chap, I'll give him that.")
  52. Dialog.AddVoiceover("voiceover/english/optional5/lodo_bightn/bf_halfling_lodobightn5_64.mp3", 3738287380, 448534297)
  53. Dialog.AddOption("Did you see where he went?", "Dialog6")
  54. Dialog.Start()
  55. end
  56. function Dialog4(NPC, Spawn)
  57. FaceTarget(NPC, Spawn)
  58. Dialog.New(NPC, Spawn)
  59. Dialog.AddDialog("What's this? Who are you looking for? An assassin?")
  60. Dialog.AddVoiceover("voiceover/english/optional5/lodo_bightn/bf_halfling_lodobightn2_64.mp3", 371157871, 3067060166)
  61. Dialog.AddOption("Yes, I'd heard one might have made his way out here.", "Dialog1")
  62. Dialog.Start()
  63. end
  64. function Dialog5(NPC, Spawn)
  65. FaceTarget(NPC, Spawn)
  66. Dialog.New(NPC, Spawn)
  67. Dialog.AddDialog("There was a strange sort, came into town for a couple days. Bit on the shorter side.")
  68. Dialog.AddVoiceover("voiceover/english/optional5/lodo_bightn/bf_halfling_lodobightn4_64.mp3", 443287110, 1346680078)
  69. Dialog.AddOption("Did he have brown hair?", "Dialog3")
  70. Dialog.Start()
  71. end
  72. function Dialog6(NPC, Spawn)
  73. FaceTarget(NPC, Spawn)
  74. Dialog.New(NPC, Spawn)
  75. Dialog.AddDialog("Hmm ... Said he had some sort of business down in the crypt, I'd try checking there.")
  76. Dialog.AddVoiceover("voiceover/english/optional5/lodo_bightn/bf_halfling_lodobightn6_64.mp3", 450148933, 2742128407)
  77. Dialog.AddOption("Thanks, I'll see if I can catch him.", "Dialog2")
  78. Dialog.Start()
  79. end