9
3

ThyrStormhammer.lua 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. --[[
  2. Script Name : SpawnScripts/Everfrost/ThyrStormhammer.lua
  3. Script Author : Flunklesnarkin
  4. Script Date : 2016.01.13 02:01:44
  5. Script Purpose :
  6. :
  7. --]]
  8. local SuppliesForThePioneers = 171
  9. local ScoutingTheJaggedPlains = 172
  10. function spawn(NPC)
  11. ProvidesQuest(NPC, ScoutingTheJaggedPlains)
  12. end
  13. function hailed(NPC, Spawn)
  14. FaceTarget(NPC, Spawn)
  15. if GetLevel(Spawn) < 44 then
  16. if HasQuest(Spawn, SuppliesForThePioneers) == true then
  17. Under_Level_Quest1Chat_1(NPC, Spawn)
  18. else
  19. UnderLevel_Chat(NPC, Spawn)
  20. end
  21. else
  22. if HasQuest(Spawn, SuppliesForThePioneers) == true then
  23. Quest1Chat_1(NPC, Spawn)
  24. elseif HasCompletedQuest(Spawn, SuppliesForThePioneers) == true and HasQuest(Spawn, ScoutingTheJaggedPlains) == false and HasCompletedQuest(Spawn, ScoutingTheJaggedPlains) == false then
  25. Quest2Chat_1(NPC, Spawn)
  26. elseif HasQuest(Spawn, ScoutingTheJaggedPlains) == true and GetQuestStep(Spawn, 172) == 1 then
  27. Quest2Chat_4(NPC, Spawn)
  28. end
  29. end
  30. end
  31. function respawn(NPC)
  32. end
  33. function UnderLevel_Chat(NPC, Spawn)
  34. local Chat_Randomizer = math.random(1,8)
  35. if Chat_Randomizer == 1 then
  36. Say(NPC, "Well it's not easy being the best looking guy in town, but I think I pull it off well.")
  37. elseif Chat_Randomizer == 2 then
  38. Say(NPC, "Odd things are going on. I'd keep an eye out if I were you.")
  39. elseif Chat_Randomizer == 3 then
  40. Say(NPC, "Darn. I chugged that barrel much slower than I chugged the last three.")
  41. elseif Chat_Randomizer == 4 then
  42. Say(NPC, "Strength isn't just the size of your muscles... It's, well... Yeah it is.")
  43. elseif Chat_Randomizer == 5 then
  44. Say(NPC, "Some of my friends tell me I'm weak. I think its true. I've only been able to lift two goblins and an orc lately.")
  45. elseif Chat_Randomizer == 6 then
  46. Say(NPC, "I'm feeling stronger than usual today.")
  47. elseif Chat_Randomizer == 7 then
  48. Say(NPC, "Funny, the wound didn't smell like that yesterday.")
  49. elseif Chat_Randomizer == 8 then
  50. Say(NPC, "Funny, the wound didn't smell like that yesterday.")
  51. else
  52. Say(NPC, "Randomizer Error")
  53. end
  54. end
  55. function Under_Level_Quest1Chat_1(NPC, Spawn)
  56. FaceTarget(NPC, Spawn)
  57. conversation = CreateConversation()
  58. AddConversationOption(conversation, "Take these supplies off my hands. Brahnagan sent them for you.", "Under_Level_Quest1Chat_2")
  59. AddConversationOption(conversation, "No, I believe I can tough it out. I've tackled worse than this.")
  60. StartConversation(conversation, NPC, Spawn, "You're looking a bit uncomfortable, outsider. Is there something I can do to make you more comfortable?")
  61. end
  62. function Under_Level_Quest1Chat_2(NPC, Spawn)
  63. SetStepComplete(Spawn, SuppliesForThePioneers, 1)
  64. FaceTarget(NPC, Spawn)
  65. conversation = CreateConversation()
  66. AddConversationOption(conversation, "Yes, he had me clear out a number of sharks from the water around to make it safer for pioneers to pass through.", "Under_Level_Quest1Chat_3")
  67. StartConversation(conversation, NPC, Spawn, "Ahh, Brahnagan. He is always taking care of us...")
  68. end
  69. function Under_Level_Quest1Chat_3(NPC, Spawn)
  70. FaceTarget(NPC, Spawn)
  71. conversation = CreateConversation()
  72. AddConversationOption(conversation, "Tough enough for the job.")
  73. StartConversation(conversation, NPC, Spawn, "You must be a tough one then.")
  74. end
  75. function Quest1Chat_1(NPC, Spawn)
  76. FaceTarget(NPC, Spawn)
  77. conversation = CreateConversation()
  78. AddConversationOption(conversation, "Take these supplies off my hands. Brahnagan sent them for you.", "Quest1Chat_2")
  79. AddConversationOption(conversation, "No, I believe I can tough it out. I've tackled worse than this.", "Quest2Chat_1")
  80. StartConversation(conversation, NPC, Spawn, "You're looking a bit uncomfortable, outsider. Is there something I can do to make you more comfortable?")
  81. end
  82. function Quest1Chat_2(NPC, Spawn)
  83. SetStepComplete(Spawn, SuppliesForThePioneers, 1)
  84. FaceTarget(NPC, Spawn)
  85. conversation = CreateConversation()
  86. AddConversationOption(conversation, "Yes, he had me clear out a number of sharks from the water around to make it safer for pioneers to pass through.", "Quest1Chat_3")
  87. StartConversation(conversation, NPC, Spawn, "Ahh, Brahnagan. He is always taking care of us...")
  88. end
  89. function Quest1Chat_3(NPC, Spawn)
  90. FaceTarget(NPC, Spawn)
  91. conversation = CreateConversation()
  92. AddConversationOption(conversation, "Tough enough for the job.", "Quest2Chat_1")
  93. StartConversation(conversation, NPC, Spawn, "You must be a tough one then.")
  94. end
  95. function Quest2Chat_1(NPC, Spawn)
  96. FaceTarget(NPC, Spawn)
  97. conversation = CreateConversation()
  98. AddConversationOption(conversation, "Expedition?", "Quest2Chat_2")
  99. StartConversation(conversation, NPC, Spawn, "If you're so sure of your own skill, then you won't mind going on an expedition for me.")
  100. end
  101. function Quest2Chat_2(NPC, Spawn)
  102. FaceTarget(NPC, Spawn)
  103. conversation = CreateConversation()
  104. AddConversationOption(conversation, "Unless I come back saying it's completely uninhabitable.", "Quest2Chat_3")
  105. StartConversation(conversation, NPC, Spawn, "We call the valley that lies ahead the Jagged Plains. Most are convinced it is uninhabitable, but I'm not so sure. If you could scout it all out for me, and bring back your report of it, I might be able to make a case to push into it.")
  106. end
  107. function Quest2Chat_3(NPC, Spawn)
  108. FaceTarget(NPC, Spawn)
  109. conversation = CreateConversation()
  110. AddConversationOption(conversation, "Very well, I'll do it.", "Offer_Scouting_The_Jagged_Plains")
  111. AddConversationOption(conversation, "This sounds a bit tame for my skills. I'm going to seek out other work.")
  112. StartConversation(conversation, NPC, Spawn, "Yes, yes, but let's hope that's not the case.")
  113. end
  114. function Quest2Chat_4(NPC, Spawn)
  115. FaceTarget(NPC, Spawn)
  116. conversation = CreateConversation()
  117. AddConversationOption(conversation, "No, it's a very large place.")
  118. StartConversation(conversation, NPC, Spawn, "Well? Have you scoured it?")
  119. end
  120. function Offer_Scouting_The_Jagged_Plains(NPC, Spawn)
  121. OfferQuest(NPC, Spawn, ScoutingTheJaggedPlains)
  122. end