SergeantHaggus.lua 5.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. --[[
  2. Script Name : SpawnScripts/QueensColony/SergeantHaggus.lua
  3. Script Purpose : Sergeant Haggus <Qeynos Guard>
  4. Script Author : Scatman
  5. Script Date : 2008.09.20
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. Modified Data : 2020.04.04
  8. Modified by : premierio015
  9. Notes : Added animations
  10. --]]
  11. local APresenceOfEvil = 131
  12. function spawn(NPC)
  13. end
  14. function respawn(NPC)
  15. spawn(NPC)
  16. end
  17. function hailed(NPC, Spawn)
  18. FaceTarget(NPC, Spawn)
  19. conversation = CreateConversation()
  20. if HasQuest(Spawn, APresenceOfEvil) and GetQuestStep(Spawn, APresenceOfEvil) < 6 then
  21. if GetQuestStep(Spawn, APresenceOfEvil) == 1 then
  22. --on 1st part of quest
  23. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/sergeant_haggus/tutorial_island02_revamp/quests/citizenship/sergeanthaggus/sergeanthaggus001.mp3", "", "threaten", 706977451, 1189091137, Spawn)
  24. AddConversationOption(conversation, "Yes. He was wondering how our defenses are holding?", "WonderingHowDefenses")
  25. AddConversationOption(conversation, "I'll come back. It seems that you're busy.")
  26. StartConversation(conversation, NPC, Spawn, "Har! These scampering whelps will never break through! Oh, hello there. What's that, Murrar sent you?")
  27. elseif GetQuestStep(Spawn, APresenceOfEvil) == 2 then
  28. -- on 2nd part of quest
  29. AddConversationOption(conversation, "I will.")
  30. PlayAnimation(NPC, 20601)
  31. StartConversation(conversation, NPC, Spawn, "Har har! Don't give up yet, " .. GetName(Spawn) .. ". Slay some of those invaders. If you need some tips on combat, talk to Hayl McGuinness at the Training Grounds in the colony.")
  32. elseif GetQuestStep(Spawn, APresenceOfEvil) == 3 then
  33. --on 3rd part of quest
  34. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/sergeant_haggus/tutorial_island02_revamp/quests/citizenship/sergeanthaggus/sergeanthaggus005.mp3", "", "", 4260313183, 1230463125, Spawn)
  35. AddConversationOption(conversation, "I'm ready!", "ImReady")
  36. AddConversationOption(conversation, "Not yet.")
  37. StartConversation(conversation, NPC, Spawn, "By the hilt of the Claymore, you're a strong one! I could use your strength for another task.")
  38. elseif GetQuestStep(Spawn, APresenceOfEvil) == 4 then
  39. --on 4th part of quest
  40. AddConversationOption(conversation, "Very well.")
  41. StartConversation(conversation, NPC, Spawn, "Any news of the missing soldiers? Search Sunset Meadow for these soldiers and return to me with your findings.")
  42. elseif GetQuestStep(Spawn, APresenceOfEvil) == 5 then
  43. --on 5th part of quest
  44. SetStepComplete(Spawn, APresenceOfEvil, 5)
  45. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/sergeant_haggus/tutorial_island02_revamp/quests/citizenship/sergeanthaggus/sergeanthaggus009.mp3", "", "13063", 3590531004, 2647104527, Spawn)
  46. AddConversationOption(conversation, "Farewell to you.")
  47. StartConversation(conversation, NPC, Spawn, "Ah, they'll pay for this! You've done well, " .. GetName(Spawn) .. ". Sometime when you're not so busy, maybe you'd take a job with the Qeynos Guard and we can fight along side one another again. Take this information back to Murrar. Farewell.")
  48. end
  49. elseif HasCompletedQuest(Spawn, APresenceOfEvil) or (HasQuest(Spawn, APresenceOfEvil) and GetQuestStep(Spawn, APresenceOfEvil) == 6) then
  50. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/sergeant_haggus/tutorial_island02_revamp/quests/citizenship/sergeanthaggus/sergeanthaggus010.mp3", "", "salute", 3061438505, 1032934814, Spawn)
  51. AddConversationOption(conversation, "Thank you.")
  52. StartConversation(conversation, NPC, Spawn, "You've proven yourself to me, " .. GetName(Spawn) .. ". Consider yourself a friend to the Qeynos Guard.")
  53. else
  54. Say(NPC, "Ah you look strong. I'm certain we could use your help, go speak with Murrar. He's south of the tower that is just east of here.")
  55. end
  56. end
  57. function WonderingHowDefenses(NPC, Spawn)
  58. conversation = CreateConversation()
  59. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/sergeant_haggus/tutorial_island02_revamp/quests/citizenship/sergeanthaggus/sergeanthaggus002.mp3", "", "", 3601499241, 3746466672, Spawn)
  60. AddConversationOption(conversation, "Could you use some help?", "CouldYouUseHelp")
  61. AddConversationOption(conversation, "I'll take my leave.")
  62. StartConversation(conversation, NPC, Spawn, "While the goblins aren't very powerful, they're most definitely tenacious. It's almost as if they have no mind of their own and are throwing themselves at us like flies unto a swatter.")
  63. end
  64. function CouldYouUseHelp(NPC, Spawn)
  65. SetStepComplete(Spawn, APresenceOfEvil, 1)
  66. conversation = CreateConversation()
  67. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/sergeant_haggus/tutorial_island02_revamp/quests/citizenship/sergeanthaggus/sergeanthaggus003.mp3", "", "", 407810644, 1199559577, Spawn)
  68. AddConversationOption(conversation, "Will do!")
  69. StartConversation(conversation, NPC, Spawn, "Aye, you're a gusty one aren't you? I'll give you a chance to prove your strength. Fend off some of these invading Sapswill and we'll see how you fare.")
  70. end
  71. function ImReady(NPC, Spawn)
  72. SetStepComplete(Spawn, APresenceOfEvil, 3)
  73. conversation = CreateConversation()
  74. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/sergeant_haggus/tutorial_island02_revamp/quests/citizenship/sergeanthaggus/sergeanthaggus006.mp3", "", "", 2780322339, 3145013232, Spawn)
  75. AddConversationOption(conversation, "I will.")
  76. StartConversation(conversation, NPC, Spawn, "A platoon of my soldiers set out a while ago and hasn't returned. Search Sunset Meadow for these soldiers and return to me with your findings.")
  77. end