GenericArmorsmithVoiceOvers.lua 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. --[[
  2. Script Name : SpawnScripts/Generic/GenericArmorsmithVoiceOvers.lua
  3. Script Purpose : Handles the generic hails for armorsmiths and tailors.
  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. function GenericArmorsmithHail(NPC, Spawn, Faction)
  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. elseif gender == FEMALE then
  39. end
  40. elseif race == DARK_ELF then
  41. if gender == MALE then
  42. elseif gender == FEMALE then
  43. end
  44. elseif race == DWARF then
  45. if gender == MALE then
  46. elseif gender == FEMALE then
  47. end
  48. elseif race == ERUDITE then
  49. if gender == MALE then
  50. elseif gender == FEMALE then
  51. end
  52. elseif race == FROGLOK then
  53. if gender == MALE then
  54. elseif gender == FEMALE then
  55. end
  56. elseif race == GNOME then
  57. if gender == MALE then
  58. elseif gender == FEMALE then
  59. end
  60. elseif race == HALF_ELF then
  61. if gender == MALE then
  62. PlayFlavor(NPC, "", "You can never be too careful when it comes to protection. Here, try on one of these.", "agree", 0, 0, Spawn)
  63. elseif gender == FEMALE then
  64. end
  65. elseif race == HALFLING then
  66. if gender == MALE then
  67. elseif gender == FEMALE then
  68. local choice = math.random(1, 3)
  69. if choice == 1 then
  70. Say(NPC, "You can never be too careful when it comes to protecting yourself. Why not try something new?", Spawn)
  71. elseif choice == 2 then
  72. PlayFlavor(NPC, "", "Your garb looks a mite worn. Can I interest you in a fine new set of armor?", "", 1689589577, 4560189, Spawn)
  73. else
  74. PlayFlavor(NPC, "", "Hello there! Can I interest you in some of the finest merchandise this side of Norrath?", "wave", 1689589577, 4560189, Spawn)
  75. end
  76. end
  77. elseif race == HIGH_ELF then
  78. if gender == MALE then
  79. elseif gender == FEMALE then
  80. end
  81. elseif race == HUMAN then
  82. if gender == MALE then
  83. elseif gender == FEMALE then
  84. end
  85. elseif race == IKSAR then
  86. if gender == MALE then
  87. elseif gender == FEMALE then
  88. end
  89. elseif race == KERRA then
  90. if gender == MALE then
  91. elseif gender == FEMALE then
  92. end
  93. elseif race == OGRE then
  94. if gender == MALE then
  95. elseif gender == FEMALE then
  96. end
  97. elseif race == RATONGA then
  98. if gender == MALE then
  99. elseif gender == FEMALE then
  100. end
  101. elseif race == TROLL then
  102. if gender == MALE then
  103. elseif gender == FEMALE then
  104. end
  105. elseif race == WOOD_ELF then
  106. if gender == MALE then
  107. elseif gender == FEMALE then
  108. end
  109. elseif race == FAE then
  110. if gender == MALE then
  111. elseif gender == FEMALE then
  112. end
  113. elseif race == ARASAI then
  114. if gender == MALE then
  115. elseif gender == FEMALE then
  116. end
  117. elseif race == SARNAK then
  118. if gender == MALE then
  119. elseif gender == FEMALE then
  120. end
  121. end
  122. end
  123. end
  124. end