BlertonBlumble.lua 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. --[[
  2. Script Name : SpawnScripts/ThunderingSteppes/BlertonBlumble.lua
  3. Script Author : Jabantiz
  4. Script Date : 2014.07.07 09:07:30
  5. Script Purpose :
  6. :
  7. --]]
  8. local WatchYourStepInTheTSPartI = 99
  9. local WatchYourStepInTheTSPartIV = 102
  10. local BlumbleBlunder = 103
  11. function spawn(NPC)
  12. end
  13. function respawn(NPC)
  14. spawn(NPC)
  15. end
  16. function InRange(NPC, Spawn)
  17. end
  18. function LeaveRange(NPC, Spawn)
  19. end
  20. function hailed(NPC, Spawn)
  21. FaceTarget(NPC, Spawn)
  22. conversation = CreateConversation()
  23. if not HasQuest(Spawn, WatchYourStepInTheTSPartI) and not HasCompletedQuest(Spawn, WatchYourStepInTheTSPartI) then
  24. PlayFlavor(NPC, "", "Oh, hey. Uh, could you maybe just run along and go bother someone else? Thanks a bunch...", "", 1689589577, 4560189, Spawn)
  25. elseif HasQuest(Spawn, WatchYourStepInTheTSPartI) and GetQuestStep(Spawn, WatchYourStepInTheTSPartI) == 1 then
  26. -- On WatchYourStepInTheTSPartI
  27. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_1_1026.mp3", "", "", 0, 0, Spawn)
  28. AddConversationOption(conversation, "Yeah, whatever. I have a letter for you.", "dlg_0_1")
  29. AddConversationOption(conversation, "I think I'll be going now.")
  30. StartConversation(conversation, NPC, Spawn, "Oh, hey. Uh, could you maybe just run along and go bother someone else? Thanks a bunch...")
  31. elseif HasQuest(Spawn, BlumbleBlunder) and GetQuestStep(Spawn, BlumbleBlunder) ~= 2 then
  32. PlayFlavor(NPC, "", "Look, I'm not giving you anything until you find Grandpa Blumble. He's probably off searching for pirates again. We've never found out why he does it, but he usually ends up on the beach north of here.", "", 1689589577, 4560189, Spawn)
  33. elseif HasQuest(Spawn, BlumbleBlunder) and GetQuestStep(Spawn, BlumbleBlunder) == 2 then
  34. -- Turn in BlumbleBlunder
  35. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_3_1026.mp3", "", "", 0, 0, Spawn)
  36. AddConversationOption(conversation, "I've found Grandpa Blumble.", "dlg_1_1")
  37. AddConversationOption(conversation, "I'm still looking.")
  38. StartConversation(conversation, NPC, Spawn, "Hello again. How goes the search?")
  39. elseif not HasQuest(Spawn, WatchYourStepInTheTSPartIV) and not HasCompletedQuest(Spawn, WatchYourStepInTheTSPartIV) and HasCompletedQuest(Spawn, BlumbleBlunder) then
  40. PlayFlavor(NPC, "", "Hello! Thanks again for finding Grandpa Blumble. Hmm, I wonder if I could get Matsy to tell 'Foot Breath' I didn't mean it...", "", 1689589577, 4560189, Spawn)
  41. elseif HasQuest(Spawn, WatchYourStepInTheTSPartIV) or HasCompletedQuest(Spawn, WatchYourStepInTheTSPartIV) then
  42. PlayFlavor(NPC, "", "Gosh, I'm sure glad you stopped working for Jacques. Now that he has someone else working for him the mail comes much faster. You were so slow!", "", 1689589577, 4560189, Spawn)
  43. end
  44. end
  45. function dlg_0_1(NPC, Spawn)
  46. FaceTarget(NPC, Spawn)
  47. conversation = CreateConversation()
  48. AddConversationOption(conversation, "What?", "dlg_0_2")
  49. AddConversationOption(conversation, "Foot breath? I don't think I want to hear any more of this...")
  50. StartConversation(conversation, NPC, Spawn, "A letter from Matsy? Uh oh, here we go again. Well, I'd guess you won't go bury it somewhere under a rock for me, so I suppose you'd better hand it over. I wonder what hideous banshee she's trying to set me up with now... The last one had a face like a minotaur with a skin condition and her breath smelled like feet! Let's see here...hah, she's given up on that at least. Eww, well that does explain her breath. That's just disgusting. Oh no, not again!")
  51. end
  52. function dlg_0_2(NPC, Spawn)
  53. FaceTarget(NPC, Spawn)
  54. conversation = CreateConversation()
  55. AddConversationOption(conversation, "Sure.", "dlg_0_3")
  56. AddConversationOption(conversation, "I think I'd rather not.")
  57. StartConversation(conversation, NPC, Spawn, "It looks like old Grandpa Blumble has gotten lost again. Crazy old fool! I don't want to go off searching for him now. Hey, you look like an adventurous sort... Do you think you could find him for me?")
  58. end
  59. function dlg_0_3(NPC, Spawn)
  60. OfferQuest(NPC, Spawn, BlumbleBlunder)
  61. end
  62. function dlg_1_1(NPC, Spawn)
  63. SetStepComplete(Spawn, BlumbleBlunder, 2)
  64. SetStepComplete(Spawn, WatchYourStepInTheTSPartI, 2)
  65. FaceTarget(NPC, Spawn)
  66. conversation = CreateConversation()
  67. AddConversationOption(conversation, "Sure thing.")
  68. StartConversation(conversation, NPC, Spawn, "Thank you so much for finding old Grandpa Blumble. I was beginning to worry. Hah! He really did find pirates? Wow, maybe he isn't quite as crazy as we thought... No, nevermind. There was still that incident with the badgers. He's a loony alright. Please take this reply for Matsy back to Jacques for me.")
  69. end