BrutemasterTarden.lua 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. --[[
  2. Script Name : SpawnScripts/Sprawl/BrutemasterTarden.lua
  3. Script Purpose : Brutemaster Tarden <Dreadnaught>
  4. Script Author : Scatman
  5. Script Date : 2008.09.29
  6. Script Notes :
  7. --]]
  8. local QUEST_2_FROM_KURDEK = 254
  9. function spawn(NPC)
  10. SetPlayerProximityFunction(NPC, 10, "InRange")
  11. end
  12. function respawn(NPC)
  13. spawn(NPC)
  14. end
  15. function InRange(NPC, Spawn)
  16. local choice = math.random(1, 3)
  17. if choice == 1 then
  18. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/brutemaster_tarden/fprt_adv03_sprawl/quest/quest_brutemaster_tarden_callout_1277cb68.mp3", "Don't forget that you all work for me!", "threaten", 938386903, 4034228899, Spawn)
  19. elseif choice == 2 then
  20. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/brutemaster_tarden/fprt_adv03_sprawl/quest/quest_brutemaster_tarden_callout_372b3277.mp3", "The Giantslayers are the toughest gang around!", "thumbsup", 3470522830, 1311148717, Spawn)
  21. elseif choice == 3 then
  22. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/brutemaster_tarden/fprt_adv03_sprawl/quest/quest_brutemaster_tarden_callout_d6e87a9e.mp3", "Remember, I'm the boss around here!", "threaten", 3904448873, 572831666, Spawn)
  23. end
  24. end
  25. function hailed(NPC, Spawn)
  26. FaceTarget(NPC, Spawn)
  27. conversation = CreateConversation()
  28. if HasCompletedQuest(Spawn, QUEST_2_FROM_KURDEK) or (HasQuest(Spawn, QUEST_2_FROM_KURDEK) and GetQuestStep(Spawn, QUEST_2_FROM_KURDEK) > 1) then
  29. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/brutemaster_tarden/fprt_adv03_sprawl/quests/brutemaster_tarden010.mp3", "", "", 47575538, 2815062318, Spawn)
  30. AddConversationOption(conversation, "I better, or else there will be another beating coming your way.")
  31. StartConversation(conversation, NPC, Spawn, "Hey there, friend! Don't worry, the Giantslayers are gonna make you proud! You'll see!")
  32. else
  33. if HasQuest(Spawn, QUEST_2_FROM_KURDEK) and GetQuestStep(Spawn, QUEST_2_FROM_KURDEK) == 1 then
  34. AddConversationOption(conversation, "Listen here, Tarden. I'm with the Dreadnaughts, and we are none too pleased with the pathetic job you're doing!", "dlg_26_1")
  35. end
  36. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/brutemaster_tarden/fprt_adv03_sprawl/quests/brutemaster_tarden001.mp3", "", "", 3342147230, 575383753, Spawn)
  37. AddConversationOption(conversation, "Fine, I'll leave you alone.")
  38. StartConversation(conversation, NPC, Spawn, "Don't bother me! I have important work to do!")
  39. end
  40. end
  41. function dlg_26_1(NPC, Spawn)
  42. FaceTarget(NPC, Spawn)
  43. conversation = CreateConversation()
  44. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/brutemaster_tarden/fprt_adv03_sprawl/quests/brutemaster_tarden002.mp3", "", "", 3459020028, 2777845153, Spawn)
  45. AddConversationOption(conversation, "You're lazy and your thugs do sloppy work. And yes, I am a Dreadnaught.", "dlg_26_2")
  46. AddConversationOption(conversation, "I don't have time for your excuses.")
  47. StartConversation(conversation, NPC, Spawn, "Pathetic? How dare you speak to me that way! I lead the Giantslayers, the most powerful gang in Freeport! I know the Dreadnaughts, and you are no Dreadnaught.")
  48. end
  49. function dlg_26_2(NPC, Spawn)
  50. FaceTarget(NPC, Spawn)
  51. conversation = CreateConversation()
  52. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/brutemaster_tarden/fprt_adv03_sprawl/quests/brutemaster_tarden003.mp3", "", "", 2261902331, 3878598451, Spawn)
  53. AddConversationOption(conversation, "As a matter of fact, here's some trouble for you!", "dlg_26_3")
  54. AddConversationOption(conversation, "Fine, I'll go.")
  55. StartConversation(conversation, NPC, Spawn, "Lazy? Sloppy? Nobody talks to me that way! You better move along, unless you're ready for a whole lot of trouble!")
  56. end
  57. function dlg_26_3(NPC, Spawn)
  58. SpawnSet(NPC, "visual_state", 11463) -- duck
  59. SpawnSet(Spawn, "visual_state", 10783) -- attack (punch)
  60. AddTimer(NPC, 2000, "ResetVisualState", 1, NPC)
  61. AddTimer(NPC, 2000, "ResetVisualState", 1, Spawn)
  62. FaceTarget(NPC, Spawn)
  63. conversation = CreateConversation()
  64. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/brutemaster_tarden/fprt_adv03_sprawl/quests/brutemaster_tarden004.mp3", "", "", 3349447803, 1486216725, Spawn)
  65. AddConversationOption(conversation, "Too bad! You won't be ready for this, either!", "dlg_26_4")
  66. StartConversation(conversation, NPC, Spawn, "OOOF! Hey, I wasn't ready!")
  67. end
  68. function dlg_26_4(NPC, Spawn)
  69. SpawnSet(NPC, "visual_state", 11767) -- knockback
  70. SpawnSet(Spawn, "visual_state", 11761) -- kick
  71. AddTimer(NPC, 2000, "ResetVisualState", 1, NPC)
  72. AddTimer(NPC, 2000, "ResetVisualState", 1, Spawn)
  73. FaceTarget(NPC, Spawn)
  74. conversation = CreateConversation()
  75. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/brutemaster_tarden/fprt_adv03_sprawl/quests/brutemaster_tarden005.mp3", "", "", 187758376, 1637440927, Spawn)
  76. AddConversationOption(conversation, "Tough luck, Tarden. Have some more!", "dlg_26_5")
  77. StartConversation(conversation, NPC, Spawn, "ARGH! No fair, gimme a chance to prepare!")
  78. end
  79. function dlg_26_5(NPC, Spawn)
  80. SpawnSet(NPC, "visual_state", 11256) -- cringe
  81. SpawnSet(Spawn, "visual_state", 10783) -- attack (punch)
  82. AddTimer(NPC, 2000, "ResetVisualState", 1, NPC)
  83. AddTimer(NPC, 2000, "ResetVisualState", 1, Spawn)
  84. FaceTarget(NPC, Spawn)
  85. conversation = CreateConversation()
  86. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/brutemaster_tarden/fprt_adv03_sprawl/quests/brutemaster_tarden006.mp3", "", "", 1054842300, 2763956088, Spawn)
  87. AddConversationOption(conversation, "Yeah, I really am. You want more proof?", "dlg_26_6")
  88. AddConversationOption(conversation, "I guess you've learned your lesson.")
  89. StartConversation(conversation, NPC, Spawn, "UGH! Okay, okay, I give up. So I guess you really are a Dreadnaught after all.")
  90. end
  91. function dlg_26_6(NPC, Spawn)
  92. --make npc flinch
  93. --make spawn act buff
  94. FaceTarget(NPC, Spawn)
  95. conversation = CreateConversation()
  96. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/brutemaster_tarden/fprt_adv03_sprawl/quests/brutemaster_tarden007.mp3", "", "", 3338897580, 3124247652, Spawn)
  97. AddConversationOption(conversation, "You better, or I'll have to pay you another visit.", "dlg_26_7")
  98. AddConversationOption(conversation, "Then I guess I can leave.")
  99. StartConversation(conversation, NPC, Spawn, "No! Uh, I mean I've seen enough, thanks. Okay, I admit I haven't worked as hard to train my Giantslayers as I probably should. I'll get to work on it right away.")
  100. end
  101. function dlg_26_7(NPC, Spawn)
  102. SetStepComplete(Spawn, QUEST_2_FROM_KURDEK, 1)
  103. FaceTarget(NPC, Spawn)
  104. conversation = CreateConversation()
  105. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/brutemaster_tarden/fprt_adv03_sprawl/quests/brutemaster_tarden008.mp3", "", "", 2489119910, 4279989097, Spawn)
  106. AddConversationOption(conversation, "Oh, and what was that you said about the Giantslayers being the toughest gang in Freeport?", "dlg_26_8")
  107. AddConversationOption(conversation, "We'll see.")
  108. StartConversation(conversation, NPC, Spawn, "No need for that, friend! Tell Enforcer Kurdek that I've turned over a new leaf. The Giantslayers are really gonna buckle down, I promise!")
  109. end
  110. function dlg_26_8(NPC, Spawn)
  111. FaceTarget(NPC, Spawn)
  112. conversation = CreateConversation()
  113. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/brutemaster_tarden/fprt_adv03_sprawl/quests/brutemaster_tarden009.mp3", "", "", 2146655303, 2356834417, Spawn)
  114. AddConversationOption(conversation, "That's more like it. I'll be keeping an eye on you, Tarden.")
  115. StartConversation(conversation, NPC, Spawn, "I meant next to the Dreadnaughts, of course! Everyone knows you guys are the toughest around.")
  116. end
  117. function ResetVisualState(ThisSpawn, Spawn)
  118. SpawnSet(Spawn, "visual_state", 0)
  119. end