9
3

GenericGuardVoiceOvers.lua 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497
  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. if faction == 12 then -- Freeport Militia
  137. local choice = MakeRandomInt(1,4)
  138. if choice == 1 then
  139. PlayFlavor(NPC, "voiceover/english/halfelf_eco_evil_1/ft/service/guard/halfelf_guard_service_evil_1_hail_gm_7fa14d4.mp3", "Do not challenge my authority citizen. In Freeport, the Overlord's word is law!", "scold", 1754864091, 2519992839, Spawn, 0)
  140. elseif choice == 2 then
  141. PlayFlavor(NPC, "voiceover/english/halfelf_eco_evil_1/ft/service/guard/halfelf_guard_service_evil_1_hail_gm_870ae3cb.mp3", "The Overlord commands me to patrol this area, and so I must.", "tapfoot", 1380232703, 3690439064, Spawn, 0)
  142. elseif choice == 3 then
  143. PlayFlavor(NPC, "voiceover/english/halfelf_eco_evil_1/ft/service/guard/halfelf_guard_service_evil_1_hail_gm_edb196f8.mp3", "All praises to the Overlord. The Militia protects loyal citizens of Freeport.", "salute_freeport", 2179538941, 3128154335, Spawn, 0)
  144. elseif choice == 4 then
  145. PlayFlavor(NPC, "voiceover/english/halfelf_eco_evil_1/ft/service/guard/halfelf_guard_service_evil_1_hail_gm_582205e1.mp3", "Do you have business with the Freeport Militia?", "glare", 3166142927, 721856003, Spawn, 0)
  146. end
  147. end
  148. elseif gender == FEMALE then
  149. end
  150. elseif race == HALFLING then
  151. if gender == MALE then
  152. local choice = math.random(1, 10)
  153. if choice == 1 then
  154. 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)
  155. elseif choice == 2 then
  156. 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)
  157. elseif choice == 3 then
  158. 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)
  159. elseif choice == 4 then
  160. 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)
  161. elseif choice == 5 then
  162. 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)
  163. elseif choice == 6 then
  164. 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)
  165. elseif choice == 7 then
  166. 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)
  167. elseif choice == 8 then
  168. 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)
  169. elseif choice == 9 then
  170. 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)
  171. elseif choice == 10 then
  172. 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)
  173. end
  174. elseif gender == FEMALE then
  175. end
  176. elseif race == HIGH_ELF then
  177. if gender == MALE then
  178. local choice = math.random(1, 4)
  179. if choice == 1 then
  180. 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)
  181. elseif choice == 2 then
  182. 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)
  183. elseif choice == 3 then
  184. 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)
  185. elseif choice == 4 then
  186. 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)
  187. end
  188. elseif gender == FEMALE then
  189. local choice = math.random(1, 2)
  190. if choice == 1 then
  191. 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)
  192. elseif choice == 2 then
  193. 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)
  194. end
  195. end
  196. elseif race == HUMAN then
  197. if gender == MALE then
  198. if faction == 12 then -- Freeport Militia
  199. local choice = math.random(1, 4)
  200. if choice == 1 then
  201. 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)
  202. elseif choice == 2 then
  203. 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)
  204. elseif choice == 3 then
  205. 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)
  206. elseif choice == 4 then
  207. 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)
  208. end
  209. else
  210. local choice = math.random(1, 4)
  211. if choice == 1 then
  212. 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)
  213. elseif choice == 2 then
  214. 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)
  215. elseif choice == 3 then
  216. 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)
  217. elseif choice == 4 then
  218. 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)
  219. end
  220. end
  221. elseif gender == FEMALE then
  222. if faction == 12 then -- Freeport Militia
  223. local choice = math.random(1, 4)
  224. if choice == 1 then
  225. 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)
  226. elseif choice == 2 then
  227. 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)
  228. elseif choice == 3 then
  229. 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)
  230. else
  231. 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)
  232. end
  233. else
  234. local choice = math.random(1, 4)
  235. if choice == 1 then
  236. 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)
  237. elseif choice == 2 then
  238. 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)
  239. elseif choice == 3 then
  240. 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)
  241. elseif choice == 4 then
  242. 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)
  243. end
  244. end
  245. end
  246. elseif race == IKSAR then
  247. if gender == MALE then
  248. elseif gender == FEMALE then
  249. end
  250. elseif race == KERRA then
  251. if gender == MALE then
  252. local choice = math.random(1, 4)
  253. if choice == 1 then
  254. 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)
  255. elseif choice == 2 then
  256. 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)
  257. elseif choice == 3 then
  258. 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)
  259. elseif choice == 4 then
  260. 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)
  261. end
  262. elseif gender == FEMALE then
  263. end
  264. elseif race == OGRE then
  265. if gender == MALE then
  266. local choice = math.random(1, 4)
  267. if choice == 1 then
  268. 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)
  269. elseif choice == 2 then
  270. 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)
  271. elseif choice == 3 then
  272. 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)
  273. elseif choice == 4 then
  274. 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)
  275. end
  276. elseif gender == FEMALE then
  277. local choice = math.random(1, 4)
  278. if choice == 1 then
  279. 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)
  280. elseif choice == 2 then
  281. 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)
  282. elseif choice == 3 then
  283. 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)
  284. elseif choice == 4 then
  285. PlayFlavor(NPC, "voiceover/english/ogre_eco_evil_1/ft/service/guard/ogre_guard_service_evil_1_hail_gf_582205e1.mp3", "Do you have business with the Freeport Militia?", "glare", 317902417, 868225324, Spawn)
  286. end
  287. end
  288. elseif race == RATONGA then
  289. if gender == MALE then
  290. elseif gender == FEMALE then
  291. local choice = math.random(1, 4)
  292. if choice == 1 then
  293. 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)
  294. elseif choice == 2 then
  295. 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)
  296. elseif choice == 3 then
  297. 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)
  298. else
  299. 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)
  300. end
  301. end
  302. elseif race == TROLL then
  303. if gender == MALE then
  304. elseif gender == FEMALE then
  305. end
  306. elseif race == WOOD_ELF then
  307. if gender == MALE then
  308. elseif gender == FEMALE then
  309. end
  310. elseif race == FAE then
  311. if gender == MALE then
  312. elseif gender == FEMALE then
  313. end
  314. elseif race == ARASAI then
  315. if gender == MALE then
  316. elseif gender == FEMALE then
  317. end
  318. elseif race == SARNAK then
  319. if gender == MALE then
  320. elseif gender == FEMALE then
  321. end
  322. end
  323. end
  324. end
  325. end
  326. function CheckFaction(NPC, Spawn, City)
  327. if NPC ~= nil and Spawn ~= nil and City ~= nil then
  328. faction_amount = 0
  329. if City == "Qeynos" then
  330. faction_amount = GetFactionAmount(Spawn, QEYNOS)
  331. elseif City == "Freeport" then
  332. faction_amount = GetFactionAmount(Spawn, FREEPORT)
  333. end
  334. if faction_amount >= 40000 then
  335. -- FaceTarget(NPC, Spawn)
  336. PlayFlavor(NPC, "", "", "cheer", 0, 0, Spawn)
  337. SendMessage(Spawn, GetName(NPC) .. " cheers at you.")
  338. elseif faction_amount >= 30000 then
  339. -- FaceTarget(NPC, Spawn)
  340. PlayFlavor(NPC, "", "", "salute", 0, 0, Spawn)
  341. SendMessage(Spawn, GetName(NPC) .. " salutes you.")
  342. elseif faction_amount <= -20000 then
  343. --FaceTarget(NPC, Spawn)
  344. --PlayFlavor(NPC, "", "", "cheer", 0, 0, Spawn)
  345. SendMessage(Spawn, GetName(NPC) .. " scowls at you.")
  346. end
  347. end
  348. end
  349. function aggro(NPC, Spawn, Faction)
  350. if NPC ~= nil then
  351. local race = GetRace(NPC)
  352. local gender = GetGender(NPC)
  353. local faction = GetFactionID(NPC)
  354. if race >= 0 and race <= 18 and gender >= 1 and gender <= 2 then
  355. local file_option = math.random(1, 3)
  356. local file_race_gender = 0
  357. if race == BARBARIAN then
  358. if gender == MALE then
  359. 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)
  360. elseif gender == FEMALE then
  361. PlayFlavor(NPC, "", "For the glory of Qeynos!", "", 565962733, 3617633467)
  362. end
  363. elseif race == DARK_ELF then
  364. if gender == MALE then
  365. 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)
  366. elseif gender == FEMALE then
  367. local choice = math.random(1, 4)
  368. 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)
  369. end
  370. elseif race == DWARF then
  371. if gender == MALE then
  372. 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)
  373. elseif gender == FEMALE then
  374. PlayFlavor(NPC, "voiceover/english/dwarf_eco_good_1/ft/service/guard/dwarf_guard_service_good_1_kill_gf_2b7f45ad.mp3", "For the glory of Qeynos!", "", 1964289468, 4158765460)
  375. end
  376. elseif race == ERUDITE then
  377. if gender == MALE then
  378. local choice = math.random(1, 4)
  379. local choice = math.random(1, 4)
  380. PlayFlavor(NPC, "", "For the glory of Qeynos!", "", 0, 0)
  381. elseif gender == FEMALE then
  382. local choice = math.random(1, 4)
  383. PlayFlavor(NPC, "", "For the glory of Qeynos!", "", 0, 0)
  384. end
  385. elseif race == FROGLOK then
  386. if gender == MALE then
  387. elseif gender == FEMALE then
  388. end
  389. elseif race == GNOME then
  390. if gender == MALE then
  391. PlayFlavor(NPC, "voiceover/english/dwarf_eco_good_1/ft/service/guard/gnome_guard_service_good_1_kill_gm_2b7f45ad.mp3", "For the glory of Qeynos!", "", 1964289468, 4158765460)
  392. elseif gender == FEMALE then
  393. end
  394. elseif race == HALF_ELF then
  395. if gender == MALE then
  396. elseif gender == FEMALE then
  397. end
  398. elseif race == HALFLING then
  399. if gender == MALE then
  400. PlayFlavor(NPC, "", "For the glory of Qeynos!", "", 1964289468, 4158765460)
  401. elseif gender == FEMALE then
  402. end
  403. elseif race == HIGH_ELF then
  404. if gender == MALE then
  405. 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)
  406. elseif gender == FEMALE then
  407. PlayFlavor(NPC, "", "For the glory of Qeynos!", "", 565962733, 3617633467, Spawn)
  408. end
  409. elseif race == HUMAN then
  410. if gender == MALE then
  411. if faction == 12 then -- Freeport Militia
  412. PlayFlavor(NPC, "", "Death to the enemies of Lucan!", "", 0, 0, Spawn)
  413. else
  414. 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)
  415. end
  416. elseif gender == FEMALE then
  417. if faction == 12 then -- Freeport Militia
  418. 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)
  419. else
  420. 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)
  421. end
  422. end
  423. elseif race == IKSAR then
  424. if gender == MALE then
  425. PlayFlavor(NPC, "", "Death to the enemies of Lucan!", "", 0, 0, Spawn)
  426. elseif gender == FEMALE then
  427. PlayFlavor(NPC, "", "Death to the enemies of Lucan!", "", 0, 0, Spawn)
  428. end
  429. elseif race == KERRA then
  430. if gender == MALE then
  431. elseif gender == FEMALE then
  432. end
  433. elseif race == OGRE then
  434. if gender == MALE then
  435. 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)
  436. elseif gender == FEMALE then
  437. 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)
  438. end
  439. elseif race == RATONGA then
  440. if gender == MALE then
  441. elseif gender == FEMALE then
  442. end
  443. elseif race == TROLL then
  444. if gender == MALE then
  445. elseif gender == FEMALE then
  446. end
  447. elseif race == WOOD_ELF then
  448. if gender == MALE then
  449. PlayFlavor(NPC, "", "For the glory of Qeynos!", "", 565962733, 3617633467, Spawn)
  450. elseif gender == FEMALE then
  451. PlayFlavor(NPC, "", "For the glory of Qeynos!", "", 565962733, 3617633467, Spawn)
  452. end
  453. elseif race == FAE then
  454. if gender == MALE then
  455. elseif gender == FEMALE then
  456. end
  457. elseif race == ARASAI then
  458. if gender == MALE then
  459. elseif gender == FEMALE then
  460. end
  461. elseif race == SARNAK then
  462. if gender == MALE then
  463. elseif gender == FEMALE then
  464. end
  465. end
  466. end
  467. end
  468. end