9
3

SergeantHaggus.lua 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  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. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/sergeant_haggus/tutorial_island02_revamp/quests/citizenship/sergeanthaggus/sergeanthaggus004.mp3", "", "chuckle", 2765536004, 3737520445, Spawn)
  32. 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.")
  33. elseif GetQuestStep(Spawn, APresenceOfEvil) == 3 then
  34. --on 3rd part of quest
  35. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/sergeant_haggus/tutorial_island02_revamp/quests/citizenship/sergeanthaggus/sergeanthaggus005.mp3", "", "thanks", 4260313183, 1230463125, Spawn)
  36. AddConversationOption(conversation, "I'm ready!", "ImReady")
  37. AddConversationOption(conversation, "Not yet.")
  38. StartConversation(conversation, NPC, Spawn, "By the hilt of the Claymore, you're a strong one! I could use your strength for another task.")
  39. elseif GetQuestStep(Spawn, APresenceOfEvil) == 4 then
  40. --on 4th part of quest
  41. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/sergeant_haggus/tutorial_island02_revamp/quests/citizenship/sergeanthaggus/sergeanthaggus007.mp3", "", "", 4033698281, 2952828006, Spawn)
  42. AddConversationOption(conversation, "Very well.")
  43. StartConversation(conversation, NPC, Spawn, "Any news of the missing soldiers? Search Sunset Meadow for these soldiers and return to me with your findings.")
  44. elseif GetQuestStep(Spawn, APresenceOfEvil) == 5 then
  45. --on 5th part of quest
  46. SetStepComplete(Spawn, APresenceOfEvil, 5)
  47. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/sergeant_haggus/tutorial_island02_revamp/quests/citizenship/sergeanthaggus/sergeanthaggus009.mp3", "", "threaten", 3590531004, 2647104527, Spawn)
  48. AddConversationOption(conversation, "Farewell to you.")
  49. 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.")
  50. end
  51. elseif HasCompletedQuest(Spawn, APresenceOfEvil) or (HasQuest(Spawn, APresenceOfEvil) and GetQuestStep(Spawn, APresenceOfEvil) == 6) then
  52. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/sergeant_haggus/tutorial_island02_revamp/quests/citizenship/sergeanthaggus/sergeanthaggus010.mp3", "", "salute", 3061438505, 1032934814, Spawn)
  53. AddConversationOption(conversation, "Thank you.")
  54. StartConversation(conversation, NPC, Spawn, "You've proven yourself to me, " .. GetName(Spawn) .. ". Consider yourself a friend to the Qeynos Guard.")
  55. else
  56. 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.")
  57. end
  58. end
  59. function WonderingHowDefenses(NPC, Spawn)
  60. conversation = CreateConversation()
  61. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/sergeant_haggus/tutorial_island02_revamp/quests/citizenship/sergeanthaggus/sergeanthaggus002.mp3", "", "", 3601499241, 3746466672, Spawn)
  62. AddConversationOption(conversation, "Could you use some help?", "CouldYouUseHelp")
  63. AddConversationOption(conversation, "I'll take my leave.")
  64. 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.")
  65. end
  66. function CouldYouUseHelp(NPC, Spawn)
  67. SetStepComplete(Spawn, APresenceOfEvil, 1)
  68. conversation = CreateConversation()
  69. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/sergeant_haggus/tutorial_island02_revamp/quests/citizenship/sergeanthaggus/sergeanthaggus003.mp3", "", "", 407810644, 1199559577, Spawn)
  70. AddConversationOption(conversation, "Will do!")
  71. 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.")
  72. end
  73. function ImReady(NPC, Spawn)
  74. SetStepComplete(Spawn, APresenceOfEvil, 3)
  75. conversation = CreateConversation()
  76. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/sergeant_haggus/tutorial_island02_revamp/quests/citizenship/sergeanthaggus/sergeanthaggus006.mp3", "", "", 2780322339, 3145013232, Spawn)
  77. AddConversationOption(conversation, "I will.")
  78. 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.")
  79. end