9
3

GrommlukOognee.lua 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. --[[
  2. Script Name : SpawnScripts/Castleview/GrommlukOognee.lua
  3. Script Purpose : Grommluk Oognee
  4. Script Author : Dorbin
  5. Script Date : 2022.01.26
  6. Script Notes :
  7. --]]
  8. require "SpawnScripts/Generic/DialogModule"
  9. dofile("SpawnScripts/Generic/GenericEcologyVoiceOvers.lua")
  10. local Bog = 5458
  11. function spawn(NPC)
  12. SetPlayerProximityFunction(NPC, 4, "InRange", "LeaveRange")
  13. ProvidesQuest(NPC, Bog)
  14. end
  15. function hailed(NPC, Spawn)
  16. FaceTarget(NPC, Spawn)
  17. if GetFactionAmount(Spawn,11) <0 then
  18. FactionChecking(NPC, Spawn, faction)
  19. else
  20. FaceTarget(NPC, Spawn)
  21. Dialog.New(NPC, Spawn)
  22. Dialog.AddDialog("Ahhh... It feels good to get into the water and relax, but too bad this isn't a swamp, though. The water is too clean the stone doesn't squish...")
  23. Dialog.AddVoiceover("voiceover/english/grommluk_oognee/qey_village04/grommlukoognee.mp3", 1671306238, 1249436621)
  24. PlayFlavor(NPC, "", "", "sigh", 0, 0, Spawn)
  25. if not HasCompletedQuest (Spawn, Bog) and not HasQuest (Spawn, Bog) then
  26. Dialog.AddOption("What seems to be the matter?", "Matter")
  27. end
  28. if GetQuestStep (Spawn, Bog)==2 then
  29. Dialog.AddOption("I have your jar with swamp water and extra muck.", "Delivery")
  30. end
  31. Dialog.AddOption("Enjoy your soak. Good day.")
  32. Dialog.Start()
  33. end
  34. end
  35. function respawn(NPC)
  36. spawn(NPC)
  37. end
  38. function InRange(NPC, Spawn)
  39. if GetFactionAmount(Spawn,11) <0 then
  40. FactionChecking(NPC, Spawn, faction)
  41. else
  42. if MakeRandomInt(1, 100) <= 60 then
  43. if not HasCompletedQuest (Spawn, Bog) then
  44. FaceTarget(NPC,Spawn)
  45. local choice = MakeRandomInt(1,2)
  46. if choice == 1 then
  47. PlayFlavor(NPC, "voiceover/english/grommluk_oognee/qey_village04/100_swimmer_grommluk_multhail2_b5e61808.mp3", "I profess that I am not mad, but I do thinketh this water is too clean. And the stones! They doth not squish under thy feet!", "crazy", 2658355916, 3677777453)
  48. else
  49. PlayFlavor(NPC, "voiceover/english/grommluk_oognee/qey_village04/100_swimmer_grommluk_callout_893d31d6.mp3", "Aaaaahhh ... This is not how a Froglok should live. Hello, friend. What does thou need?", "pout", 1845678991, 1668939224, Spawn)
  50. end
  51. end
  52. else
  53. if HasCompletedQuest (Spawn, Bog) then
  54. local choice = MakeRandomInt(1,2)
  55. if choice == 1 then
  56. PlayFlavor(NPC, "voiceover/english/grommluk_oognee/qey_village04/100_swimmer_grommluk_multhail2_b5e61808.mp3", "I profess that I am not mad, but I do thinketh this water is too clean. And the stones! They doth not squish under thy feet!", "crazy", 2658355916, 3677777453)
  57. else
  58. PlayFlavor(NPC, "", "", "dance", 0, 0)
  59. end
  60. end
  61. end
  62. end
  63. end
  64. function Matter(NPC, Spawn)
  65. FaceTarget(NPC, Spawn)
  66. Dialog.New(NPC, Spawn)
  67. Dialog.AddDialog("Nothing like being submerged in marsh water up to thy eyeballs, and feeling the ground squish between thy toes. I hear the Peat Bog is like that. Could'st thou go there and find out for me? I would graciously pay'st thou for the job.")
  68. Dialog.AddVoiceover("voiceover/english/grommluk_oognee/qey_village04/grommlukoognee000.mp3",2855844527, 67892333)
  69. PlayFlavor(NPC, "", "", "ponder", 0,0 , Spawn)
  70. Dialog.AddOption("I can explore the Peat Bog for you.", "QuestStart")
  71. Dialog.AddOption("I have no desire to wallow in the Peat Bog. Sorry.")
  72. Dialog.Start()
  73. end
  74. function QuestStart(NPC, Spawn, Quest)
  75. FaceTarget(NPC, Spawn)
  76. OfferQuest(NPC, Spawn, Bog)
  77. end
  78. -- This line is accurate, but the MP3 does not work. We need the keys. (2022.02.18 Dorbin)
  79. function Delivery(NPC, Spawn)
  80. SetStepComplete(Spawn,Bog , 2)
  81. FaceTarget(NPC, Spawn)
  82. Dialog.New(NPC, Spawn)
  83. Dialog.AddDialog("Ah, this is a great sample. It looks unto me like the Peat Bog is just what I'm looking for. Grammarcy for your help. Here is the money I told thee I would pay thou.")
  84. Dialog.AddVoiceover("voiceover/english/grommluk_oognee/qey_village04/grommlukoognee002.mp3",0, 0)
  85. PlayFlavor(NPC, "", "", "happy", 0,0 , Spawn)
  86. Dialog.AddOption("Enjoy your bog swims.")
  87. Dialog.Start()
  88. end
  89. function QuestDone(NPC, Spawn)
  90. end