GrandpaBlumble.lua 3.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. --[[
  2. Script Name : SpawnScripts/Blumbles/GrandpaBlumble.lua
  3. Script Author : Jabantiz
  4. Script Date : 2014.07.07 11:07:58
  5. Script Purpose : Grandpa Blumble (4490008)
  6. :
  7. --]]
  8. local SearchForGrandmaBlumble = 104
  9. function spawn(NPC)
  10. end
  11. function respawn(NPC)
  12. spawn(NPC)
  13. end
  14. function hailed(NPC, Spawn)
  15. FaceTarget(NPC, Spawn)
  16. conversation = CreateConversation()
  17. if HasQuest(Spawn, SearchForGrandmaBlumble) then
  18. PlayFlavor(NPC, "", "So did you find Grandma yet?", "", 1689589577, 4560189, Spawn)
  19. else
  20. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_1_1026.mp3", "", "", 0, 0, Spawn)
  21. AddConversationOption(conversation, "Are you Grandpa Blumble?", "dlg_0_1")
  22. StartConversation(conversation, NPC, Spawn, "Why, hello there! Found the hole I dug, did ya? You see, I had this map, and it said there was treasure here. I have yet to see any, though.")
  23. end
  24. end
  25. -- All the below dialog was taken from a text log
  26. function dlg_0_1(NPC, Spawn)
  27. FaceTarget(NPC, Spawn)
  28. conversation = CreateConversation()
  29. AddConversationOption(conversation, "Ok, so what happened to Grandma?", "dlg_0_2")
  30. StartConversation(conversation, NPC, Spawn, "Yes yes, you haven't seen Grandma around have you? I figured she always liked shiny things and I would find her with the pirate treasure, but I guess not.")
  31. end
  32. function dlg_0_2(NPC, Spawn)
  33. FaceTarget(NPC, Spawn)
  34. conversation = CreateConversation()
  35. AddConversationOption(conversation, "Go on.", "dlg_0_3")
  36. StartConversation(conversation, NPC, Spawn, "Oh, well, you see we set out on a grand fishing adventure, I tell ya. We decided to fish up one of those giant fish near the dock in Nektulos, so we got in our boat, the one I made, and set sail for Nektulos.")
  37. end
  38. function dlg_0_3(NPC, Spawn)
  39. FaceTarget(NPC, Spawn)
  40. conversation = CreateConversation()
  41. AddConversationOption(conversation, "Wow, that's amazing! What happened next?", "dlg_0_4")
  42. StartConversation(conversation, NPC, Spawn, "Well Ol'Grandma there, she brought along... I would say about half a dozen pies, hot from the oven, she did. Using her skills, she even kept them warm as we sailed across the sea. But it seems that the smell drifted out to the nose of a great pirate captain and he sailed his ship towards us.")
  43. end
  44. function dlg_0_4(NPC, Spawn)
  45. FaceTarget(NPC, Spawn)
  46. conversation = CreateConversation()
  47. AddConversationOption(conversation, "What happened after that?", "dlg_0_5")
  48. StartConversation(conversation, NPC, Spawn, "To be honest, I finally got a hook up on the biggest fish you ever did see... right as we saw the pirate ship coming through the fog. I guess the sudden jerk from the fish knocked the pies right out of the boat. Then, the pirate ship crashed right smack into us.")
  49. end
  50. function dlg_0_5(NPC, Spawn)
  51. FaceTarget(NPC, Spawn)
  52. conversation = CreateConversation()
  53. AddConversationOption(conversation, "What a shame.", "dlg_0_6")
  54. StartConversation(conversation, NPC, Spawn, "Well that's about it. I washed up on shore, searched for Grandma, and after a few days of searching I decided to head home, because she would never leave her oven for that long. I hoped she would be back in the Baubbleshire, but sadly, she wasn't. ")
  55. end
  56. function dlg_0_6(NPC, Spawn)
  57. FaceTarget(NPC, Spawn)
  58. conversation = CreateConversation()
  59. AddConversationOption(conversation, "Okay, thanks.", "OfferSearchForGrandma")
  60. StartConversation(conversation, NPC, Spawn, "Well I got to thinking, and a pirate would have picked up a cute halfling like her for sure. So if she ended up becoming a pirate, she would be with the treasure. So that's why I am out hunting down pirate treasure, you see. Do you think you could help me find Grandma? You can keep any of the treasure you find, just let one of the family know as soon as you find her.")
  61. end
  62. function OfferSearchForGrandma(NPC, Spawn)
  63. OfferQuest(NPC, Spawn, SearchForGrandmaBlumble)
  64. end