9
3

RemmyTumbub.lua 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. --[[
  2. Script Name : SpawnScripts/ForestRuins/RemmyTumbub.lua
  3. Script Purpose : Remmy Tumbub
  4. Script Author : Scatman
  5. Script Date : 2009.09.27
  6. Script Notes :
  7. --]]
  8. local HALFLING = 7
  9. local HALFLING_MENTOR_QUEST_5 = 74
  10. local QUEST_1 = 1
  11. function hailed(NPC, Spawn)
  12. FaceTarget(NPC, Spawn)
  13. conversation = CreateConversation()
  14. if HasQuest(Spawn, HALFLING_MENTOR_QUEST_5) then
  15. AddConversationOption(conversation, "Indeed... Pie Man Sam.", "ItWasntMe")
  16. end
  17. if HasCompletedQuest(Spawn, QUEST_1) then
  18. elseif HasQuest(Spawn, QUEST_1) then
  19. else
  20. if GetRace(Spawn) == HALFLING and GetLevel(Spawn) >= 3 then
  21. HelloHello(NPC, Spawn, conversation)
  22. else
  23. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/remmy_tumbub/qey_adv02_ruins_revamp/qst_halfling_remmy_tumbub_notonquest_e37ef08f.mp3", "I rate pies in both scent and flavor. A pie with a delicious flavor can win over a lady's heart, but a pie with a delicious scent can lure even the most steadfast guard away from their post.", "", 4222932588, 1585778770)
  24. end
  25. end
  26. --[[if HasQuest(Spawn, 74) and GetQuestStep(Spawn, 74) == 1 then
  27. HelloHello(NPC, Spawn, conversation)
  28. else
  29. choice = math.random(1,2)
  30. if choice == 1 then
  31. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/remmy_tumbub/qey_adv02_ruins_revamp/qst_halfling_remmy_tumbub_notonquest_e37ef08f.mp3", "I rate pies in both scent and flavor. A pie with a delicious flavor can win over a lady's heart, but a pie with a delicious scent can lure even the most steadfast guard away from their post.", "", 4222932588, 1585778770)
  32. else
  33. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_3_1006.mp3", "", "", 0, 0)
  34. end
  35. AddConversationOption(conversation, "Why are you still hiding out here?", "dlg_4_1")
  36. StartConversation(conversation, NPC, Spawn, "Hey, thanks again for your help. I still won't be allowed back in the Baubbleshire, but I'm no longer a wanted criminal in all of Qeynos!")
  37. end--]]
  38. end
  39. function dlg_4_1(NPC, Spawn)
  40. FaceTarget(NPC, Spawn)
  41. conversation = CreateConversation()
  42. AddConversationOption(conversation, "You're hopeless.", "dlg_4_2")
  43. StartConversation(conversation, NPC, Spawn, "Shhh, keep your voice down! You know, I wonder if any of those crates in the guard shed have pies in them.")
  44. end
  45. -----------------------------------------------------------------------------------------
  46. -- QUEST FROM BAUBBLESHIRE
  47. -----------------------------------------------------------------------------------------
  48. function ItWasntMe(NPC, Spawn)
  49. FaceTarget(NPC, Spawn)
  50. conversation = CreateConversation()
  51. AddConversationOption(conversation, "Give it up. Whining won't save you. The only thing that can save you now is direct payment.", "OfCourseOfCourse")
  52. AddConversationOption(conversation, "Rondo was right, you fell for it big time.", "RondoWasRight")
  53. StartConversation(conversation, NPC, Spawn, "Oh no! It wasn't me! It's not me! I'm just a halflin' going for a walk. Oh no no no no no no! How did you find me? Listen, I didn't take the pies for myself, I had to feed a starvin' family in Antonica. They NEEDED me! Oh, oh, gosh, listen, I have the money, eh, just not on me, hehe. I'll get to the proper authorities, just don't, don't tell anyone!")
  54. end
  55. function OfCourseOfCourse(NPC, Spawn)
  56. FaceTarget(NPC, Spawn)
  57. conversation = CreateConversation()
  58. AddConversationOption(conversation, "Offering a bribe! That's another charge we can add to your file.", "ButYouJustSaid")
  59. AddConversationOption(conversation, "Rondo was right, you fell for it big time.", "RondoWasRight")
  60. StartConversation(conversation, NPC, Spawn, "Oh... of course, of course! How much do you want? I only have a few silver on me at the moment, less than that probably.")
  61. end
  62. function ButYouJustSaid(NPC, Spawn)
  63. FaceTarget(NPC, Spawn)
  64. conversation = CreateConversation()
  65. AddConversationOption(conversation, "You think a mere fine was all we had in store for Pie Man Sam? You're going to be working days and nights in each kitchen you stole from.", "CantWorkInKitchen")
  66. AddConversationOption(conversation, "Rondo was right, you fell for it big time.", "RondoWasRight")
  67. StartConversation(conversation, NPC, Spawn, "But you just sai- Goodness, that wasn't a bribe! Hah hah. It was just uh, I thought that was my fine! I was offering to pay my fine! How much is my fine?")
  68. end
  69. function CantWorkInKitchen(NPC, Spawn)
  70. FaceTarget(NPC, Spawn)
  71. conversation = CreateConversation()
  72. AddConversationOption(conversation, "Well if you can't work, I suppose you could always avoid the charges.", "HowDoIDoThat")
  73. AddConversationOption(conversation, "Rondo was right, you fell for it big time.", "RondoWasRight")
  74. StartConversation(conversation, NPC, Spawn, "Work? I can't work in a kitchen. The heat and the spices'll get to me. I'm allergic to herbs, I'll probably die! And me knees, sometimes me knees go out without warning! Terrible, terrible condition, you see. Me father had it too, runs in the blood I guess.")
  75. end
  76. function HowDoIDoThat(NPC, Spawn)
  77. FaceTarget(NPC, Spawn)
  78. conversation = CreateConversation()
  79. AddConversationOption(conversation, "My pockets could use a little lining, if you know what I mean.", "ThatsWhatGotMeIntoTrouble")
  80. StartConversation(conversation, NPC, Spawn, "How? H-how do I do that?")
  81. end
  82. function ThatsWhatGotMeIntoTrouble(NPC, Spawn)
  83. FaceTarget(NPC, Spawn)
  84. conversation = CreateConversation()
  85. AddConversationOption(conversation, "Rondo was right, you fell for it big time.", "RondoWasRight")
  86. StartConversation(conversation, NPC, Spawn, "Of course! Certainly! Wait- WAIT! That's what got me into trouble last time. Oh, this is horrible. I wish someone would just take me away. I wish someone would just come and get me and take me away!")
  87. end
  88. function RondoWasRight(NPC, Spawn)
  89. SetStepComplete(Spawn, HALFLING_MENTOR_QUEST_5, 1)
  90. FaceTarget(NPC, Spawn)
  91. conversation = CreateConversation()
  92. AddConversationOption(conversation, "What's that?", "SomeoneGotIntoShed")
  93. StartConversation(conversation, NPC, Spawn, "Rondo? That scoundrel! Gah, he sure knows how to get to me. You had me petrified there. I've been avoiding the guard. That is actually why I am out here. Can you believe they are blaming me for something I didn't even do?")
  94. end
  95. -----------------------------------------------------------------------------------------------------------------------
  96. -- QUEST 1
  97. -----------------------------------------------------------------------------------------------------------------------
  98. function HelloHello(NPC, Spawn, conversation)
  99. AddConversationOption(conversation, "Is something wrong?", "IsSomethingWrong")
  100. StartConversation(conversation, NPC, Spawn, "Hello, hello! Nice day. Nice day to be out in the woods. That's why I'm out here, because it's a nice day!")
  101. end
  102. function IsSomethingWrong(NPC, Spawn)
  103. FaceTarget(NPC, Spawn)
  104. conversation = CreateConversation()
  105. AddConversationOption(conversation, "What are they blamming you for?", "SomeoneGotIntoShed")
  106. StartConversation(conversation, NPC, Spawn, "Of course! These guards are after me. Blamming me for something I didn't even do, can you believe that?")
  107. end
  108. function SomeoneGotIntoShed(NPC, Spawn)
  109. end