9
3

Oemor.lua 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. --[[
  2. Script Name : SpawnScripts/TheLostVillageofKugup/Oemor.lua
  3. Script Purpose : Oemor
  4. Script Author : neatz09
  5. Script Date : 2023.04.29
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. require "SpawnScripts/Generic/DialogModule"
  9. local ColdBloodedRelations = 5808
  10. function spawn(NPC)
  11. end
  12. function respawn(NPC)
  13. spawn(NPC)
  14. end
  15. function hailed(NPC, Spawn)
  16. FaceTarget(NPC, Spawn)
  17. if GetQuestStep(Spawn, ColdBloodedRelations) == 2 then Dialog2(NPC, Spawn)
  18. else RandomGreeting(NPC, Spawn)
  19. end
  20. end
  21. function RandomGreeting(NPC, Spawn)
  22. local choice = MakeRandomInt(1,6)
  23. if choice == 1 then
  24. PlayFlavor(NPC, "", "Why don't you just leave me alone you dirty wordmonger... Er, sorry, you're not Teiluj... Uh, hello.", "", 0, 0, Spawn, 0)
  25. elseif choice == 2 then
  26. PlayFlavor(NPC, "", "I am glad that we worked everything out.", "", 0, 0, Spawn, 0)
  27. elseif choice == 3 then
  28. PlayFlavor(NPC, "", "Teiluj...", "", 0, 0, Spawn, 0)
  29. elseif choice == 4 then
  30. PlayVoice(NPC, "voiceover/english/voice_emotes/greetings/greetings_2_1015.mp3", 0, 0, Spawn)
  31. elseif choice == 5 then
  32. PlayVoice(NPC, "voiceover/english/voice_emotes/greetings/greetings_1_1015.mp3", 0, 0, Spawn)
  33. elseif choice == 6 then
  34. PlayVoice(NPC, "voiceover/english/voice_emotes/greetings/greetings_3_1015.mp3", 0, 0, Spawn)
  35. end
  36. end
  37. function Dialog1(NPC, Spawn)
  38. FaceTarget(NPC, Spawn)
  39. Dialog.New(NPC, Spawn)
  40. Dialog.AddDialog("Hello there... Can I help you?")
  41. Dialog.AddVoiceover("voiceover/english/voice_emotes/greetings/greetings_3_1015.mp3", 0, 0)
  42. Dialog.AddOption("I brought you these flowers...")
  43. Dialog.AddOption("I have to be going.")
  44. Dialog.Start()
  45. end
  46. function Dialog2(NPC, Spawn)
  47. FaceTarget(NPC, Spawn)
  48. Dialog.New(NPC, Spawn)
  49. Dialog.AddDialog("Hello there... Can I help you?")
  50. Dialog.AddVoiceover("voiceover/english/voice_emotes/greetings/greetings_2_1015.mp3", 0, 0)
  51. Dialog.AddOption("I brought you these flowers...", "Dialog5")
  52. Dialog.AddOption("I have to be going.")
  53. Dialog.Start()
  54. end
  55. function Dialog3(NPC, Spawn)
  56. FaceTarget(NPC, Spawn)
  57. Dialog.New(NPC, Spawn)
  58. Dialog.AddDialog("Did he tell you that? Really? Wow... Maybe I was wrong about him. If you talk to him again, please ask him to come speak with me.")
  59. Dialog.AddOption("I would love to.")
  60. Dialog.Start()
  61. end
  62. function Dialog4(NPC, Spawn)
  63. FaceTarget(NPC, Spawn)
  64. Dialog.New(NPC, Spawn)
  65. Dialog.AddDialog("Hello there... Can I help you?")
  66. Dialog.AddVoiceover("voiceover/english/voice_emotes/greetings/greetings_1_1015.mp3", 0, 0)
  67. Dialog.AddOption("I brought you these flowers...", "suckafrogdick") -- highjacking this one as well to keep the quest going
  68. Dialog.AddOption("I have to be going.")
  69. Dialog.Start()
  70. end
  71. function Dialog5(NPC, Spawn)
  72. FaceTarget(NPC, Spawn)
  73. Dialog.New(NPC, Spawn)
  74. Dialog.AddDialog("What? Flowers for me? From that weasel Teiluj, no doubt.")
  75. Dialog.AddOption("He's not a weasel. He loves you.", "suckafrogdick")
  76. Dialog.AddOption("Yeah, uh...")
  77. Dialog.Start()
  78. end
  79. function suckafrogdick(NPC, Spawn)
  80. SetStepComplete(Spawn, ColdBloodedRelations, 2)
  81. end