9
3

GrettaSteinbeard.lua 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  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. local fish = 5535
  9. function spawn(NPC)
  10. ProvidesQuest(NPC, fish)
  11. end
  12. function respawn(NPC)
  13. spawn(NPC)
  14. end
  15. function hailed(NPC, Spawn)
  16. if GetFactionAmount(Spawn,11) <0 then
  17. FaceTarget(NPC, Spawn)
  18. choice = math.random(1,2)
  19. if choice == 1 then
  20. PlayFlavor(NPC, "", "", "shakefist", 0, 0, Spawn)
  21. elseif choice == 2 then
  22. PlayFlavor(NPC, "", "", "heckno", 0, 0, Spawn)
  23. end
  24. else
  25. FaceTarget(Spawn, NPC)
  26. PlayFlavor(NPC, "voiceover/english/gretta_steinbeard/qey_north/grettasteinbeard_x1.mp3", "", "hello", 35615365, 1303938108, Spawn)
  27. local conversation = CreateConversation()
  28. if GetQuestStep(Spawn,fish)==2 then
  29. AddConversationOption(conversation, "Here are your fish! You didn't warn me the smell would nearly knock me out.", "Delivered")
  30. end
  31. if not HasQuest(Spawn,fish) and not HasCompletedQuest(Spawn, fish) then
  32. AddConversationOption(conversation, "You do have quite a nice place here.", "Work")
  33. end
  34. AddConversationOption(conversation, "I plan to enjoy myself. Thanks.")
  35. StartConversation(conversation, NPC, Spawn, "Greetings, traveler! My tavern's warm, and the company's good.")
  36. end
  37. end
  38. function Work(NPC,Spawn)
  39. FaceTarget(NPC, Spawn)
  40. PlayFlavor(NPC, "voiceover/english/merchant_gretta_steinbeard/qey_north/grettasteinbeard_x000.mp3", "", "ponder", 612712171, 2321965832, Spawn)
  41. local conversation = CreateConversation()
  42. AddConversationOption(conversation, "I've got some time. What do you need?", "Delivery2")
  43. AddConversationOption(conversation, "I really don't. Sorry.","sigh")
  44. StartConversation(conversation, NPC, Spawn, "Why thank you sir! Say, would you be willing to spend a little time to help a busy woman?")
  45. end
  46. function sigh(NPC,Spawn)
  47. PlayFlavor(NPC, "", "", "sigh", 0, 0, Spawn)
  48. end
  49. function Delivery2(NPC, Spawn)
  50. FaceTarget(NPC, Spawn)
  51. PlayFlavor(NPC, "voiceover/english/merchant_gretta_steinbeard/qey_north/grettasteinbeard_x001.mp3", "", "", 179611746, 3337706668, Spawn)
  52. local conversation = CreateConversation()
  53. AddConversationOption(conversation, "I would be happy to lend a hand.", "Delivery3")
  54. AddConversationOption(conversation, "Sounds too fishy for me.", "sigh")
  55. StartConversation(conversation, NPC, Spawn, "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.")
  56. end
  57. function Delivery3(NPC, Spawn)
  58. FaceTarget(NPC, Spawn)
  59. OfferQuest(NPC, Spawn,fish)
  60. end
  61. function Delivered(NPC, Spawn)
  62. FaceTarget(NPC, Spawn)
  63. PlayFlavor(NPC, "voiceover/english/gretta_steinbeard/qey_north/grettasteinbeard_x003.mp3", "", "thanks", 3675257953, 3697234196, Spawn)
  64. local conversation = CreateConversation()
  65. AddConversationOption(conversation, "Thanks.", "FinishQuest")
  66. AddConversationOption(conversation, "Great. Now have I have to get rid of this fish smell.", "Chuckle")
  67. StartConversation(conversation, NPC, Spawn, "That last comment aside, I thank you. And some of the mudglub tavern patrons who don't have the courage to face that shell-skinned 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.")
  68. end
  69. function Chuckle(NPC,Spawn)
  70. PlayFlavor(NPC, "", "", "chuckle", 0, 0, Spawn)
  71. FaceTarget(NPC, Spawn)
  72. SetStepComplete(Spawn,fish, 2)
  73. end
  74. function FinishQuest(NPC,Spawn)
  75. PlayFlavor(NPC, "", "", "nod", 0, 0, Spawn)
  76. FaceTarget(NPC, Spawn)
  77. SetStepComplete(Spawn,fish, 2)
  78. end