QueenAntoniaBayle.lua 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. --[[
  2. Script Name : SpawnScripts/NorthQeynos/QueenAntoniaBayle.lua
  3. Script Purpose : Queen Antonia Bayle
  4. Script Author : Dorbin
  5. Script Date : 2022.04.25
  6. Script Notes : Queen Antonia Statue Script ***TO BE USED ON ALL CITY ANTONIA STATUES in conjunction with zone scripts
  7. --]]
  8. function spawn(NPC)
  9. end
  10. function respawn(NPC)
  11. spawn(NPC)
  12. end
  13. function PropB(NPC)
  14. PlayFlavor(NPC, "voiceover/english/queen_antonia_bayle/qey_north/eco_200_statue_queen_antonia_bayle_propaganda_1_b_e5f9dee6.mp3", "Who performed this miracle? We did. All of us, by our own hands, guided by our vision and the blessings of the gods. Qeynos stands as proof in the power of justice, equality, and compassion. For, as our founding patriarch, Antonius Bayle, would say: If a city will be great, it must first be good! And our city indeed owes its greatness to the goodness and benevolent ideals we citizens uphold.", "converse", 1818828034, 1870559483)
  15. end
  16. function PropC(NPC)
  17. EndSpeech = true
  18. PlayFlavor(NPC, "voiceover/english/queen_antonia_bayle/qey_north/eco_200_statue_queen_antonia_bayle_propaganda_1_c_1aa755c8.mp3", "In this Age of Destiny, Qeynos blossoms with abundance in both arts and commerce. Our children are nourished in body, mind, and spirit. Scholars, merchants, artisans, soldiers- all of us are welcome here; all of us find ample means and opportunity to share our unique gifts. Our city is a lamp in the darkness, and a clarion call to awaken Norrath from its long nightmare of discord. Let us remember that people in other lands look to us for hope and guidance. We are Norrath's shining example of what civilization really and truly means. But we mustn't fall into complacency and self-satisfaction. There is yet much to be done. There are refugees beyond our gates who do not enjoy the freedoms and rights we take for granted. They scratch out their meager lives in hunger and ignorance. Some flee persecution and violence; others are tormented by the merciless ravages of want. We Qeynosians who live in abundance are called to reach out to these refugees, to open our hearts and hands.", " converse_female02", 3038020523, 1696768651)
  19. end
  20. function PropD(NPC)
  21. EndSpeech = true
  22. PlayFlavor(NPC, "voiceover/english/queen_antonia_bayle/qey_north/eco_200_statue_queen_antonia_bayle_propaganda_1_d_54e171d.mp3", "Yes, I am proud to call myself a Qeynosian. And I am certain that every one of us here is just as proud, just as grateful, and just as eager to share the light of civilization until it shines in every corner of Norrath. We must be extra vigilant to protect our way of life from the corruption of Freeport, which threatens us night and day. In Freeport, they mock the ideals we hold dear. They would make slaves of each and every one of us if they could. We have all seen examples of their ruthlessness and cruelty, of their total disregard for righteousness, of their deceptive and treacherous ways. We know of their unabated greed, and their appetite for territory. How they snap up lands and goods with no thought for the rights of needs of their victims.", "converse_female03", 2019122145, 3355586847)
  23. end
  24. function PropE(NPC)
  25. EndSpeech = true
  26. PlayFlavor(NPC, "voiceover/english/queen_antonia_bayle/qey_north/eco_200_statue_queen_antonia_bayle_propaganda_1_e_8dd02ef3.mp3", "But Freeport shall not prevail! We Qeynosians know that the destiny of Norrath is like the sun at dawn, like a great light which begins with a spark and illuminates the land. Qeynos is that spark! Qeynos will spread its light of civilization until nothing and no one remains in darkness! And we are the ones called to carry this light. And so ... everyone ... I beseech thee all to remember that this is indeed the Age Of Destiny. And we Qeynosians are its children, and its acolytes ... and its greatest hope!", " converse_female04", 4080984009, 3907237860)
  27. end
  28. function NewDawnB(NPC)
  29. EndSpeech = true
  30. PlayFlavor(NPC, "voiceover/english/queen_antonia_bayle/qey_north/eco_200_statue_queen_antonia_bayle_speech_newdawn_b_694279fc.mp3", "And we are all a part of that light, that shining beacon that illuminates Norrath and awakens her from her dark slumber. As Norrath gently turns on her axis and revolves around the sun, each of us becomes a living light that guides all peoples into the Age of Destiny. We are like the stars in the night sky. For Qeynos must lead the way. The ideals which we have championed are the one true hope for peace and prosperity in this world. It is up to Qeynos to show all of Norrath what is possible when truth and justice, equality and mercy are enthroned. I am merely a handmaid to the real rulers: our ideals. These are what we look to for guidance.", "", 982014123, 829335521)
  31. end
  32. function NewDawnC(NPC)
  33. EndSpeech = true
  34. PlayFlavor(NPC, "voiceover/english/queen_antonia_bayle/qey_north/eco_200_statue_queen_antonia_bayle_speech_newdawn_c_4465cb71.mp3", "And words cannot express the gratitude I feel ... to be entrusted with this august responsibility. To stand here before you and before all of Qeynos fills me with great pride. I know that we will seize every opportunity, this new year, to advance our cause and spread liberty throughout the land! We shall not dwell on failures of times past. Instead we will live for the future. Each of us will strive for the common good, and for the highest ambitions to which we can aspire! This is the meaning of New Dawn Day!", "", 3866349527, 2161431192)
  35. end
  36. function FreeportB(NPC)
  37. EndSpeech = true
  38. PlayFlavor(NPC, "voiceover/english/queen_antonia_bayle/qey_north/eco_200_statue_queen_antonia_bayle_denouncement_freeport_3_b_f1948507.mp3", "As you know, Lucan has misled his subjects to see him as their savior. No ... their god. He has enthroned himself in the gods' place. He has corrupted the history of Freeport, claiming every victory as his own. His subjects praise him for the rising and setting of the sun. They think he alone holds back the remains of the moon! The truth, however, is too horrible to behold. Lucan ... Lucan D'Lere ... does not even belong among the living. His mortal life was forfeit hundreds of years ago. The monster we see is a corpse, a skeleton with a few shreds of flesh that long for the grave-unnaturally sustained by dark magic. ", "", 2587904628, 1366269418)
  39. end
  40. function FreeportC(NPC)
  41. EndSpeech = true
  42. PlayFlavor(NPC, "voiceover/english/queen_antonia_bayle/qey_north/eco_200_statue_queen_antonia_bayle_denouncement_freeport_3_c_6283e942.mp3", "This is why Lucan hides in that floating sarcophagus called the Twilight Citadel. His battle armor is really a burial shroud. Any humanity he once possessed has long since passed over into the land of shades. So be on your guard, but take heart. We Qeynosians have more courage than the beaten and terrified subjects of Freeport. We are not afraid of the dead, and will never cower before a sack of bones. Life will triumph in Qeynos, and the burial grounds of Norrath will one day claim their own.", "", 1432372035, 3833716814)
  43. end
  44. function RandomGreeting(NPC, Spawn)
  45. local choice = MakeRandomInt(1,9)
  46. if choice == 1 then
  47. PlayFlavor(NPC, "voiceover/english/queen_antonia_bayle/qey_north/eco_200_statue_queen_antonia_bayle_generic_578f5fd1.mp3", "We must remain united.", "", 2546826310, 3168168943)
  48. elseif choice == 2 then
  49. PlayFlavor(NPC, "voiceover/english/queen_antonia_bayle/qey_north/eco_200_statue_queen_antonia_bayle_generic_3f750d3f.mp3", "Good citizen, thank you for your loyalty to Qeynos in her time of need.", "", 3804322354, 768684401)
  50. elseif choice == 3 then
  51. PlayFlavor(NPC, "voiceover/english/queen_antonia_bayle/qey_north/eco_200_statue_queen_antonia_bayle_generic_3231dd68.mp3", "Only time will tell if we are destined to prevail.", "", 4232919472, 1608431927)
  52. elseif choice == 4 then
  53. PlayFlavor(NPC, "voiceover/english/queen_antonia_bayle/qey_north/eco_200_statue_queen_antonia_bayle_generic_77a2c0db.mp3", "We owe our success to the ideals we uphold.", "", 1722692490, 2388238708)
  54. elseif choice == 5 then
  55. PlayFlavor(NPC, "voiceover/english/queen_antonia_bayle/qey_north/eco_200_statue_queen_antonia_bayle_generic_cbcafcc7.mp3", "Remember ... all things shall pass.", "", 3101211730, 2443276883)
  56. elseif choice == 6 then
  57. PlayFlavor(NPC, "voiceover/english/queen_antonia_bayle/qey_north/eco_200_statue_queen_antonia_bayle_generic_776921e3.mp3", "Do not be afraid. Believe in yourselves, and believe in Qeynos.", "", 956298383, 2870821091)
  58. elseif choice == 7 then
  59. PlayFlavor(NPC, "voiceover/english/queen_antonia_bayle/qey_north/eco_200_statue_queen_antonia_bayle_generic_6626b0a8.mp3", "I shall always be proud to call myself a Qeynosian.", "", 320835052, 345885614)
  60. elseif choice == 8 then
  61. PlayFlavor(NPC, "voiceover/english/queen_antonia_bayle/qey_north/eco_200_statue_queen_antonia_bayle_generic_82b8bc23.mp3", "No challenge is too great for the brave and dedicated.", "", 1245844757, 2085854167)
  62. elseif choice == 9 then
  63. PlayFlavor(NPC, "voiceover/english/queen_antonia_bayle/qey_north/eco_200_statue_queen_antonia_bayle_generic_82b8bc23.mp3", "No challenge is too great for the brave and dedicated.", "", 1245844757, 2085854167)
  64. end
  65. end
  66. -- STATUE ANIMATION
  67. local EndSpeech = true
  68. function visage01(NPC, Spawn)
  69. EndSpeech = false
  70. EmoteLoop(NPC)
  71. end
  72. function EmoteLoop(NPC)
  73. math.randomseed(os.time())
  74. local choice = math.random(1,12)
  75. if choice == 1 then
  76. PlayAnimation(NPC, 13042)
  77. AddTimer(NPC, 5200, "Idle")
  78. elseif choice == 2 then
  79. PlayAnimation(NPC, 13043)
  80. AddTimer(NPC, 4400, "Idle")
  81. elseif choice == 3 then
  82. PlayAnimation(NPC, 13044)
  83. AddTimer(NPC, 6950, "Idle")
  84. elseif choice == 4 then
  85. PlayAnimation(NPC, 13045)
  86. AddTimer(NPC, 5300, "Idle")
  87. elseif choice == 5 then
  88. PlayAnimation(NPC, 13046)
  89. AddTimer(NPC, 3900, "Idle")
  90. elseif choice == 6 then
  91. PlayAnimation(NPC, 13047)
  92. AddTimer(NPC, 4900, "Idle")
  93. elseif choice == 7 then
  94. PlayAnimation(NPC, 13048)
  95. AddTimer(NPC, 4500, "Idle")
  96. elseif choice == 8 then
  97. PlayAnimation(NPC, 13049)
  98. AddTimer(NPC, 3700, "Idle")
  99. elseif choice == 9 then
  100. PlayAnimation(NPC, 13050)
  101. AddTimer(NPC, 3200, "Idle")
  102. elseif choice == 10 then
  103. PlayAnimation(NPC, 13051)
  104. AddTimer(NPC, 4700, "Idle")
  105. elseif choice == 11 then
  106. PlayAnimation(NPC, 13052)
  107. AddTimer(NPC, 3500, "Idle")
  108. else
  109. PlayAnimation(NPC, 13053)
  110. AddTimer(NPC, 3200, "Idle")
  111. end
  112. end
  113. function Idle(NPC)
  114. PlayAnimation(NPC, 13042)
  115. EmoteCheck(NPC)
  116. end
  117. function EndLoop(NPC)
  118. EndSpeech = true
  119. end
  120. function EmoteCheck(NPC)
  121. if EndSpeech == false then
  122. EmoteLoop(NPC)
  123. else
  124. PlayAnimation(NPC, 13042)
  125. end
  126. end