9
3

RemmyTumbub.lua 9.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186
  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 = 327
  10. local QUEST_1 = 533
  11. function spawn(NPC)
  12. ProvidesQuest(NPC,QUEST_1)
  13. end
  14. function hailed(NPC, Spawn)
  15. FaceTarget(NPC, Spawn)
  16. conversation = CreateConversation()
  17. if HasQuest(Spawn, HALFLING_MENTOR_QUEST_5) then
  18. AddConversationOption(conversation, "Indeed... Pie Man Sam.", "ItWasntMe")
  19. end
  20. if HasCompletedQuest(Spawn, QUEST_1) then
  21. FaceTarget(NPC, Spawn)
  22. conversation = CreateConversation()
  23. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/remmy_tumbub/qey_adv02_ruins/quests/remmy/remmy005.mp3", "", "", 487764865, 1456843536, Spawn)
  24. AddConversationOption(conversation, "Why are you still hiding out here?", "dlg_4_1")
  25. 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!")
  26. elseif HasQuest(Spawn, QUEST_1) then
  27. else
  28. if GetRace(Spawn) == HALFLING and GetLevel(Spawn) >= 3 then
  29. HelloHello(NPC, Spawn, conversation)
  30. else
  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. end
  33. end
  34. --[[if HasQuest(Spawn, 74) and GetQuestStep(Spawn, 74) == 1 then
  35. HelloHello(NPC, Spawn, conversation)
  36. else
  37. choice = math.random(1,2)
  38. if choice == 1 then
  39. 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)
  40. else
  41. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_3_1006.mp3", "", "", 0, 0)
  42. end
  43. AddConversationOption(conversation, "Why are you still hiding out here?", "dlg_4_1")
  44. 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!")
  45. end--]]
  46. end
  47. function dlg_4_1(NPC, Spawn)
  48. FaceTarget(NPC, Spawn)
  49. conversation = CreateConversation()
  50. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/remmy_tumbub/qey_adv02_ruins/quests/remmy/remmy006.mp3", "", "", 1105359147, 1841584345, Spawn)
  51. AddConversationOption(conversation, "You're hopeless.", "dlg_4_2")
  52. 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.")
  53. end
  54. -----------------------------------------------------------------------------------------
  55. -- QUEST FROM BAUBBLESHIRE
  56. -----------------------------------------------------------------------------------------
  57. function ItWasntMe(NPC, Spawn)
  58. FaceTarget(NPC, Spawn)
  59. conversation = CreateConversation()
  60. AddConversationOption(conversation, "Give it up. Whining won't save you. The only thing that can save you now is direct payment.", "OfCourseOfCourse")
  61. AddConversationOption(conversation, "Rondo was right, you fell for it big time.", "RondoWasRight")
  62. 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!")
  63. end
  64. function OfCourseOfCourse(NPC, Spawn)
  65. FaceTarget(NPC, Spawn)
  66. conversation = CreateConversation()
  67. AddConversationOption(conversation, "Offering a bribe! That's another charge we can add to your file.", "ButYouJustSaid")
  68. AddConversationOption(conversation, "Rondo was right, you fell for it big time.", "RondoWasRight")
  69. 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.")
  70. end
  71. function ButYouJustSaid(NPC, Spawn)
  72. FaceTarget(NPC, Spawn)
  73. conversation = CreateConversation()
  74. 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")
  75. AddConversationOption(conversation, "Rondo was right, you fell for it big time.", "RondoWasRight")
  76. 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?")
  77. end
  78. function CantWorkInKitchen(NPC, Spawn)
  79. FaceTarget(NPC, Spawn)
  80. conversation = CreateConversation()
  81. AddConversationOption(conversation, "Well if you can't work, I suppose you could always avoid the charges.", "HowDoIDoThat")
  82. AddConversationOption(conversation, "Rondo was right, you fell for it big time.", "RondoWasRight")
  83. 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.")
  84. end
  85. function HowDoIDoThat(NPC, Spawn)
  86. FaceTarget(NPC, Spawn)
  87. conversation = CreateConversation()
  88. AddConversationOption(conversation, "My pockets could use a little lining, if you know what I mean.", "ThatsWhatGotMeIntoTrouble")
  89. StartConversation(conversation, NPC, Spawn, "How? H-how do I do that?")
  90. end
  91. function ThatsWhatGotMeIntoTrouble(NPC, Spawn)
  92. FaceTarget(NPC, Spawn)
  93. conversation = CreateConversation()
  94. AddConversationOption(conversation, "Rondo was right, you fell for it big time.", "RondoWasRight")
  95. 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!")
  96. end
  97. function RondoWasRight(NPC, Spawn)
  98. SetStepComplete(Spawn, HALFLING_MENTOR_QUEST_5, 1)
  99. FaceTarget(NPC, Spawn)
  100. conversation = CreateConversation()
  101. AddConversationOption(conversation, "What's that?", "SomeoneGotIntoShed")
  102. 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?")
  103. end
  104. -----------------------------------------------------------------------------------------------------------------------
  105. -- QUEST 1
  106. -----------------------------------------------------------------------------------------------------------------------
  107. function HelloHello(NPC, Spawn, conversation)
  108. AddConversationOption(conversation, "Is something wrong?", "IsSomethingWrong")
  109. 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!")
  110. end
  111. function IsSomethingWrong(NPC, Spawn)
  112. FaceTarget(NPC, Spawn)
  113. conversation = CreateConversation()
  114. AddConversationOption(conversation, "What are they blamming you for?", "SomeoneGotIntoShed")
  115. StartConversation(conversation, NPC, Spawn, "Of course! These guards are after me. Blamming me for something I didn't even do, can you believe that?")
  116. end
  117. function SomeoneGotIntoShed(NPC, Spawn)
  118. FaceTarget(NPC, Spawn)
  119. local conversation = CreateConversation()
  120. AddConversationOption(conversation, "Why don't you tell them that?", "Option8")
  121. StartConversation(conversation, NPC, Spawn, "Someone got into their food shed over there. I mean, sure, I do have a reputation, but that doesn't make it okay to blame me for every little thing that happens, does it?")
  122. end
  123. function Option8(NPC, Spawn)
  124. FaceTarget(NPC, Spawn)
  125. local conversation = CreateConversation()
  126. AddConversationOption(conversation, "Sure, I can help.", "Option9")
  127. StartConversation(conversation, NPC, Spawn, "Whenever I get close they yell at me and chase me off. Stealing--food of all things--isn't a serious offense normally. I guess they make an exception for me. But you, you can clear my honor! Will you help me?")
  128. end
  129. function Option9(NPC, Spawn)
  130. FaceTarget(NPC, Spawn)
  131. local conversation = CreateConversation()
  132. AddConversationOption(conversation, "I'll go check.", "Option10")
  133. StartConversation(conversation, NPC, Spawn, "That's right! We stick together! Head over to that shed and search it for clues. If you find anything take it to Lieutenant Germain and you can clear my name. It'll be wonderful!")
  134. end
  135. function Option10(NPC, Spawn)
  136. FaceTarget(NPC, Spawn)
  137. local conversation = CreateConversation()
  138. AddConversationOption(conversation, "... all right, Remmy.","StartQuest")
  139. StartConversation(conversation, NPC, Spawn, "And if you can't find anything useful to prove my innocence then see if you can find any pies!")
  140. end
  141. function StartQuest (NPC,Spawn)
  142. OfferQuest(NPC,Spawn, 533)
  143. end