9
3

BriceStrongmend.lua 4.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. --[[
  2. Script Name : SpawnScripts/GraystoneYard/BriceStrongmend.lua
  3. Script Purpose : Brice Strongmend
  4. Script Author : Dorbin
  5. Script Date : 2022.03.10
  6. Script Notes :
  7. --]]
  8. dofile("SpawnScripts/Generic/UnknownLanguage.lua")
  9. local FishingPole = 5505
  10. function spawn(NPC)
  11. SetPlayerProximityFunction(NPC, 10, "InRange", "LeaveRange")
  12. ProvidesQuest(NPC, FishingPole)
  13. end
  14. function respawn(NPC)
  15. spawn(NPC)
  16. end
  17. function InRange(NPC, Spawn) --Quest Callout
  18. if math.random(1, 100) <= 75 then
  19. if not HasLanguage(Spawn,1)then
  20. Garbled(NPC,Spawn)
  21. else
  22. end
  23. end
  24. function hailed(NPC, Spawn)
  25. conversation = CreateConversation()
  26. if not HasLanguage(Spawn,1)then
  27. FaceTarget(NPC, Spawn)
  28. Garbled(NPC,Spawn)
  29. else
  30. if GetQuestStep(Spawn, FishingPole) == 2 then
  31. AddConversationOption(conversation, "Here is your new pole from Moyna.", "GetPole")
  32. end
  33. if not HasQuest(Spawn, FishingPole) and not HasCompletedQuest(Spawn, FishingPole) then
  34. AddConversationOption(conversation, "This must be a great fishing spot.", "FindingWork")
  35. end
  36. FaceTarget(NPC, Spawn)
  37. PlayFlavor(NPC, "voiceover/english/brice_strongmend/qey_village03/bricestrongmend.mp3", "", "hello", 2050106865, 4220019235, Spawn)
  38. AddConversationOption(conversation, "Certainly is. Good luck.")
  39. StartConversation(conversation, NPC, Spawn, "Greetings! Fine day to be fishing to be sure!")
  40. end
  41. end
  42. end
  43. function FindingWork(NPC, Spawn)
  44. FaceTarget(NPC, Spawn)
  45. conversation = CreateConversation()
  46. PlayFlavor(NPC, "voiceover/english/brice_strongmend/qey_village03/bricestrongmend000.mp3", "", "agree", 720910196, 1903725570, Spawn)
  47. AddConversationOption(conversation, "I'll pick up a new pole for you. She is near by.","ProvidedItPays")
  48. AddConversationOption(conversation, "Afraid I'm busy. Sorry.")
  49. StartConversation(conversation, NPC, Spawn, "You've a sharp eye, I'll give you that! Truth be told, I've been here all day and every fish has gotten away. Would you do me a favor and pickup a new pole for me from Tacklemaster Moyna? I'd hate to lose this fishing spot!")
  50. end
  51. function ProvidedItPays(NPC, Spawn)
  52. FaceTarget(NPC, Spawn)
  53. conversation = CreateConversation()
  54. PlayFlavor(NPC, "voiceover/english/brice_strongmend/qey_village03/bricestrongmend001.mp3", "", "", 2959796391, 3700164785, Spawn)
  55. AddConversationOption(conversation, "I'll be back shortly.", "OfferQuest1")
  56. StartConversation(conversation, NPC, Spawn, "Grand! Take these coins and speak with Tacklemaster Moyna. Buy the finest pole you can with this coin. I can't afford the best quality of gear, fishing doesn't pay much after all, but it sure is fun!")
  57. end
  58. function OfferQuest1(NPC, Spawn)
  59. FaceTarget(NPC, Spawn)
  60. OfferQuest(NPC, Spawn, FishingPole)
  61. end
  62. function GetPole(NPC, Spawn)
  63. FaceTarget(NPC, Spawn)
  64. conversation = CreateConversation()
  65. PlayFlavor(NPC, "voiceover/english/brice_strongmend/qey_village03/bricestrongmend002.mp3", "", "thank", 2597129454, 1443896248, Spawn)
  66. AddConversationOption(conversation, "Nearly all of it. Moyna gave you the best you could get.", "Returned")
  67. AddConversationOption(conversation, "Moyna said its not the best, but here is the change.", "Returned")
  68. StartConversation(conversation, NPC, Spawn, "Oh, this looks like a bute! How much did it set me back?")
  69. end
  70. function Returned(NPC, Spawn)
  71. FaceTarget(NPC, Spawn)
  72. conversation = CreateConversation()
  73. PlayFlavor(NPC, "voiceover/english/brice_strongmend/qey_village03/bricestrongmend003.mp3", "", "agree", 3257008842, 2595858488, Spawn)
  74. AddConversationOption(conversation, "I don't need the pole, but I'll take the money!","Done")
  75. AddConversationOption(conversation, "Your old fishing pole has seen better days. Good luck.","Done")
  76. StartConversation(conversation, NPC, Spawn, "An honest one you are! I can see you'll fit in well in Qeynos! Please, take the leftover money. With this new pole I'm sure to catch more than my share and I can sell the rest! Say, would you like my old fishing pole?")
  77. end
  78. function Done(NPC,Spawn)
  79. SetStepComplete(Spawn, FishingPole, 2)
  80. end