9
3

JornSorefoot.lua 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  1. --[[
  2. Script Name : SpawnScripts/Oakmyst/JornSorefoot.lua
  3. Script Purpose : Jorn Sorefoot
  4. Script Author : John Adams/Scatman
  5. Script Date : 2009.05.03
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. local BARBARIAN = 0
  9. local QUEST_FROM_BURK = 66
  10. local QUEST_1 = 5220
  11. local QUEST_OAKMYST_LAST = 208
  12. function spawn(NPC)
  13. ProvidesQuest(NPC, QUEST_1)
  14. end
  15. function respawn(NPC)
  16. spawn(NPC)
  17. end
  18. function hailed(NPC, Spawn)
  19. FaceTarget(NPC, Spawn)
  20. conversation = CreateConversation()
  21. if HasQuest(Spawn, QUEST_FROM_BURK) then
  22. ThatLittle(NPC, Spawn, conversation)
  23. else
  24. if HasCompletedQuest(Spawn, QUEST_1) then
  25. if HasCompletedQuest(Spawn, QUEST_OAKMYST_LAST) then
  26. Say(NPC, "I hear you've built up quite a reputation. You have my sincere thanks.", Spawn)
  27. else
  28. Say(NPC, "Thanks again for your help. You have no idea how much I appreciate it.", Spawn)
  29. end
  30. elseif HasQuest(Spawn, QUEST_1) then
  31. OnQuest1(NPC, Spawn, conversation)
  32. else
  33. if GetRace(Spawn) == BARBARIAN then
  34. MightyTired(NPC, Spawn, conversation)
  35. else
  36. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/jorn_sorefoot/qey_adv01_oakmyst_revamp/qst_jorn_notonquest_df0ceb3e.mp3", "Gnomes... Bah! Who needs 'em?", "", 1750870039, 1562498784, Spawn)
  37. end
  38. end
  39. end
  40. end
  41. -----------------------------------------------------------------------------------------------------------------
  42. -- QUEST FROM GRAYSTONE
  43. -----------------------------------------------------------------------------------------------------------------
  44. function ThatLittle(NPC, Spawn, conversation)
  45. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/jorn_sorefoot/qey_adv01_oakmyst/quests/jorn/jorn_burk000.mp3", "", "", 1348812672, 1734083903, Spawn)
  46. AddConversationOption(conversation, "Burk Stoneshatter send me to see you.", "dlg_0_1")
  47. StartConversation(conversation, NPC, Spawn, "That little, blasted, jerk-faced liar!")
  48. end
  49. function dlg_0_1(NPC, Spawn)
  50. SetStepComplete(Spawn, QUEST_FROM_BURK, 1)
  51. FaceTarget(NPC, Spawn)
  52. conversation = CreateConversation()
  53. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/jorn_sorefoot/qey_adv01_oakmyst/quests/jorn/jorn_burk001.mp3", "", "", 2501778388, 330892647, Spawn)
  54. if not HasQuest(Spawn, QUEST_1) and not HasCompletedQuest(Spawn, QUEST_1) then
  55. AddConversationOption(conversation, "He said you might be able to use my help.", "YeahICanUseYourHelp")
  56. else
  57. AddConversationOption(conversation, "I'm not sure. I've already completed your one quest so you're not use to me.")
  58. end
  59. StartConversation(conversation, NPC, Spawn, "No, Burk isn't a liar. That gnome, though, he's got me steamed. Erm, sorry, why did Burk send you?")
  60. end
  61. ------------------------------------------------------------------------------------------------------------------
  62. -- QUEST 1
  63. ------------------------------------------------------------------------------------------------------------------
  64. function MightyTired(NPC, Spawn, conversation)
  65. AddConversationOption(conversation, "Why are you tired?", "BeenWorkingHard")
  66. StartConversation(conversation, NPC, Spawn, "I'm mighty tired right now, mighty indeed.")
  67. end
  68. function BeenWorkingHard(NPC, Spawn)
  69. FaceTarget(NPC, Spawn)
  70. conversation = CreateConversation()
  71. AddConversationOption(conversation, "Maybe I can help.", "YeahICanUseYourHelp")
  72. StartConversation(conversation, NPC, Spawn, "I've been working hard. Too hard for my own good, I'm a bit stubborn, ya know?")
  73. end
  74. function YeahICanUseYourHelp(NPC, Spawn)
  75. FaceTarget(NPC, Spawn)
  76. conversation = CreateConversation()
  77. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/jorn_sorefoot/qey_adv01_oakmyst/quests/jorn/jorn002.mp3", "", "", 1939299225, 497932785, Spawn)
  78. AddConversationOption(conversation, "That is pretty drunk.", "dlg_0_3")
  79. StartConversation(conversation, NPC, Spawn, "Yeah, yeah I can use your help. There's a gnome somewhere out there in the forest. His name is Fluwkowir Haggleton, at least that's what he told me his name was. We were playing cards--high stakes, ya know--and I caught him cheating. I was gonna smash his little face in right then and there, but I was too drunk to fight.")
  80. end
  81. function dlg_0_3(NPC, Spawn)
  82. FaceTarget(NPC, Spawn)
  83. conversation = CreateConversation()
  84. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/jorn_sorefoot/qey_adv01_oakmyst/quests/jorn/jorn003.mp3", "", "", 2714635802, 3698549932, Spawn)
  85. AddConversationOption(conversation, "So what do you need me to do?", "dlg_0_4")
  86. StartConversation(conversation, NPC, Spawn, "I know! So I find him the next day, and he musta seen the look in my eyes, because he just stopped in mid-conversation and took off running. I chased him here, but he got away from me. I've got guards on the lookout for him, but running all around the forest has me sweatin' heavy.")
  87. end
  88. function dlg_0_4(NPC, Spawn)
  89. FaceTarget(NPC, Spawn)
  90. conversation = CreateConversation()
  91. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/jorn_sorefoot/qey_adv01_oakmyst/quests/jorn/jorn004.mp3", "", "", 653807965, 2666347981, Spawn)
  92. AddConversationOption(conversation, "Sure, I can look for him.", "dlg_0_5")
  93. StartConversation(conversation, NPC, Spawn, "I've got guards--friends of mine--watching the gates and the docks. They say they can't detain him without me bringing up something formal, but I don't want that. Instead, they'll just tell me if he passes through. It'll take forever to wait him out, so I've been looking for him in the forest, but I'm tired and need my rest. If you could look for him it'd be very helpful.")
  94. end
  95. function dlg_0_5(NPC, Spawn)
  96. FaceTarget(NPC, Spawn)
  97. conversation = CreateConversation()
  98. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/jorn_sorefoot/qey_adv01_oakmyst/quests/jorn/jorn005.mp3", "", "", 908304310, 3978784738, Spawn)
  99. AddConversationOption(conversation, "I'll try to find him.", "OfferQuest1")
  100. StartConversation(conversation, NPC, Spawn, "Great! I just need to get back the money he stole from me. Sure, my fists are itching for some revenge, but right now the money is the important thing. I last saw him heading to the docks, to the west. He won't be able to get out directly, but he may be looking for a way to sneak out.")
  101. end
  102. function OfferQuest1(NPC, Spawn)
  103. FaceTarget(NPC, Spawn)
  104. OfferQuest(NPC, Spawn, QUEST_1)
  105. end
  106. function OnQuest1(NPC, Spawn, conversation)
  107. if GetQuestStep(Spawn, QUEST_1) == 1 then
  108. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/jorn_sorefoot/qey_adv01_oakmyst/quests/jorn/jorn006.mp3", "", "", 1189036367, 1052258998, Spawn)
  109. AddConversationOption(conversation, "No, not yet.")
  110. StartConversation(conversation, NPC, Spawn, "Have you found my money yet?")
  111. elseif GetQuestStep(Spawn, QUEST_1) == 2 then
  112. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/jorn_sorefoot/qey_adv01_oakmyst/quests/jorn/jorn006.mp3", "", "", 1189036367, 1052258998, Spawn)
  113. AddConversationOption(conversation, "The gnome attacked me, I had to kill him. Here is your money.", "dlg_2_1")
  114. StartConversation(conversation, NPC, Spawn, "Have you found my money yet?")
  115. else
  116. Say(NPC, "You Should take that book to Lieutenant Charlin before someone thinks it belongs to you.", Spawn)
  117. end
  118. end
  119. function dlg_2_1(NPC, Spawn)
  120. FaceTarget(NPC, Spawn)
  121. conversation = CreateConversation()
  122. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/jorn_sorefoot/qey_adv01_oakmyst/quests/jorn/jorn007.mp3", "", "", 1565958300, 3393057370, Spawn)
  123. AddConversationOption(conversation, "You're welcome.", "dlg_2_2")
  124. StartConversation(conversation, NPC, Spawn, "Justice is a harsh mistress. Don't fret, he got what he deserved. Thank you, " .. GetName(Spawn) .. ".")
  125. end
  126. function dlg_2_2(NPC, Spawn)
  127. SetStepComplete(Spawn, QUEST_1, 2)
  128. FaceTarget(NPC, Spawn)
  129. conversation = CreateConversation()
  130. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/jorn_sorefoot/qey_adv01_oakmyst/quests/jorn/jorn008.mp3", "", "", 964400543, 602275594, Spawn)
  131. AddConversationOption(conversation, "All right, I'll speak with him.")
  132. StartConversation(conversation, NPC, Spawn, "I- hm, this contains more than just money. This book is written in Lucanic. You know, you'd better take this to Lieutenant Charlin. He'll know what to do about this book, it looks like our gnome friend may have been a Freeportian. I don't want anything to do with any of this, I'm just glad I got my money. Thanks.")
  133. end