SergeantHaggus.lua 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  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. --]]
  8. local APresenceOfEvil = 131
  9. function spawn(NPC)
  10. end
  11. function respawn(NPC)
  12. spawn(NPC)
  13. end
  14. function hailed(NPC, Spawn)
  15. FaceTarget(NPC, Spawn)
  16. conversation = CreateConversation()
  17. if HasQuest(Spawn, APresenceOfEvil) and GetQuestStep(Spawn, APresenceOfEvil) < 6 then
  18. if GetQuestStep(Spawn, APresenceOfEvil) == 1 then
  19. --on 1st part of quest
  20. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/sergeant_haggus/tutorial_island02_revamp/quests/citizenship/sergeanthaggus/sergeanthaggus001.mp3", "", "", 706977451, 1189091137, Spawn)
  21. AddConversationOption(conversation, "Yes. He was wondering how our defenses are holding?", "WonderingHowDefenses")
  22. AddConversationOption(conversation, "I'll come back. It seems that you're busy.")
  23. StartConversation(conversation, NPC, Spawn, "Har! These scampering whelps will never break through! Oh, hello there. What's that, Murrar sent you?")
  24. elseif GetQuestStep(Spawn, APresenceOfEvil) == 2 then
  25. -- on 2nd part of quest
  26. AddConversationOption(conversation, "I will.")
  27. 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.")
  28. elseif GetQuestStep(Spawn, APresenceOfEvil) == 3 then
  29. --on 3rd part of quest
  30. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/sergeant_haggus/tutorial_island02_revamp/quests/citizenship/sergeanthaggus/sergeanthaggus005.mp3", "", "", 4260313183, 1230463125, Spawn)
  31. AddConversationOption(conversation, "I'm ready!", "ImReady")
  32. AddConversationOption(conversation, "Not yet.")
  33. StartConversation(conversation, NPC, Spawn, "By the hilt of the Claymore, you're a strong one! I could use your strength for another task.")
  34. elseif GetQuestStep(Spawn, APresenceOfEvil) == 4 then
  35. --on 4th part of quest
  36. AddConversationOption(conversation, "Very well.")
  37. StartConversation(conversation, NPC, Spawn, "Any news of the missing soldiers? Search Sunset Meadow for these soldiers and return to me with your findings.")
  38. elseif GetQuestStep(Spawn, APresenceOfEvil) == 5 then
  39. --on 5th part of quest
  40. SetStepComplete(Spawn, APresenceOfEvil, 5)
  41. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/sergeant_haggus/tutorial_island02_revamp/quests/citizenship/sergeanthaggus/sergeanthaggus009.mp3", "", "", 3590531004, 2647104527, Spawn)
  42. AddConversationOption(conversation, "Farewell to you.")
  43. 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.")
  44. end
  45. elseif HasCompletedQuest(Spawn, APresenceOfEvil) or (HasQuest(Spawn, APresenceOfEvil) and GetQuestStep(Spawn, APresenceOfEvil) == 6) then
  46. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/sergeant_haggus/tutorial_island02_revamp/quests/citizenship/sergeanthaggus/sergeanthaggus010.mp3", "", "", 3061438505, 1032934814, Spawn)
  47. AddConversationOption(conversation, "Thank you.")
  48. StartConversation(conversation, NPC, Spawn, "You've proven yourself to me, " .. GetName(Spawn) .. ". Consider yourself a friend to the Qeynos Guard.")
  49. else
  50. 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.")
  51. end
  52. end
  53. function WonderingHowDefenses(NPC, Spawn)
  54. conversation = CreateConversation()
  55. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/sergeant_haggus/tutorial_island02_revamp/quests/citizenship/sergeanthaggus/sergeanthaggus002.mp3", "", "", 3601499241, 3746466672, Spawn)
  56. AddConversationOption(conversation, "Could you use some help?", "CouldYouUseHelp")
  57. AddConversationOption(conversation, "I'll take my leave.")
  58. 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.")
  59. end
  60. function CouldYouUseHelp(NPC, Spawn)
  61. SetStepComplete(Spawn, APresenceOfEvil, 1)
  62. conversation = CreateConversation()
  63. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/sergeant_haggus/tutorial_island02_revamp/quests/citizenship/sergeanthaggus/sergeanthaggus003.mp3", "", "", 407810644, 1199559577, Spawn)
  64. AddConversationOption(conversation, "Will do!")
  65. 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.")
  66. end
  67. function ImReady(NPC, Spawn)
  68. SetStepComplete(Spawn, APresenceOfEvil, 3)
  69. conversation = CreateConversation()
  70. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/sergeant_haggus/tutorial_island02_revamp/quests/citizenship/sergeanthaggus/sergeanthaggus006.mp3", "", "", 2780322339, 3145013232, Spawn)
  71. AddConversationOption(conversation, "I will.")
  72. 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.")
  73. end