9
3

GrettaSteinbeard.lua 3.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. --[[
  2. Script Name : SpawnScripts/NorthQeynos/GrettaSteinbeard.lua
  3. Script Author : Dorbin
  4. Script Date : 2022.04.01 01:04:40
  5. Script Purpose :
  6. :
  7. --]]
  8. require "SpawnScripts/Generic/DialogModule"
  9. local fish = 5535
  10. function spawn(NPC)
  11. ProvidesQuest(NPC, fish)
  12. end
  13. function respawn(NPC)
  14. spawn(NPC)
  15. end
  16. function hailed(NPC, Spawn)
  17. if GetFactionAmount(Spawn,11) <0 then
  18. FaceTarget(NPC, Spawn)
  19. choice = math.random(1,2)
  20. if choice == 1 then
  21. PlayFlavor(NPC, "", "", "shakefist", 0, 0, Spawn)
  22. elseif choice == 2 then
  23. PlayFlavor(NPC, "", "", "heckno", 0, 0, Spawn)
  24. end
  25. else
  26. FaceTarget(NPC, Spawn)
  27. Dialog.New(NPC, Spawn)
  28. Dialog.AddDialog("Greetings, traveler! My tavern's warm, and the company's good.")
  29. Dialog.AddVoiceover("voiceover/english/gretta_steinbeard/qey_north/grettasteinbeard_x1.mp3", 35615365, 1303938108)
  30. PlayFlavor(NPC, "", "", "hello", 0, 0, Spawn)
  31. if not HasQuest(Spawn,fish) and not HasCompletedQuest(Spawn, fish) then
  32. Dialog.AddOption("You do have quite a nice place here.", "Work")
  33. end
  34. if GetQuestStep(Spawn,fish)==2 then
  35. Dialog.AddOption("Here's your fish, take them before they make me pale with disgust!", "Delivered")
  36. end
  37. Dialog.AddOption("I plan to enjoy myself. Thanks.")
  38. Dialog.Start()
  39. end
  40. end
  41. function Work(NPC,Spawn)
  42. FaceTarget(NPC, Spawn)
  43. Dialog.New(NPC, Spawn)
  44. Dialog.AddDialog("Why thank you sir! Say, would you be willing to spend a little time to help a busy woman?")
  45. Dialog.AddVoiceover("voiceover/english/merchant_gretta_steinbeard/qey_north/grettasteinbeard_x000.mp3", 612712171, 2321965832)
  46. PlayFlavor(NPC, "", "", "ponder", 0, 0, Spawn)
  47. Dialog.AddOption("I've got some time. What do you need?", "Delivery2")
  48. Dialog.AddOption("I really don't. Sorry.","sigh")
  49. Dialog.Start()
  50. end
  51. function sigh(NPC,Spawn)
  52. PlayFlavor(NPC, "", "", "sigh", 0, 0, Spawn)
  53. end
  54. function Delivery2(NPC, Spawn)
  55. FaceTarget(NPC, Spawn)
  56. Dialog.New(NPC, Spawn)
  57. Dialog.AddDialog("Well, I need a delivery of fish for tonight's supper. I'm making my specialty. Fish stuffed with fish smothered in a fish sauce and served over a bed of fish, but I'm so busy here doing all the things I have to do that I haven't been able to go to Umli's Fish Market. If I don't get the fish, it will be turnip stew... again.")
  58. Dialog.AddVoiceover("voiceover/english/merchant_gretta_steinbeard/qey_north/grettasteinbeard_x001.mp3", 179611746, 3337706668)
  59. Dialog.AddOption("I would be happy to lend a hand.", "Delivery3")
  60. Dialog.AddOption("Sounds too fishy for me.", "sigh")
  61. Dialog.Start()
  62. end
  63. function Delivery3(NPC, Spawn)
  64. FaceTarget(NPC, Spawn)
  65. OfferQuest(NPC, Spawn,fish)
  66. end
  67. function Delivered(NPC, Spawn)
  68. FaceTarget(NPC, Spawn)
  69. Dialog.New(NPC, Spawn)
  70. Dialog.AddDialog("That last comment aside, I thank ye, and so will the mudglud tavern patrons who don't have the courage to face that shale-skin Umli, and yet, complain about the turnip stew! Well, here's some coin for your pocket. You have no idea how valuable your service has been.")
  71. Dialog.AddVoiceover("voiceover/english/merchant_gretta_steinbeard/qey_north/grettasteinbeard_x003.mp3", 3675257953, 3697234196)
  72. PlayFlavor(NPC, "", "", "sniff", 0, 0, Spawn)
  73. Dialog.AddOption("Thanks.", "FinishQuest")
  74. Dialog.AddOption("Great. Now have I have to get rid of this fish smell.", "Chuckle")
  75. Dialog.Start()
  76. end
  77. function Chuckle(NPC,Spawn)
  78. PlayFlavor(NPC, "", "", "chuckle", 0, 0, Spawn)
  79. FaceTarget(NPC, Spawn)
  80. SetStepComplete(Spawn,fish, 2)
  81. end
  82. function FinishQuest(NPC,Spawn)
  83. PlayFlavor(NPC, "", "", "nod", 0, 0, Spawn)
  84. FaceTarget(NPC, Spawn)
  85. SetStepComplete(Spawn,fish, 2)
  86. end