TobiasGranville.lua 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. --[[
  2. Script Name : TobiasGranville.lua
  3. Script Purpose : Tobias Granville (2490178)
  4. Script Author : Jabantiz
  5. Script Date : 8/10/2016
  6. Script Notes :
  7. --]]
  8. local GranvillesRestaurantAntonica = 182
  9. function spawn(NPC)
  10. ProvidesQuest(NPC, GranvillesRestaurantAntonica)
  11. SetPlayerProximityFunction(NPC, 10, "InRange", "LeaveRange")
  12. end
  13. function InRange(NPC, Spawn)
  14. if not HasQuest(Spawn, GranvillesRestaurantAntonica) and not HasCompletedQuest(Spawn, GranvillesRestaurantAntonica) then
  15. PlayFlavor(NPC, "", "Looking for folks skilled at fishing!", "beckon", 0, 0, Spawn)
  16. else
  17. Say(NPC, "Good to see you again.", Spawn)
  18. end
  19. end
  20. function LeaveRange(NPC, Spawn)
  21. end
  22. function respawn(NPC)
  23. spawn(NPC)
  24. end
  25. function hailed(NPC, Spawn)
  26. FaceTarget(NPC, Spawn)
  27. local conversation = CreateConversation()
  28. if HasCompletedQuest(Spawn, GranvillesRestaurantAntonica) then
  29. Say(NPC, "I appreciate your help.", Spawn)
  30. elseif HasQuest(Spawn, GranvillesRestaurantAntonica) then
  31. local step = GetQuestStep(Spawn, GranvillesRestaurantAntonica)
  32. if step <= 2 then
  33. AddConversationOption(conversation, "I'm still gathering them. I'll be back shortly.")
  34. if step == 2 then
  35. AddConversationOption(conversation, "Here are the crab shells.", "Option2")
  36. end
  37. StartConversation(conversation, NPC, Spawn, "Where are my ingredients, hm?", "voiceover/english/tobias_granville/steppes/quests/quest_tobias_granville/tobias_granville005.mp3", 3287496753, 2683193173)
  38. elseif step <= 4 then
  39. AddConversationOption(conversation, "I'm still working on it.")
  40. if step == 4 then
  41. AddConversationOption(conversation, "Here's your seafood.", "Option3")
  42. end
  43. StartConversation(conversation, NPC, Spawn, "Well, it's about time. I, uh, was beginning to worry.")
  44. else
  45. AddConversationOption(conversation, "If I ever go to Nektulos, I'll look her up.", "Option6")
  46. StartConversation(conversation, NPC, Spawn, "I appreciate the report. This is all the coin I have to pay you for your work. My sister Tanny Granville says I spend too much on ingredients. Well, if you want more work you can always speak with her. She's out in Nektulos Forest getting some ingredients out that-a-way. Thanks for the work, friend.")
  47. end
  48. else
  49. -- Doesn't have the quest and hasn't completed it
  50. AddConversationOption(conversation, "Sorry, I'm not interested.")
  51. AddConversationOption(conversation, "What kind of hoofing do you mean?", "Option1")
  52. StartConversation(conversation, NPC, Spawn, "Who knew opening a restaurant would take all this field work? Hunting, gathering, searching, when all I want to do is cook! Cook, I tell you! I need someone else to do all this hoofing around!")
  53. PlayFlavor(NPC, "voiceover/english/tobias_granville/steppes/quests/quest_tobias_granville/tobias_granville001.mp3", "", "shrug", 2405099568, 1478987434, Spawn)
  54. end
  55. end
  56. function Option1(NPC, Spawn)
  57. FaceTarget(NPC, Spawn)
  58. local conversation = CreateConversation()
  59. AddConversationOption(conversation, "Well, I have other tasks at hand. Sorry, can't help you.")
  60. AddConversationOption(conversation, "I'm pretty good. What do you need, exactly?", "Option4")
  61. StartConversation(conversation, NPC, Spawn, "Splendid timing! I'm creating the most delightful seafood bisque. So many ingredients are needed to create the flavors in a good bisque. I have most of them set aside already, but I'm looking for an excellent fisherman and hunter to get my final ingredients. It's vital that I hire only the best! Only the best can get what I need!", "voiceover/english/tobias_granville/steppes/quests/quest_tobias_granville/tobias_granville002.mp3", 1972418532, 2059774414)
  62. end
  63. function Option4(NPC, Spawn)
  64. OfferQuest(NPC, Spawn, GranvillesRestaurantAntonica)
  65. end
  66. function Option2(NPC, Spawn)
  67. FaceTarget(NPC, Spawn)
  68. local conversation = CreateConversation()
  69. SetStepComplete(Spawn, GranvillesRestaurantAntonica, 2)
  70. AddConversationOption(conversation, "I'll be back with your seafood.")
  71. StartConversation(conversation, NPC, Spawn, "These will do nicely. I can certainly trust you to find the highest quality seafood from the mobs of fish. Not just any seafood, mind you, only the best will do! You can't find these things just anywhere, you know. Head straight down the Thundermist Road to the little cove at the end of Thundermist Valley. Look for the rocks the sailors call 'the Three Sisters,' though I don't know that anyone else calls those rocks any such name.")
  72. -- 'the Three Sisters,' is suppose to be " not ' but i can't get the damn editors to accept /, always changes it to /
  73. end
  74. function Option3(NPC, Spawn)
  75. FaceTarget(NPC, Spawn)
  76. local conversation = CreateConversation()
  77. AddConversationOption(conversation, "Not right now.")
  78. AddConversationOption(conversation, "What's your theory on this?", "Option5")
  79. StartConversation(conversation, NPC, Spawn, "Good, good! These will do nicely. I'm surprised it took this long; my old supplier used to say that one could walk across the water on the backs of the crabs and fishes. Something must be keeping their numbers unnaturally low. Perhaps you could look into this? I need to ensure a steady supply of fresh ingredients for my bisque!")
  80. end
  81. function Option5(NPC, Spawn)
  82. FaceTarget(NPC, Spawn)
  83. local conversation = CreateConversation()
  84. SetStepComplete(Spawn, GranvillesRestaurantAntonica, 4)
  85. AddConversationOption(conversation, "I'll investigate and report back.")
  86. StartConversation(conversation, NPC, Spawn, "He used to gather my ingredients at Thundermist Valley's cove. Last I saw him, he was babbling about singing. I suspect there's a concentration of sirens out there that might have a hand in hoarding not only my ingredients but my suppliers as well. They might have some kind of underwater gathering place near the shore.")
  87. end
  88. function Option6(NPC, Spawn)
  89. SetStepComplete(Spawn, GranvillesRestaurantAntonica, 6)
  90. end