VisageoftheQueen.lua 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232
  1. --[[
  2. Script Name : SpawnScripts/QueensColony/VisageoftheQueen.lua
  3. Script Author : Zcoretri
  4. Script Date : 2015.07.30
  5. Script Purpose : Visage of the Queen talking statue dialog
  6. :
  7. --]]
  8. function spawn(NPC)
  9. StartSpeech(NPC)
  10. end
  11. function StartSpeech(NPC)
  12. AddTimer(NPC, 1200000, "flamesanimation")
  13. end
  14. function flamesanimation(NPC, Spawn)
  15. EndSpeech = 1
  16. PlayAnimation(NPC, 10756)
  17. AddTimer(NPC, 3000, "visage01")
  18. end
  19. function visage01(NPC, Spawn)
  20. EmoteLoop(NPC)
  21. AddTimer(NPC, 2000, "visage02")
  22. end
  23. function visage02(NPC, Spawn)
  24. PlayFlavor(NPC, "voiceover/english/queen_antonia_bayle/qey_north/antonia_isle_speech_1.mp3", "Good traveler, you have seen much in your journey, and now you seek refuge in our humble City of Qeynos. As ruler and servant of the good people of Qeynos, I, Antonia Bayle, welcome you.", "", 499186274, 1744595600, Spawn)
  25. AddTimer(NPC, 13500, "visage03")
  26. end
  27. function visage03(NPC, Spawn)
  28. PlayFlavor(NPC, "voiceover/english/queen_antonia_bayle/qey_north/antonia_isle_speech_2.mp3", "Many among you have traveled great distances, enduring hardships and facing terrible dangers.", "", 2366466723, 1207173576, Spawn)
  29. AddTimer(NPC, 6500, "visage04")
  30. end
  31. function visage04(NPC, Spawn)
  32. PlayFlavor(NPC, "voiceover/english/queen_antonia_bayle/qey_north/antonia_isle_speech_3.mp3", "If you are tired, cold or hungry, if you flee persecution, poverty or injustice, be comforted, there is a place at our hearth for you.", "", 1841028977, 3133868486, Spawn)
  33. AddTimer(NPC, 9500, "visage05")
  34. end
  35. function visage05(NPC, Spawn)
  36. PlayFlavor(NPC, "voiceover/english/queen_antonia_bayle/qey_north/antonia_isle_speech_4.mp3", "You shall find rest in Qeynos.", "", 2202564065, 871912515, Spawn)
  37. AddTimer(NPC, 2500, "visage06")
  38. end
  39. function visage06(NPC, Spawn)
  40. PlayFlavor(NPC, "voiceover/english/queen_antonia_bayle/qey_north/antonia_isle_speech_5.mp3", "Our own Qeynos guard pledges its service to your security.", "", 1129117607, 63248962, Spawn)
  41. AddTimer(NPC, 4600, "visage07")
  42. end
  43. function visage07(NPC, Spawn)
  44. PlayFlavor(NPC, "voiceover/english/queen_antonia_bayle/qey_north/antonia_isle_speech_6.mp3", "Your safety and peace is our sacred trust.", "", 1663362626, 2717555718, Spawn)
  45. AddTimer(NPC, 4500, "visage08")
  46. end
  47. function visage08(NPC, Spawn)
  48. PlayFlavor(NPC, "voiceover/english/queen_antonia_bayle/qey_north/antonia_isle_speech_7.mp3", "The tribulations of Qeynos during the Age of Cataclysms are legendary -- destruction, plagues, horrors both natural and unnatural...", "", 3755081144, 1816040948, Spawn)
  49. AddTimer(NPC, 9300, "visage09")
  50. end
  51. function visage09(NPC, Spawn)
  52. PlayFlavor(NPC, "voiceover/english/queen_antonia_bayle/qey_north/antonia_isle_speech_8.mp3", "If Qeynos has endured, it is because of the steadfast loyalty and courage of her people.", "", 1646438592, 3991623974, Spawn)
  53. AddTimer(NPC, 6600, "visage10")
  54. end
  55. function visage10(NPC, Spawn)
  56. PlayFlavor(NPC, "voiceover/english/queen_antonia_bayle/qey_north/antonia_isle_speech_9.mp3", "Prepare yourself. When you enter the city gates, you accept the challenge of citizenship.", "", 2292019727, 2112049669, Spawn)
  57. AddTimer(NPC, 6800, "visage11")
  58. end
  59. function visage11(NPC, Spawn)
  60. PlayFlavor(NPC, "voiceover/english/queen_antonia_bayle/qey_north/antonia_isle_speech_10.mp3", "All who yearn to fully participate in the center of Qeynos must first prove themselves.", "", 1463066361, 618547599, Spawn)
  61. AddTimer(NPC, 6600, "visage12")
  62. end
  63. function visage12(NPC, Spawn)
  64. PlayFlavor(NPC, "voiceover/english/queen_antonia_bayle/qey_north/antonia_isle_speech_11.mp3", "Your loyalty will be tested, for you must earn the right to be called citizen.", "", 3316158990, 3680571955, Spawn)
  65. AddTimer(NPC, 5300, "visage13")
  66. end
  67. function visage13(NPC, Spawn)
  68. PlayFlavor(NPC, "voiceover/english/queen_antonia_bayle/qey_north/antonia_isle_speech_12.mp3", "Qeynosians are generous to travelers, but harsh with traitors.", "", 2036336595, 3509341224, Spawn)
  69. AddTimer(NPC, 5000, "visage14")
  70. end
  71. function visage14(NPC, Spawn)
  72. PlayFlavor(NPC, "voiceover/english/queen_antonia_bayle/qey_north/antonia_isle_speech_13.mp3", "No doubt you have heard the boasting of Lucan De'Lere.", "", 2730892750, 1805998546, Spawn)
  73. AddTimer(NPC, 3000, "visage15")
  74. end
  75. function visage15(NPC, Spawn)
  76. PlayFlavor(NPC, "voiceover/english/queen_antonia_bayle/qey_north/antonia_isle_speech_14.mp3", "I see, however, that his lies have not enticed you into Freeport. Be grateful and thank the gods; you would not find a restful sanctuary there.", "", 1986999100, 3686223802, Spawn)
  77. AddTimer(NPC, 8800, "visage16")
  78. end
  79. function visage16(NPC, Spawn)
  80. PlayFlavor(NPC, "voiceover/english/queen_antonia_bayle/qey_north/antonia_isle_speech_15.mp3", "I trust that you do not share in Lucan's deceit, and that the well-being of Qeynos and its people is in your heart.", "", 3873638463, 3215411094, Spawn)
  81. AddTimer(NPC, 7000, "visage17")
  82. end
  83. function visage17(NPC, Spawn)
  84. PlayFlavor(NPC, "voiceover/english/queen_antonia_bayle/qey_north/antonia_isle_speech_16.mp3", "If this be not the truth, take heed: treachery will not be suffered here.", "", 3813230568, 886823992, Spawn)
  85. AddTimer(NPC, 5000, "visage18")
  86. end
  87. function visage18(NPC, Spawn)
  88. PlayFlavor(NPC, "voiceover/english/queen_antonia_bayle/qey_north/antonia_isle_speech_17.mp3", "If, however, you are as true and loyal as you seem, then may your life in Qeynos be abundant in blessings.", "", 3518095686, 1014640100, Spawn)
  89. AddTimer(NPC, 8500, "visage19")
  90. end
  91. function visage19(NPC, Spawn)
  92. PlayFlavor(NPC, "voiceover/english/queen_antonia_bayle/qey_north/antonia_isle_speech_18.mp3", "Now enter good traveler, and find your place among us.", "", 1587099913, 694440967, Spawn)
  93. AddTimer(NPC, 1000, "endspeech")
  94. end
  95. function endspeech(NPC)
  96. EndSpeech = 2
  97. end
  98. function EmoteCheck(NPC)
  99. if EndSpeech == 1 then
  100. EmoteLoop(NPC)
  101. else
  102. PlayAnimation(NPC, 13042)
  103. AddTimer(NPC, 1200000, "flamesanimation")
  104. end
  105. end
  106. function EmoteLoop(NPC)
  107. math.randomseed(os.time())
  108. local choice = math.random(1,12)
  109. if choice == 1 then
  110. PlayAnimation(NPC, 13042)
  111. AddTimer(NPC, 5200, "Idle")
  112. elseif choice == 2 then
  113. PlayAnimation(NPC, 13043)
  114. AddTimer(NPC, 4400, "Idle")
  115. elseif choice == 3 then
  116. PlayAnimation(NPC, 13044)
  117. AddTimer(NPC, 6950, "Idle")
  118. elseif choice == 4 then
  119. PlayAnimation(NPC, 13045)
  120. AddTimer(NPC, 5300, "Idle")
  121. elseif choice == 5 then
  122. PlayAnimation(NPC, 13046)
  123. AddTimer(NPC, 3900, "Idle")
  124. elseif choice == 6 then
  125. PlayAnimation(NPC, 13047)
  126. AddTimer(NPC, 4900, "Idle")
  127. elseif choice == 7 then
  128. PlayAnimation(NPC, 13048)
  129. AddTimer(NPC, 4500, "Idle")
  130. elseif choice == 8 then
  131. PlayAnimation(NPC, 13049)
  132. AddTimer(NPC, 3700, "Idle")
  133. elseif choice == 9 then
  134. PlayAnimation(NPC, 13050)
  135. AddTimer(NPC, 3200, "Idle")
  136. elseif choice == 10 then
  137. PlayAnimation(NPC, 13051)
  138. AddTimer(NPC, 4700, "Idle")
  139. elseif choice == 11 then
  140. PlayAnimation(NPC, 13052)
  141. AddTimer(NPC, 3500, "Idle")
  142. else
  143. PlayAnimation(NPC, 13053)
  144. AddTimer(NPC, 3200, "Idle")
  145. end
  146. end
  147. function Idle(NPC)
  148. PlayAnimation(NPC, 13042)
  149. EmoteCheck(NPC)
  150. end
  151. --[[
  152. function speech1(NPC, Spawn)
  153. SpawnSet(NPC, "mood_state", "13046") -- Give her serious face!
  154. SpawnSet(NPC, "action_state", "10756") -- Start waving arms about wildly
  155. 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.", "", 1818828034, 1870559483)
  156. AddTimer(NPC, 30000, "speech2") -- for 30 seconds, then to next speech cycle
  157. end
  158. function speech2(NPC, Spawn)
  159. SpawnSet(NPC, "mood_state", "13046") -- Give her serious face!
  160. SpawnSet(NPC, "action_state", "10756") -- Start waving arms about wildly
  161. 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.", "", 3038020523, 1696768651)
  162. AddTimer(NPC, 75000, "speech3") -- for 30 seconds, then to next speech cycle
  163. end
  164. function speech3(NPC, Spawn)
  165. SpawnSet(NPC, "mood_state", "13046") -- Give her serious face!
  166. SpawnSet(NPC, "action_state", "10756") -- Start waving arms about wildly
  167. 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.", "", 2019122145, 3355586847)
  168. AddTimer(NPC, 60000, "speech4") -- for 30 seconds, then to next speech cycle
  169. end
  170. function speech4(NPC, Spawn)
  171. SpawnSet(NPC, "mood_state", "13046") -- Give her serious face!
  172. SpawnSet(NPC, "action_state", "10756") -- Start waving arms about wildly
  173. 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!", "", 4080984009, 3907237860)
  174. AddTimer(NPC, 30000, "stop_speech") -- for 30 seconds, then to next speech cycle
  175. end
  176. function stop_speech(NPC)
  177. SpawnSet(NPC, "mood_state", "0") -- Give her stone face!
  178. SpawnSet(NPC, "action_state", "0") -- Stop her waving
  179. AddTimer(NPC, 1200000, "speech1")
  180. end
  181. --]]