GenericVoiceOvers.lua 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. --[[
  2. cript Name : SpawnScripts/Generic/GenericVoiceOvers.lua
  3. Script Purpose : Handles the generic hails for spawns.
  4. Script Author : Scatman
  5. Script Date : 2009.10.05
  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. function GenericHail(NPC, Spawn)
  30. if NPC ~= nil then
  31. local race = GetRace(NPC)
  32. local gender = GetGender(NPC)
  33. if race >= 0 and race <= 18 and gender >= 1 and gender <= 2 then
  34. local file_option = math.random(1, 3)
  35. local file_race_gender = 0
  36. if race == BARBARIAN then
  37. if gender == MALE then
  38. file_race_gender = 1002
  39. elseif gender == FEMALE then
  40. file_race_gender = 1001
  41. end
  42. elseif race == DARK_ELF then
  43. if gender == MALE then
  44. file_race_gender = 1008
  45. elseif gender == FEMALE then
  46. file_race_gender = 1007
  47. end
  48. elseif race == DWARF then
  49. if gender == MALE then
  50. file_race_gender = 1042
  51. elseif gender == FEMALE then
  52. file_race_gender = 1009
  53. end
  54. elseif race == ERUDITE then
  55. if gender == MALE then
  56. elseif gender == FEMALE then
  57. end
  58. elseif race == FROGLOK then
  59. if gender == MALE then
  60. file_race_gender = 1016
  61. elseif gender == FEMALE then
  62. file_race_gender = 1015
  63. end
  64. elseif race == GNOME then
  65. if gender == MALE then
  66. elseif gender == FEMALE then
  67. end
  68. elseif race == HALF_ELF then
  69. if gender == MALE then
  70. file_race_gender = 1022
  71. elseif gender == FEMALE then
  72. end
  73. elseif race == HALFLING then
  74. if gender == MALE then
  75. file_race_gender = 1006
  76. elseif gender == FEMALE then
  77. file_race_gender = 1005
  78. end
  79. elseif race == HIGH_ELF then
  80. if gender == MALE then
  81. file_race_gender = 1012
  82. elseif gender == FEMALE then
  83. file_race_gender = 1011
  84. end
  85. elseif race == HUMAN then
  86. if gender == MALE then
  87. file_race_gender = 1054
  88. elseif gender == FEMALE then
  89. file_race_gender = 1003
  90. end
  91. elseif race == IKSAR then
  92. if gender == MALE then
  93. elseif gender == FEMALE then
  94. end
  95. elseif race == KERRA then
  96. if gender == MALE then
  97. elseif gender == FEMALE then
  98. file_race_gender = 1035
  99. end
  100. elseif race == OGRE then
  101. if gender == MALE then
  102. elseif gender == FEMALE then
  103. end
  104. elseif race == RATONGA then
  105. if gender == MALE then
  106. elseif gender == FEMALE then
  107. end
  108. elseif race == TROLL then
  109. if gender == MALE then
  110. elseif gender == FEMALE then
  111. end
  112. elseif race == WOOD_ELF then
  113. if gender == MALE then
  114. elseif gender == FEMALE then
  115. end
  116. elseif race == FAE then
  117. if gender == MALE then
  118. elseif gender == FEMALE then
  119. end
  120. elseif race == ARASAI then
  121. if gender == MALE then
  122. elseif gender == FEMALE then
  123. end
  124. elseif race == SARNAK then
  125. if gender == MALE then
  126. file_race_gender = 1004
  127. elseif gender == FEMALE then
  128. file_race_gender = 1003
  129. end
  130. end
  131. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_" .. file_option .. "_" .. file_race_gender ..".mp3", "", "hello", 0, 0, Spawn)
  132. end
  133. end
  134. end