GenericGuardVoiceOvers.lua 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470
  1. --[[
  2. Script Name : SpawnScripts/Generic/GenericGuardVoiceOvers.lua
  3. Script Purpose : Handles the generic hails for guards.
  4. Script Author : Scatman
  5. Script Date : 2009.09.15
  6. Script Notes :
  7. --]]
  8. local BARBARIAN = 0
  9. local DARK_ELF = 1
  10. local DWARF = 2
  11. local ERUDITE = 3
  12. local FROGLOK = 4
  13. local GNOME = 5
  14. local HALF_ELF = 6
  15. local HALFLING = 7
  16. local HIGH_ELF = 8
  17. local HUMAN = 9
  18. local IKSAR = 10
  19. local KERRA = 11
  20. local OGRE = 12
  21. local RATONGA = 13
  22. local TROLL = 14
  23. local WOOD_ELF = 15
  24. local FAE = 16
  25. local ARASAI = 17
  26. local SARNAK = 18
  27. local MALE = 1
  28. local FEMALE = 2
  29. local QEYNOS = 11
  30. local FREEPORT = 12
  31. function GenericGuardHail(NPC, Spawn, Faction)
  32. if NPC ~= nil then
  33. local race = GetRace(NPC)
  34. local gender = GetGender(NPC)
  35. local faction = GetFactionID(NPC)
  36. if race >= 0 and race <= 18 and gender >= 1 and gender <= 2 then
  37. local file_option = math.random(1, 3)
  38. local file_race_gender = 0
  39. if race == BARBARIAN then
  40. if gender == MALE then
  41. local choice = math.random(1, 4)
  42. if choice == 1 then
  43. PlayFlavor(NPC, "voiceover/english/barbarian_eco_good_1/ft/service/guard/barbarian_guard_service_good_1_hail_gm_76da37c9.mp3", "I hate working this shift! If the gnolls don't attack now, I may die of boredom.", "grumble", 174236481, 4250389478, Spawn)
  44. elseif choice == 2 then
  45. PlayFlavor(NPC, "voiceover/english/barbarian_eco_good_1/ft/service/guard/barbarian_guard_service_good_1_hail_gm_c865a827.mp3", "Duty above all else citizen, except honor!", "scold", 3650321797, 745843450, Spawn)
  46. elseif choice == 3 then
  47. PlayFlavor(NPC, "voiceover/english/barbarian_eco_good_1/ft/service/guard/barbarian_guard_service_good_1_hail_gm_ebfceda5.mp3", "Greetings, citizen. I am on guard duty. Should you get into trouble, seek me out.", "attention", 2588751132, 3401521310, Spawn)
  48. elseif choice == 4 then
  49. PlayFlavor(NPC, "voiceover/english/barbarian_eco_good_1/ft/service/guard/barbarian_guard_service_good_1_hail_gm_ee473c11.mp3", "Good day to you, citizen. All preserve Queen Antonia.", "salute", 2268064933, 2349331472, Spawn)
  50. end
  51. elseif gender == FEMALE then
  52. end
  53. elseif race == DARK_ELF then
  54. if gender == MALE then
  55. local choice = math.random(1, 4)
  56. if choice == 1 then
  57. PlayFlavor(NPC, "voiceover/english/darkelf_eco_evil_1/ft/service/guard/darkelf_guard_service_evil_1_hail_gm_582205e1.mp3", "Do you have business with the Freeport Militia?", "glare", 3330899926, 205777100, Spawn)
  58. elseif choice == 2 then
  59. PlayFlavor(NPC, "voiceover/english/darkelf_eco_evil_1/ft/service/guard/darkelf_guard_service_evil_1_hail_gm_7fa14d4.mp3", "Do not challenge my authority citizen. In Freeport, the Overlord's word is law!", "scold", 3071777755, 1811086423, Spawn)
  60. elseif choice == 3 then
  61. PlayFlavor(NPC, "voiceover/english/darkelf_eco_evil_1/ft/service/guard/darkelf_guard_service_evil_1_hail_gm_870ae3cb.mp3", "The Overlord commands me to patrol this area, and so I must.", "tapfoot", 3455786340, 1963116786, Spawn)
  62. elseif choice == 4 then
  63. PlayFlavor(NPC, "voiceover/english/darkelf_eco_evil_1/ft/service/guard/darkelf_guard_service_evil_1_hail_gm_edb196f8.mp3", "All praises to the Overlord. The Militia protects loyal citizens of Freeport.", "salute_freeport", 3432620709, 3039361332, Spawn)
  64. end
  65. elseif gender == FEMALE then
  66. local choice = math.random(1, 4)
  67. if choice == 1 then
  68. PlayFlavor(NPC, "voiceover/english/darkelf_eco_evil_1/ft/service/guard/darkelf_guard_service_evil_1_hail_gf_582205e1.mp3", "Do you have business with the Freeport Militia?", "glare", 2007336774, 276021764, Spawn)
  69. elseif choice == 2 then
  70. PlayFlavor(NPC, "voiceover/english/darkelf_eco_evil_1/ft/service/guard/darkelf_guard_service_evil_1_hail_gf_7fa14d4.mp3", "Do not challenge my authority citizen. In Freeport, the Overlord's word is law!", "scold", 2216401374, 2200952527, Spawn)
  71. elseif choice == 3 then
  72. PlayFlavor(NPC, "voiceover/english/darkelf_eco_evil_1/ft/service/guard/darkelf_guard_service_evil_1_hail_gf_e6d19328.mp3", "The Overlord commands me to work the night shift and so I must accept.", "tapfoot", 1941665390, 4180571964, Spawn)
  73. elseif choice == 4 then
  74. PlayFlavor(NPC, "voiceover/english/darkelf_eco_evil_1/ft/service/guard/darkelf_guard_service_evil_1_hail_gf_edb196f8.mp3", "All praises to the Overlord. The Militia protects loyal citizens of Freeport.", "salute_freeport", 1432151232, 2291117299, Spawn)
  75. end
  76. end
  77. elseif race == DWARF then
  78. if gender == MALE then
  79. local choice = math.random(1, 4)
  80. if choice == 1 then
  81. PlayFlavor(NPC, "voiceover/english/dwarf_eco_good_1/ft/service/guard/dwarf_guard_service_good_1_hail_gm_76da37c9.mp3", "I hate working this shift! If the gnolls don't attack now I may die of boredom.", "grumble", 31199107, 4082603014, Spawn)
  82. elseif choice == 2 then
  83. PlayFlavor(NPC, "voiceover/english/dwarf_eco_good_1/ft/service/guard/dwarf_guard_service_good_1_hail_gm_c865a827.mp3", "Duty above all else citizen, except honor!", "scold", 3958491070, 1651361777, Spawn)
  84. elseif choice == 3 then
  85. PlayFlavor(NPC, "voiceover/english/dwarf_eco_good_1/ft/service/guard/dwarf_guard_service_good_1_hail_gm_ebfceda5.mp3", "Greetings, citizen. I am on guard duty. Should you get into trouble, seek me out.", "attention", 1717559969, 1730005307, Spawn)
  86. elseif choice == 4 then
  87. PlayFlavor(NPC, "voiceover/english/dwarf_eco_good_1/ft/service/guard/dwarf_guard_service_good_1_hail_gm_ee473c11.mp3", "Good day to you citizen, all preserve Queen Antonia.", "salute", 2539353309, 3288832983, Spawn)
  88. end
  89. elseif gender == FEMALE then
  90. local choice = math.random(1, 4)
  91. if choice == 1 then
  92. PlayFlavor(NPC, "voiceover/english/dwarf_eco_good_1/ft/service/guard/dwarf_guard_service_good_1_hail_gf_c865a827.mp3", "Duty above all else citizen, except honor!", "scold", 2599283605, 3661394128, Spawn)
  93. elseif choice == 2 then
  94. PlayFlavor(NPC, "voiceover/english/dwarf_eco_good_1/ft/service/guard/dwarf_guard_service_good_1_hail_gf_ebfceda5.mp3", "Greetings, citizen. I am on guard duty. Should you get into trouble, seek me out.", "attention", 3116918998, 1333985272, Spawn)
  95. elseif choice == 3 then
  96. PlayFlavor(NPC, "voiceover/english/dwarf_eco_good_1/ft/service/guard/dwarf_guard_service_good_1_hail_gf_ed0d92f8.mp3", "I hate the night shift! If the gnolls don't attack now I may die of boredom.", "grumble", 2490266027, 3636789093, Spawn)
  97. elseif choice == 4 then
  98. PlayFlavor(NPC, "voiceover/english/dwarf_eco_good_1/ft/service/guard/dwarf_guard_service_good_1_hail_gf_ee473c11.mp3", "Good day to you citizen, all preserve Queen Antonia.", "salute", 3457944783, 4136040635, Spawn)
  99. end
  100. end
  101. elseif race == ERUDITE then
  102. if gender == MALE then
  103. local choice = math.random(1, 4)
  104. local choice = math.random(1, 4)
  105. if choice == 1 then
  106. PlayFlavor(NPC, "voiceover/english/highelf_eco_good_1/ft/service/guard/highelf_guard_service_good_1_hail_gm_76da37c9.mp3", "I hate working this shift! If the gnolls don't attack now, I may die of boredom.", "grumble", 3586563752, 1865874525, Spawn)
  107. elseif choice == 2 then
  108. PlayFlavor(NPC, "voiceover/english/highelf_eco_good_1/ft/service/guard/highelf_guard_service_good_1_hail_gm_c865a827.mp3", "Duty above all else, citizen, except honor!", "scold", 739074204, 2925833259, Spawn)
  109. elseif choice == 3 then
  110. PlayFlavor(NPC, "voiceover/english/highelf_eco_good_1/ft/service/guard/highelf_guard_service_good_1_hail_gm_ebfceda5.mp3", "Greetings, citizen. I am on guard duty. Should you get into trouble, seek me out.", "attention", 3027655540, 4120709915, Spawn)
  111. elseif choice == 4 then
  112. PlayFlavor(NPC, "voiceover/english/highelf_eco_good_1/ft/service/guard/highelf_guard_service_good_1_hail_gm_ee473c11.mp3", "Good day to you, citizen. All preserve Queen Antonia.", "salute", 2088886924, 3736631596, Spawn)
  113. end
  114. elseif gender == FEMALE then
  115. local choice = math.random(1, 4)
  116. if choice == 1 then
  117. PlayFlavor(NPC, "", "Duty above all else citizen, except honor!", "scold", 1689589577, 4560189, Spawn)
  118. elseif choice == 2 then
  119. PlayFlavor(NPC, "", "Good day to you citizen, all preserve Queen Antonia.", "salute", 1689589577, 4560189, Spawn)
  120. elseif choice == 3 then
  121. PlayFlavor(NPC, "voiceover/english/optional2/highelf_eco_good_1/ft/service/guard/highelf_guard_service_good_1_hail_gf_d7fdb65.mp3", "Greetings, citizen. I am on guard duty. Should you get into trouble, seek me out.", "attention", 2772203714, 1169089481, Spawn)
  122. elseif choice == 4 then
  123. PlayFlavor(NPC, "voiceover/english/optional2/highelf_eco_good_1/ft/service/guard/highelf_guard_service_good_1_hail_gf_9e30d7b1.mp3", "I hate the night shift! If the gnolls don't attack now, I may die of boredom.", "grumble", 1243870883, 2445109433, Spawn)
  124. end
  125. end
  126. elseif race == FROGLOK then
  127. if gender == MALE then
  128. elseif gender == FEMALE then
  129. end
  130. elseif race == GNOME then
  131. if gender == MALE then
  132. elseif gender == FEMALE then
  133. end
  134. elseif race == HALF_ELF then
  135. if gender == MALE then
  136. elseif gender == FEMALE then
  137. end
  138. elseif race == HALFLING then
  139. if gender == MALE then
  140. local choice = math.random(1, 10)
  141. if choice == 1 then
  142. PlayFlavor(NPC, "voiceover/english/halfling_eco_good_1/ft/halfling/halfling_eco_good_1_aoi_gm_89ed3363.mp3", "Wonderful, more troublesome adventurers in the city. ", "sarcasm", 3296911201, 4000062691, Spawn)
  143. elseif choice == 2 then
  144. PlayFlavor(NPC, "voiceover/english/halfling_eco_good_1/ft/halfling/halfling_eco_good_1_aoi_gm_fea5fead.mp3", "The world is round. It's round I say, as well it should be!", "curse", 4205711950, 2062936277, Spawn)
  145. elseif choice == 3 then
  146. PlayFlavor(NPC, "voiceover/english/halfling_eco_good_1/ft/halfling/halfling_eco_good_1_hail_gm_1e924418.mp3", "Hail and welcome to the city, friend!", "hello", 3400282816, 2842293637, Spawn)
  147. elseif choice == 4 then
  148. PlayFlavor(NPC, "voiceover/english/halfling_eco_good_1/ft/halfling/halfling_eco_good_1_hail_gm_50622dfa.mp3", "Whoa, hello there! Eager and in a hurry I see. My advice, take your time. The city isn't going anywhere.", "wave", 2627404831, 2664895493, Spawn)
  149. elseif choice == 5 then
  150. PlayFlavor(NPC, "voiceover/english/halfling_eco_good_1/ft/halfling/halfling_eco_good_1_hail_gm_75c0e97c.mp3", "Welcome to the city, adventurer. Be mindful of the peace and quiet. Here in Qeynos, we value our privacy.", "bow", 1955296899, 2249687997, Spawn)
  151. elseif choice == 6 then
  152. PlayFlavor(NPC, "voiceover/english/halfling_eco_good_1/ft/halfling/halfling_eco_good_1_hail_gm_7d33c817.mp3", "Nice weather we're having. Should make for a good harvest this season, if it holds up.", "nod", 3022454580, 2853198849, Spawn)
  153. elseif choice == 7 then
  154. PlayFlavor(NPC, "voiceover/english/halfling_eco_good_1/ft/halfling/halfling_eco_good_1_hail_gm_b44f103.mp3", "Ah good, another refugee in the city. I hope you're not a worthless lay about! We don't abide apathy here.", "glare", 516875735, 233361227, Spawn)
  155. elseif choice == 8 then
  156. PlayFlavor(NPC, "voiceover/english/halfling_eco_good_1/ft/halfling/halfling_eco_good_1_hail_gm_cf902b40.mp3", "Get on now! There's plenty of work to be done. Maybe you should lend a hand, if you feel up to it.", "stare", 1396062221, 310311489, Spawn)
  157. elseif choice == 9 then
  158. PlayFlavor(NPC, "voiceover/english/halfling_eco_good_1/ft/halfling/halfling_eco_good_1_hail_gm_d79063bf.mp3", "Ahhhhh, that's what I love about Qeynos. So many bakeries and so many pies!", "scheme", 894976267, 1675938925, Spawn)
  159. elseif choice == 10 then
  160. PlayFlavor(NPC, "voiceover/english/halfling_eco_good_1/ft/halfling/halfling_eco_good_1_hail_gm_f657192c.mp3", "Nostalgia isn't what it used to be.", "sigh", 2017572665, 1813639796, Spawn)
  161. end
  162. elseif gender == FEMALE then
  163. end
  164. elseif race == HIGH_ELF then
  165. if gender == MALE then
  166. local choice = math.random(1, 4)
  167. if choice == 1 then
  168. PlayFlavor(NPC, "voiceover/english/highelf_eco_good_1/ft/service/guard/highelf_guard_service_good_1_hail_gm_76da37c9.mp3", "I hate working this shift! If the gnolls don't attack now, I may die of boredom.", "grumble", 3586563752, 1865874525, Spawn)
  169. elseif choice == 2 then
  170. PlayFlavor(NPC, "voiceover/english/highelf_eco_good_1/ft/service/guard/highelf_guard_service_good_1_hail_gm_c865a827.mp3", "Duty above all else, citizen, except honor!", "scold", 739074204, 2925833259, Spawn)
  171. elseif choice == 3 then
  172. PlayFlavor(NPC, "voiceover/english/highelf_eco_good_1/ft/service/guard/highelf_guard_service_good_1_hail_gm_ebfceda5.mp3", "Greetings, citizen. I am on guard duty. Should you get into trouble, seek me out.", "attention", 3027655540, 4120709915, Spawn)
  173. elseif choice == 4 then
  174. PlayFlavor(NPC, "voiceover/english/highelf_eco_good_1/ft/service/guard/highelf_guard_service_good_1_hail_gm_ee473c11.mp3", "Good day to you, citizen. All preserve Queen Antonia.", "salute", 2088886924, 3736631596, Spawn)
  175. end
  176. elseif gender == FEMALE then
  177. local choice = math.random(1, 2)
  178. if choice == 1 then
  179. PlayFlavor(NPC, "voiceover/english/optional2/highelf_eco_good_1/ft/service/guard/highelf_guard_service_good_1_hail_gf_9e30d7b1.mp3", "I hate the night shift! If the gnolls don't attack now, I may die of boredom.", "grumble", 1243870883, 2445109433, Spawn)
  180. elseif choice == 2 then
  181. PlayFlavor(NPC, "voiceover/english/optional2/highelf_eco_good_1/ft/service/guard/highelf_guard_service_good_1_hail_gf_d7fdb65.mp3", "Greetings, citizen. I am on guard duty. Should you get into trouble, seek me out.", "attention", 2772203714, 1169089481, Spawn)
  182. end
  183. end
  184. elseif race == HUMAN then
  185. if gender == MALE then
  186. if faction == 102 then -- Freeport Militia
  187. local choice = math.random(1, 4)
  188. if choice == 1 then
  189. PlayFlavor(NPC, "voiceover/english/human_eco_evil_1/ft/service/guard/human_guard_service_evil_1_hail_gm_582205e1.mp3", "Do you have business with the Freeport Militia?", "glare", 3265760930, 1055342916, Spawn)
  190. elseif choice == 2 then
  191. PlayFlavor(NPC, "voiceover/english/human_eco_evil_1/ft/service/guard/human_guard_service_evil_1_hail_gm_7fa14d4.mp3", "Do not challenge my authority citizen. In Freeport, the Overlord's word is law!", "scold", 1744928325, 2718395831, Spawn)
  192. elseif choice == 3 then
  193. PlayFlavor(NPC, "voiceover/english/human_eco_evil_1/ft/service/guard/human_guard_service_evil_1_hail_gm_870ae3cb.mp3", "The Overlord commands me to patrol this area, and so I must.", "tapfoot", 1281050619, 1758539799, Spawn)
  194. elseif choice == 4 then
  195. PlayFlavor(NPC, "voiceover/english/human_eco_evil_1/ft/service/guard/human_guard_service_evil_1_hail_gm_edb196f8.mp3", "All praises to the Overlord. The Militia protects loyal citizens of Freeport.", "salute_freeport", 1906726944, 247472694, Spawn)
  196. end
  197. else
  198. local choice = math.random(1, 4)
  199. if choice == 1 then
  200. PlayFlavor(NPC, "voiceover/english/human_eco_good_1/ft/service/guard/human_guard_service_good_1_hail_gm_76da37c9.mp3", "I hate working this shift! If the gnolls don't attack now, I may die of boredom.", "grumble", 4099618783, 4191002419, Spawn)
  201. elseif choice == 2 then
  202. PlayFlavor(NPC, "voiceover/english/human_eco_good_1/ft/service/guard/human_guard_service_good_1_hail_gm_c865a827.mp3", "Duty above all else, citizen, except honor!", "scold", 4141262779, 4227030045, Spawn)
  203. elseif choice == 3 then
  204. PlayFlavor(NPC, "voiceover/english/human_eco_good_1/ft/service/guard/human_guard_service_good_1_hail_gm_ebfceda5.mp3", "Greetings, citizen. I am on guard duty. Should you get into trouble, seek me out.", "attention", 1945337199, 2685949436, Spawn)
  205. elseif choice == 4 then
  206. PlayFlavor(NPC, "voiceover/english/human_eco_good_1/ft/service/guard/human_guard_service_good_1_hail_gm_ee473c11.mp3", "Good day to you, citizen. All preserve Queen Antonia.", "salute", 2997871263, 2912813719, Spawn)
  207. end
  208. end
  209. elseif gender == FEMALE then
  210. if faction == 102 then -- Freeport Militia
  211. local choice = math.random(1, 4)
  212. if choice == 1 then
  213. PlayFlavor(NPC, "voiceover/english/human_eco_evil_1/ft/service/guard/human_guard_service_evil_1_hail_gf_582205e1.mp3", "Do you have business with the Freeport Militia?", "glare", 2697294413, 370291658, Spawn)
  214. elseif choice == 2 then
  215. PlayFlavor(NPC, "voiceover/english/human_eco_evil_1/ft/service/guard/human_guard_service_evil_1_hail_gf_7fa14d4.mp3", "Do not challenge my authority citizen. In Freeport, the Overlord's word is law!", "scold", 1888277290, 873721758, Spawn)
  216. elseif choice == 3 then
  217. PlayFlavor(NPC, "voiceover/english/human_eco_evil_1/ft/service/guard/human_guard_service_evil_1_hail_gf_e6d19328.mp3", "The Overlord commands me to work the night shift and so I must accept.", "tapfoot", 3462302836, 3625333695, Spawn)
  218. else
  219. PlayFlavor(NPC, "voiceover/english/human_eco_evil_1/ft/service/guard/human_guard_service_evil_1_hail_gf_edb196f8.mp3", "All praises to the Overlord. The Militia protects loyal citizens of Freeport.", "salute_freeport", 1662524531, 242648132, Spawn)
  220. end
  221. else
  222. local choice = math.random(1, 4)
  223. if choice == 1 then
  224. PlayFlavor(NPC, "voiceover/english/human_eco_good_1/ft/service/guard/human_guard_service_good_1_hail_gf_c865a827.mp3", "Duty above all else, citizen, except honor!", "scold", 373851625, 467562033, Spawn)
  225. elseif choice == 2 then
  226. PlayFlavor(NPC, "voiceover/english/human_eco_good_1/ft/service/guard/human_guard_service_good_1_hail_gf_ebfceda5.mp3", "Greetings, citizen. I am on guard duty. Should you get into trouble, seek me out.", "attention", 3448203562, 506341016, Spawn)
  227. elseif choice == 3 then
  228. PlayFlavor(NPC, "voiceover/english/human_eco_good_1/ft/service/guard/human_guard_service_good_1_hail_gf_ed0d92f8.mp3", "I hate the night shift! If the gnolls don't attack now, I may die of boredom.", "grumble", 1226814424, 706962620, Spawn)
  229. elseif choice == 4 then
  230. PlayFlavor(NPC, "voiceover/english/human_eco_good_1/ft/service/guard/human_guard_service_good_1_hail_gf_ee473c11.mp3", "Good day to you, citizen. All preserve Queen Antonia.", "salute", 1886617373, 1115286759, Spawn)
  231. end
  232. end
  233. end
  234. elseif race == IKSAR then
  235. if gender == MALE then
  236. elseif gender == FEMALE then
  237. end
  238. elseif race == KERRA then
  239. if gender == MALE then
  240. local choice = math.random(1, 4)
  241. if choice == 1 then
  242. PlayFlavor(NPC, "voiceover/english/barbarian_eco_good_1/ft/service/guard/barbarian_guard_service_good_1_hail_gm_76da37c9.mp3", "I hate working this shift! If the gnolls don't attack now, I may die of boredom.", "grumble", 174236481, 4250389478, Spawn)
  243. elseif choice == 2 then
  244. PlayFlavor(NPC, "voiceover/english/barbarian_eco_good_1/ft/service/guard/barbarian_guard_service_good_1_hail_gm_c865a827.mp3", "Duty above all else citizen, except honor!", "scold", 3650321797, 745843450, Spawn)
  245. elseif choice == 3 then
  246. PlayFlavor(NPC, "voiceover/english/barbarian_eco_good_1/ft/service/guard/barbarian_guard_service_good_1_hail_gm_ebfceda5.mp3", "Greetings, citizen. I am on guard duty. Should you get into trouble, seek me out.", "attention", 2588751132, 3401521310, Spawn)
  247. elseif choice == 4 then
  248. PlayFlavor(NPC, "voiceover/english/barbarian_eco_good_1/ft/service/guard/barbarian_guard_service_good_1_hail_gm_ee473c11.mp3", "Good day to you, citizen. All preserve Queen Antonia.", "salute", 2268064933, 2349331472, Spawn)
  249. end
  250. elseif gender == FEMALE then
  251. end
  252. elseif race == OGRE then
  253. if gender == MALE then
  254. local choice = math.random(1, 4)
  255. if choice == 1 then
  256. PlayFlavor(NPC, "voiceover/english/ogre_eco_evil_1/ft/service/guard/ogre_guard_service_evil_1_hail_gm_582205e1.mp3", "Do you have business with the Freeport Militia?", "glare", 423300132, 829337329, Spawn)
  257. elseif choice == 2 then
  258. PlayFlavor(NPC, "voiceover/english/ogre_eco_evil_1/ft/service/guard/ogre_guard_service_evil_1_hail_gm_7fa14d4.mp3", "Do not challenge my authority citizen. In Freeport, the Overlord's word is law!", "scold", 606354622, 1657703048, Spawn)
  259. elseif choice == 3 then
  260. PlayFlavor(NPC, "voiceover/english/ogre_eco_evil_1/ft/service/guard/ogre_guard_service_evil_1_hail_gm_870ae3cb.mp3", "The Overlord commands me to patrol this area, and so I must.", "tapfoot", 3898592844, 3023882159, Spawn)
  261. elseif choice == 4 then
  262. PlayFlavor(NPC, "voiceover/english/ogre_eco_evil_1/ft/service/guard/ogre_guard_service_evil_1_hail_gm_edb196f8.mp3", "All praises to the Overlord. The Militia protects loyal citizens of Freeport.", "salute_freeport", 2290537918, 776957565, Spawn)
  263. end
  264. elseif gender == FEMALE then
  265. local choice = math.random(1, 3)
  266. if choice == 1 then
  267. PlayFlavor(NPC, "voiceover/english/ogre_eco_evil_1/ft/service/guard/ogre_guard_service_evil_1_hail_gf_7fa14d4.mp3", "Do not challenge my authority citizen. In Freeport, the Overlord's word is law!", "scold", 2981239011, 830472688, Spawn)
  268. elseif choice == 2 then
  269. PlayFlavor(NPC, "voiceover/english/ogre_eco_evil_1/ft/service/guard/ogre_guard_service_evil_1_hail_gf_e6d19328.mp3", "The Overlord commands me to work the night shift and so I must accept.", "tapfoot", 3190713491, 83008289, Spawn)
  270. elseif choice == 3 then
  271. PlayFlavor(NPC, "voiceover/english/ogre_eco_evil_1/ft/service/guard/ogre_guard_service_evil_1_hail_gf_edb196f8.mp3", "All praises to the Overlord. The Militia protects loyal citizens of Freeport.", "salute_freeport", 2650311659, 1056157406, Spawn)
  272. end
  273. end
  274. elseif race == RATONGA then
  275. if gender == MALE then
  276. elseif gender == FEMALE then
  277. end
  278. elseif race == TROLL then
  279. if gender == MALE then
  280. elseif gender == FEMALE then
  281. end
  282. elseif race == WOOD_ELF then
  283. if gender == MALE then
  284. elseif gender == FEMALE then
  285. end
  286. elseif race == FAE then
  287. if gender == MALE then
  288. elseif gender == FEMALE then
  289. end
  290. elseif race == ARASAI then
  291. if gender == MALE then
  292. elseif gender == FEMALE then
  293. end
  294. elseif race == SARNAK then
  295. if gender == MALE then
  296. elseif gender == FEMALE then
  297. end
  298. end
  299. end
  300. end
  301. end
  302. function CheckFaction(NPC, Spawn, City)
  303. if NPC ~= nil and Spawn ~= nil and City ~= nil then
  304. faction_amount = 0
  305. if City == "Qeynos" then
  306. faction_amount = GetFactionAmount(Spawn, QEYNOS)
  307. elseif City == "Freeport" then
  308. faction_amount = GetFactionAmount(Spawn, FREEPORT)
  309. end
  310. if faction_amount >= 40000 then
  311. -- FaceTarget(NPC, Spawn)
  312. PlayFlavor(NPC, "", "", "cheer", 0, 0, Spawn)
  313. SendMessage(Spawn, GetName(NPC) .. " cheers at you.")
  314. elseif faction_amount >= 30000 then
  315. -- FaceTarget(NPC, Spawn)
  316. PlayFlavor(NPC, "", "", "salute", 0, 0, Spawn)
  317. SendMessage(Spawn, GetName(NPC) .. " salutes you.")
  318. elseif faction_amount <= -20000 then
  319. --FaceTarget(NPC, Spawn)
  320. --PlayFlavor(NPC, "", "", "cheer", 0, 0, Spawn)
  321. SendMessage(Spawn, GetName(NPC) .. " scowls at you.")
  322. end
  323. end
  324. end
  325. function aggro(NPC, Spawn, Faction)
  326. if NPC ~= nil then
  327. local race = GetRace(NPC)
  328. local gender = GetGender(NPC)
  329. local faction = GetFactionID(NPC)
  330. if race >= 0 and race <= 18 and gender >= 1 and gender <= 2 then
  331. local file_option = math.random(1, 3)
  332. local file_race_gender = 0
  333. if race == BARBARIAN then
  334. if gender == MALE then
  335. PlayFlavor(NPC, "voiceover/english/barbarian_eco_good_1/ft/service/guard/barbarian_guard_service_good_1_kill_gm_2b7f45ad.mp3", "For the glory of Qeynos!", "", 1804495775, 3807708128)
  336. elseif gender == FEMALE then
  337. PlayFlavor(NPC, "", "For the glory of Qeynos!", "", 565962733, 3617633467, Spawn)
  338. end
  339. elseif race == DARK_ELF then
  340. if gender == MALE then
  341. PlayFlavor(NPC, "voiceover/english/darkelf_eco_evil_1/ft/service/guard/darkelf_guard_service_evil_1_kill_gm_1ec6eff4.mp3", "Death to the enemies of Lucan!", "", 4030922503, 1352663696, Spawn)
  342. elseif gender == FEMALE then
  343. local choice = math.random(1, 4)
  344. PlayFlavor(NPC, "voiceover/english/darkelf_eco_evil_1/ft/service/guard/darkelf_guard_service_evil_1_kill_gf_1ec6eff4.mp3", "Death to the enemies of Lucan!", "", 4030922503, 1352663696, Spawn)
  345. end
  346. elseif race == DWARF then
  347. if gender == MALE then
  348. PlayFlavor(NPC, "voiceover/english/dwarf_eco_good_1/ft/service/guard/dwarf_guard_service_good_1_kill_gm_2b7f45ad.mp3", "For the glory of Qeynos!", "", 1964289468, 4158765460)
  349. elseif gender == FEMALE then
  350. end
  351. elseif race == ERUDITE then
  352. if gender == MALE then
  353. local choice = math.random(1, 4)
  354. local choice = math.random(1, 4)
  355. PlayFlavor(NPC, "voiceover/english/highelf_eco_good_1/ft/service/guard/highelf_guard_service_good_1_hail_gm_76da37c9.mp3", "I hate working this shift! If the gnolls don't attack now, I may die of boredom.", "grumble", 3586563752, 1865874525, Spawn)
  356. elseif gender == FEMALE then
  357. local choice = math.random(1, 4)
  358. PlayFlavor(NPC, "", "For the glory of Qeynos!", "", 0, 0, Spawn)
  359. end
  360. elseif race == FROGLOK then
  361. if gender == MALE then
  362. elseif gender == FEMALE then
  363. end
  364. elseif race == GNOME then
  365. if gender == MALE then
  366. elseif gender == FEMALE then
  367. end
  368. elseif race == HALF_ELF then
  369. if gender == MALE then
  370. elseif gender == FEMALE then
  371. end
  372. elseif race == HALFLING then
  373. if gender == MALE then
  374. PlayFlavor(NPC, "", "For the glory of Qeynos!", "", 1964289468, 4158765460)
  375. elseif gender == FEMALE then
  376. end
  377. elseif race == HIGH_ELF then
  378. if gender == MALE then
  379. PlayFlavor(NPC, "voiceover/english/highelf_eco_good_1/ft/service/guard/highelf_guard_service_good_1_kill_gm_2b7f45ad.mp3", "For the glory of Qeynos!", "", 565962733, 3617633467, Spawn)
  380. elseif gender == FEMALE then
  381. PlayFlavor(NPC, "", "For the glory of Qeynos!", "", 565962733, 3617633467, Spawn)
  382. end
  383. elseif race == HUMAN then
  384. if gender == MALE then
  385. if faction == 102 then -- Freeport Militia
  386. PlayFlavor(NPC, "", "Death to the enemies of Lucan!", "", 0, 0, Spawn)
  387. else
  388. PlayFlavor(NPC, "voiceover/english/human_eco_good_1/ft/service/guard/human_guard_service_good_1_kill_gm_2b7f45ad.mp3", "For the glory of Qeynos!", "", 1601992673, 279003315, Spawn)
  389. end
  390. elseif gender == FEMALE then
  391. if faction == 102 then -- Freeport Militia
  392. PlayFlavor(NPC, "voiceover/english/darkelf_eco_evil_1/ft/service/guard/darkelf_guard_service_evil_1_kill_gf_1ec6eff4.mp3", "Death to the enemies of Lucan!", "", 4030922503, 1352663696, Spawn)
  393. else
  394. PlayFlavor(NPC, "voiceover/english/human_eco_good_1/ft/service/guard/human_guard_service_good_1_kill_gf_2b7f45ad.mp3", "For the glory of Qeynos!", "", 2825851367, 3848266464, Spawn)
  395. end
  396. end
  397. elseif race == IKSAR then
  398. if gender == MALE then
  399. PlayFlavor(NPC, "", "Death to the enemies of Lucan!", "", 0, 0, Spawn)
  400. elseif gender == FEMALE then
  401. PlayFlavor(NPC, "", "Death to the enemies of Lucan!", "", 0, 0, Spawn)
  402. end
  403. elseif race == KERRA then
  404. if gender == MALE then
  405. elseif gender == FEMALE then
  406. end
  407. elseif race == OGRE then
  408. if gender == MALE then
  409. PlayFlavor(NPC, "voiceover/english/ogre_eco_evil_1/ft/service/guard/ogre_guard_service_evil_1_kill_gm_1ec6eff4.mp3", "Death to the enemies of Lucan!", "", 2168677813, 2813485230, Spawn)
  410. elseif gender == FEMALE then
  411. PlayFlavor(NPC, "voiceover/english/ogre_eco_evil_1/ft/service/guard/ogre_guard_service_evil_1_kill_gf_1ec6eff4.mp3", "Death to the enemies of Lucan!", "", 2364849445, 1235109620, Spawn)
  412. end
  413. elseif race == RATONGA then
  414. if gender == MALE then
  415. elseif gender == FEMALE then
  416. end
  417. elseif race == TROLL then
  418. if gender == MALE then
  419. elseif gender == FEMALE then
  420. end
  421. elseif race == WOOD_ELF then
  422. if gender == MALE then
  423. PlayFlavor(NPC, "", "For the glory of Qeynos!", "", 565962733, 3617633467, Spawn)
  424. elseif gender == FEMALE then
  425. PlayFlavor(NPC, "", "For the glory of Qeynos!", "", 565962733, 3617633467, Spawn)
  426. end
  427. elseif race == FAE then
  428. if gender == MALE then
  429. elseif gender == FEMALE then
  430. end
  431. elseif race == ARASAI then
  432. if gender == MALE then
  433. elseif gender == FEMALE then
  434. end
  435. elseif race == SARNAK then
  436. if gender == MALE then
  437. elseif gender == FEMALE then
  438. end
  439. end
  440. end
  441. end
  442. end