HighChieftainGrexx.lua 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. --[[
  2. Script Name : SpawnScripts/QueensColony/HighChieftainGrexx.lua
  3. Script Purpose : High Chieftain Grexx
  4. Script Author : John Adams
  5. Script Date : 2008.09.21
  6. Script Notes : Auto-Generated Conversation from PacketParser Data
  7. --]]
  8. local TheSourceOfEvil = 164
  9. local ADiplomaticMission = 166
  10. function spawn(NPC)
  11. end
  12. function respawn(NPC)
  13. spawn(NPC)
  14. end
  15. function hailed(NPC, Spawn)
  16. if HasQuest(Spawn, ADiplomaticMission) and GetQuestStep(Spawn, ADiplomaticMission) == 8 then
  17. SetStepComplete(Spawn, ADiplomaticMission, 8)
  18. end
  19. FaceTarget(NPC, Spawn)
  20. conversation = CreateConversation()
  21. if HasCompletedQuest(Spawn, TheSourceOfEvil) then
  22. RebuildWeWill(NPC, Spawn)
  23. elseif HasQuest(Spawn, TheSourceOfEvil) then
  24. if GetQuestStep(Spawn, TheSourceOfEvil) == 6 then
  25. SadTimes(NPC, Spawn)
  26. elseif GetQuestStep(Spawn, TheSourceOfEvil) == 7 then
  27. HeroMustGo(NPC, Spawn)
  28. elseif GetQuestStep(Spawn, TheSourceOfEvil) == 8 then
  29. Prophecy(NPC, Spawn)
  30. elseif GetQuestStep(Spawn, TheSourceOfEvil) == 9 then
  31. RebuildWeWill(NPC, Spawn)
  32. else
  33. WaitingForHero(NPC, Spawn)
  34. end
  35. else
  36. WaitingForHero(NPC, Spawn)
  37. end
  38. end
  39. function SadTimes(NPC, Spawn)
  40. FaceTarget(NPC, Spawn)
  41. conversation = CreateConversation()
  42. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/high_chieftain_grexx/tutorial_island02_revamp/quests/citizenship/highchieftaingrexx/highchieftaingrexx001.mp3", "", "nod", 3594102111, 1132457141, Spawn)
  43. AddConversationOption(conversation, "What do you mean?", "dlg_5_1")
  44. AddConversationOption(conversation, "Sad times, indeed.")
  45. StartConversation(conversation, NPC, Spawn, "Sad times upon us. The Great Balancing before us. Coming I knew you would be. Had to, you did.")
  46. end
  47. function dlg_5_1(NPC, Spawn)
  48. FaceTarget(NPC, Spawn)
  49. conversation = CreateConversation()
  50. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/high_chieftain_grexx/tutorial_island02_revamp/quests/citizenship/highchieftaingrexx/highchieftaingrexx002.mp3", "", "", 2612330834, 4076610842, Spawn)
  51. AddConversationOption(conversation, "I'll do what I can.", "dlg_5_2")
  52. StartConversation(conversation, NPC, Spawn, "Prophecy speaks of the Great Balancing. Time when gobbies are faced with destruction, hero arrives to save us. Hero I feel from you.")
  53. end
  54. function dlg_5_2(NPC, Spawn)
  55. SetStepComplete(Spawn, TheSourceOfEvil, 6)
  56. FaceTarget(NPC, Spawn)
  57. conversation = CreateConversation()
  58. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/high_chieftain_grexx/tutorial_island02_revamp/quests/citizenship/highchieftaingrexx/highchieftaingrexx003.mp3", "", "", 3142497620, 848770757, Spawn)
  59. AddConversationOption(conversation, "I'll head to the cave.", "dlg_5_3")
  60. StartConversation(conversation, NPC, Spawn, "As it was written! Sources of evil me thinks springs from cave. Fog shows us evil inside. Hero must save the Sapswill. Hero must be victorious!")
  61. end
  62. function HeroMustGo(NPC, Spawn)
  63. FaceTarget(NPC, Spawn)
  64. conversation = CreateConversation()
  65. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/high_chieftain_grexx/tutorial_island02_revamp/quests/citizenship/highchieftaingrexx/highchieftaingrexx004.mp3", "", "", 2809756305, 2299623207, Spawn)
  66. AddConversationOption(conversation, "To the cave, right.")
  67. StartConversation(conversation, NPC, Spawn, "Cave of fog to northeast hero must go!")
  68. end
  69. function Prophecy(NPC, Spawn)
  70. SetStepComplete(Spawn, TheSourceOfEvil, 8)
  71. FaceTarget(NPC, Spawn)
  72. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/high_chieftain_grexx/tutorial_island02_revamp/quests/citizenship/highchieftaingrexx/highchieftaingrexx005.mp3", "Ahhh! Truth the Prophecy speaks. The Great Balancing is complete. Evil our hero has conquered. The sapswill shall always remember and rebuild we will in your name, " .. GetName(Spawn) .. ". Take the hero's gift.", "thanks", 4263574455, 1760884911, Spawn)
  73. StartConversation(conversation, NPC, Spawn, "Ahhh! Truth the Prophecy speaks. The Great Balancing is complete. Evil our hero has conquered. The Sapswill shall always remember and rebuild we will in your name, ".. GetName(Spawn) .. ". Take the hero's gift.")
  74. --Say(NPC, "Ahhh! Truth the Prophecy speaks. The Great Balancing is complete. Evil our hero has conquered. The sapswill shall always remember and rebuild we will in your name, " .. GetName(Spawn) .. ". Take the hero's gift.")
  75. end
  76. function RebuildWeWill(NPC, Spawn)
  77. FaceTarget(NPC, Spawn)
  78. conversation = CreateConversation()
  79. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/high_chieftain_grexx/tutorial_island02_revamp/quests/citizenship/highchieftaingrexx/highchieftaingrexx006.mp3", "", "", 553548766, 4027111296, Spawn)
  80. AddConversationOption(conversation, "Good luck.")
  81. StartConversation(conversation, NPC, Spawn, "Rebuild we will in your name, " .. GetName(Spawn) .. "!")
  82. end
  83. function WaitingForHero(NPC, Spawn)
  84. FaceTarget(NPC, Spawn)
  85. conversation = CreateConversation()
  86. PlayFlavor(NPC, "voiceover/english/tutorial_revamp/high_chieftain_grexx/tutorial_island02_revamp/quests/citizenship/highchieftaingrexx/highchieftaingrexx007.mp3", "", "", 3809751141, 2628831609, Spawn)
  87. AddConversationOption(conversation, "I'm just paying my respects, your...er, Grexxness.")
  88. AddConversationOption(conversation, "The hero will be along anytime now.")
  89. StartConversation(conversation, NPC, Spawn, "Waiting for hero we are, but the Great Balancing is not ready.")
  90. end