GrommlukOognee.lua 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  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. dofile("SpawnScripts/Generic/GenericEcologyVoiceOvers.lua")
  9. local Bog = 5458
  10. function spawn(NPC)
  11. SetPlayerProximityFunction(NPC, 4, "InRange", "LeaveRange")
  12. ProvidesQuest(NPC, Bog)
  13. end
  14. function hailed(NPC, Spawn)
  15. FaceTarget(NPC, Spawn)
  16. if GetFactionAmount(Spawn,11) <0 then
  17. FactionChecking(NPC, Spawn, faction)
  18. else
  19. conversation = CreateConversation()
  20. PlayFlavor(NPC, "voiceover/english/grommluk_oognee/qey_village04/grommlukoognee.mp3", "", "sigh", 1671306238, 1249436621, Spawn)
  21. if not HasCompletedQuest (Spawn, Bog) and not HasQuest (Spawn, Bog) then
  22. AddConversationOption(conversation, "What seems to be the matter?", "Matter")
  23. end
  24. if GetQuestStep (Spawn, Bog)==2 then
  25. AddConversationOption(conversation, "Here is a jar of Peat Bog water for you.", "Delivery")
  26. end
  27. AddConversationOption(conversation, "Enjoy your soak. Good day.")
  28. StartConversation(conversation, NPC, Spawn, "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...")
  29. end
  30. end
  31. function respawn(NPC)
  32. spawn(NPC)
  33. end
  34. function InRange(NPC, Spawn)
  35. if GetFactionAmount(Spawn,11) <0 then
  36. FactionChecking(NPC, Spawn, faction)
  37. else
  38. if math.random(1, 100) <= 60 then
  39. if not HasCompletedQuest (Spawn, Bog) then
  40. FaceTarget(NPC,Spawn)
  41. local choice = math.random(1,2)
  42. if choice == 1 then
  43. 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)
  44. else
  45. 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)
  46. end
  47. end
  48. else
  49. if HasCompletedQuest (Spawn, Bog) then
  50. local choice = math.random(1,2)
  51. if choice == 1 then
  52. 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)
  53. else
  54. PlayFlavor(NPC, "", "", "dance", 0, 0)
  55. end
  56. end
  57. end
  58. end
  59. end
  60. function Matter(NPC, Spawn)
  61. FaceTarget(NPC, Spawn)
  62. conversation = CreateConversation()
  63. PlayFlavor(NPC, "voiceover/english/grommluk_oognee/qey_village04/grommlukoognee000.mp3", "", "ponder", 2855844527, 67892333, Spawn)
  64. AddConversationOption(conversation, "I can explore the Peat Bog.", "Sample")
  65. AddConversationOption(conversation, "I have no desire to wallow in the Peat Bog. Sorry.")
  66. StartConversation(conversation, NPC, Spawn, "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.")
  67. end
  68. function Sample(NPC, Spawn)
  69. FaceTarget(NPC, Spawn)
  70. conversation = CreateConversation()
  71. PlayFlavor(NPC, "voiceover/english/grommluk_oognee/qey_village04/grommlukoognee001.mp3", "", "thanks", 753284600, 2887327469, Spawn)
  72. AddConversationOption(conversation, "Alright. I'll be back.", "QuestStart")
  73. AddConversationOption(conversation, "On second thought, I'll pass.")
  74. StartConversation(conversation, NPC, Spawn, "Great! Take'st this jar and bring me some water from the middle of the Peat Bog. Make'th sure thou gets plenty of muck in there too.")
  75. end
  76. function QuestStart(NPC, Spawn, Quest)
  77. FaceTarget(NPC, Spawn)
  78. OfferQuest(NPC, Spawn, Bog)
  79. end
  80. -- This line is fabricated and the MP3 does not work (2022.02.18 Dorbin)
  81. function Delivery(NPC, Spawn)
  82. FaceTarget(NPC, Spawn)
  83. conversation = CreateConversation()
  84. PlayFlavor(NPC, "voiceover/english/grommluk_oognee/qey_village04/grommlukoognee002.mp3", "", "happy", 1671306238, 1249436621, Spawn)
  85. AddConversationOption(conversation, "Enjoy your bog muck!", "QuestDone")
  86. StartConversation(conversation, NPC, Spawn, "Ah... this is wonderful! The squish! The mouth-feel! It isn't the same as back home, but it will do! Thank you adventurer. Please take'th this as a show of my gratitude.")
  87. end
  88. function QuestDone(NPC, Spawn)
  89. SetStepComplete(Spawn,Bog , 2)
  90. end