aGraystoneGuildbruiserDojoBarbarian570757.lua 38 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730
  1. --[[
  2. Script Name : SpawnScripts/qeynos_combined02/aGraystoneGuildbruiserDojoBarbarian570757.lua
  3. Script Author : Rylec
  4. Script Date : 2021.03.07 06:03:16
  5. Script Purpose :
  6. :
  7. --]]
  8. function spawn(NPC)
  9. local model = MakeRandomInt(1,6)
  10. if model == 1 then
  11. SetModelType(NPC, "132") -- human female
  12. SpawnSet(NPC, "soga_model_type", "132")
  13. SpawnSet(NPC, "chest_type", "5529")
  14. SpawnSet(NPC, "legs_type", "5530")
  15. HumanCosmetics(NPC)
  16. elseif model == 2 then
  17. SetModelType(NPC, "134") -- human male
  18. SpawnSet(NPC, "soga_model_type", "134")
  19. SpawnSet(NPC, "chest_type", "5533")
  20. SpawnSet(NPC, "legs_type", "5534")
  21. HumanCosmetics(NPC)
  22. elseif model == 3 then
  23. SetModelType(NPC, "109") -- dwarf female
  24. SpawnSet(NPC, "soga_model_type", "109")
  25. SpawnSet(NPC, "chest_type", "5473")
  26. SpawnSet(NPC, "legs_type", "5474")
  27. DwarfCosmetics(NPC)
  28. elseif model == 4 then
  29. SetModelType(NPC, "110") -- dwarf male
  30. SpawnSet(NPC, "soga_model_type", "110")
  31. SpawnSet(NPC, "chest_type", "5477")
  32. SpawnSet(NPC, "legs_type", "5478")
  33. DwarfCosmetics(NPC)
  34. elseif model == 5 then
  35. SetModelType(NPC, "111") -- barbarian female
  36. SpawnSet(NPC, "soga_model_type", "111")
  37. SpawnSet(NPC, "chest_type", "5457")
  38. SpawnSet(NPC, "legs_type", "5458")
  39. BarbarianCosmetics(NPC)
  40. else
  41. local BarbarianMale = MakeRandomInt(1467,1471)
  42. SetModelType(NPC, "112") -- barbarian male
  43. SpawnSet(NPC, "soga_model_type", "112")
  44. SpawnSet(NPC, "chest_type", "5461")
  45. SpawnSet(NPC, "legs_type", "5462")
  46. BarbarianCosmetics(NPC)
  47. end
  48. SetEquipment(NPC, 3, 991, 255, 255, 255, 255, 255, 255)
  49. SetEquipment(NPC, 7, 4570, 255, 255, 255, 255, 255, 255)
  50. SetEquipment(NPC, 8, 992, 255, 255, 255, 255, 255, 255)
  51. local Forearms_chance = MakeRandomInt(1,100)
  52. if Forearms_chance < 51 then
  53. SetEquipment(NPC, 5, 1009, 255, 255, 255, 255, 255, 255)
  54. else
  55. SetEquipment(NPC, 5, 0)
  56. end
  57. SetPlayerProximityFunction(NPC, 20, "InRange")
  58. AddTimer(NPC, 3000, "EmoteLoop")
  59. end
  60. function hailed(NPC, Spawn)
  61. FaceTarget(NPC, Spawn)
  62. InRange(NPC)
  63. end
  64. function InRange(NPC, Spawn)
  65. FaceTarget(NPC, Spawn)
  66. local Type = GetModelType(NPC)
  67. local choice = MakeRandomInt(1,2)
  68. if Type == 132 then
  69. if choice == 1 then
  70. PlayFlavor(NPC, "voiceover/english/human_eco_race_good/ft/eco/good/human_eco_race_good_hail_gf_2d0e8823.mp3", "Almost time to stop and have an ale, isn't it?", "wink", 1106325239, 2982056892, Spawn)
  71. else
  72. PlayFlavor(NPC, "voiceover/english/human_eco_race_good/ft/eco/good/human_eco_race_good_hail_gf_837968a9.mp3", "Oh, my aching back! As good a time to stop and chat as any, I say.", "yawn", 3270846909, 2717985314, Spawn)
  73. end
  74. elseif Type == 134 then
  75. if choice == 1 then
  76. PlayFlavor(NPC, "", "Almost time to stop and have an ale, isn't it?", "", 0, 0, Spawn)
  77. else
  78. PlayFlavor(NPC, "", "Oh, my aching back! As good a time to stop and chat as any, I say.", "yawn", 0, 0, Spawn)
  79. end
  80. elseif Type == 109 then
  81. if choice == 1 then
  82. PlayFlavor(NPC, "voiceover/english/dwarf_eco_race_good/ft/eco/good/dwarf_eco_race_good_hail_gf_bce06b4a.mp3", "A hard day of adventuring makes one long for home, don't it?", "", 2210732036, 3144200859, Spawn)
  83. else
  84. PlayFlavor(NPC, "voiceover/english/dwarf_eco_race_good/ft/eco/good/dwarf_eco_race_good_hail_gf_c221a26e.mp3", "Ah, what I wouldn't give to be cradling a mug of good dwarven ale.", "", 409704670, 4015848226, Spawn)
  85. end
  86. elseif Type == 110 then
  87. if choice == 1 then
  88. PlayFlavor(NPC, "", "A hard day of adventuring makes one long for home, don't it?", "", 0, 0, Spawn)
  89. else
  90. PlayFlavor(NPC, "", "Ah, what I wouldn't give to be cradling a mug of good dwarven ale.", "", 0, 0, Spawn)
  91. end
  92. elseif Type == 111 then
  93. if choice == 1 then
  94. PlayFlavor(NPC, "", "I'm not used to this weather, but my people can adapt to any change in order to survive.", "", 0, 0, Spawn)
  95. else
  96. PlayFlavor(NPC, "", "Treasures from the past can be found throughout the lands, for those who care to look.", "", 0, 0, Spawn)
  97. end
  98. elseif Type == 112 then
  99. if choice == 1 then
  100. PlayFlavor(NPC, "voiceover/english/barbarian_eco_race_good/ft/eco/good/barbarian_eco_race_good_hail_gm_d571c130.mp3", "I'm not used to this weather, but my people can adapt to any change in order to survive.", "", 3421348121, 1004876500, Spawn)
  101. else
  102. PlayFlavor(NPC, "voiceover/english/barbarian_eco_race_good/ft/eco/good/barbarian_eco_race_good_hail_gm_5a6b643f.mp3", "Treasures from the past can be found throughout the lands, for those who care to look.", "", 3614931515, 1601871948, Spawn)
  103. end
  104. end
  105. end
  106. function respawn(NPC)
  107. spawn(NPC)
  108. end
  109. function BarbarianCosmetics(NPC)
  110. local Type = GetModelType(NPC)
  111. local HairType = 0
  112. if Type == 111 then
  113. HairType = MakeRandomInt(1136,1140)
  114. SpawnSet(NPC, "hair_type", HairType)
  115. SpawnSet(NPC, "soga_hair_type", HairType)
  116. else
  117. HairType = MakeRandomInt(1133,1140)
  118. SpawnSet(NPC, "hair_type", HairType)
  119. SpawnSet(NPC, "soga_hair_type", HairType)
  120. end
  121. local FaceHairType = MakeRandomInt(1185,1189)
  122. SpawnSet(NPC, "facial_hair_type", FaceHairType)
  123. SpawnSet(NPC, "soga_facial_hair_type", FaceHairType)
  124. local overall_look = MakeRandomInt(1,6)
  125. if overall_look == 1 then -- Light chestnut (yellowish)
  126. SpawnSet(NPC, "skin_color", "206 162 137")
  127. SpawnSet(NPC, "soga_skin_color", "206 162 137")
  128. SpawnSet(NPC, "eye_color", "47 100 102")
  129. SpawnSet(NPC, "soga_eye_color", "47 100 102")
  130. SpawnSet(NPC, "hair_type_color", "37 22 5")
  131. SpawnSet(NPC, "soga_hair_type_color", "37 22 5")
  132. SpawnSet(NPC, "hair_face_color", "37 22 5")
  133. SpawnSet(NPC, "soga_hair_face_color", "37 22 5")
  134. SpawnSet(NPC, "hair_type_highlight_color", "27 15 35")
  135. SpawnSet(NPC, "soga_hair_type_highlight_color", "27 15 35")
  136. SpawnSet(NPC, "hair_face_highlight_color", "27 15 35")
  137. SpawnSet(NPC, "soga_hair_face_highlight_color", "27 15 35")
  138. SpawnSet(NPC, "hair_color1", "79 28 15")
  139. SpawnSet(NPC, "soga_hair_color1", "79 28 15")
  140. SpawnSet(NPC, "hair_color2", "111 64 0")
  141. SpawnSet(NPC, "soga_hair_color2", "111 64 0")
  142. SpawnSet(NPC, "hair_highlight", "29 21 28")
  143. SpawnSet(NPC, "soga_hair_highlight", "29 21 28")
  144. elseif overall_look == 2 then -- White
  145. SpawnSet(NPC, "skin_color", "229 215 216")
  146. SpawnSet(NPC, "soga_skin_color", "229 215 216")
  147. SpawnSet(NPC, "eye_color", "47 95 110")
  148. SpawnSet(NPC, "soga_eye_color", "47 95 110")
  149. SpawnSet(NPC, "hair_type_color", "119 147 147")
  150. SpawnSet(NPC, "soga_hair_type_color", "119 147 147")
  151. SpawnSet(NPC, "hair_face_color", "119 147 147")
  152. SpawnSet(NPC, "soga_hair_face_color", "119 147 147")
  153. SpawnSet(NPC, "hair_type_highlight_color", "193 100 45")
  154. SpawnSet(NPC, "soga_hair_type_highlight_color", "193 100 45")
  155. SpawnSet(NPC, "hair_face_highlight_color", "193 100 45")
  156. SpawnSet(NPC, "soga_hair_face_highlight_color", "193 100 45")
  157. SpawnSet(NPC, "hair_color1", "114 112 142")
  158. SpawnSet(NPC, "soga_hair_color1", "114 112 142")
  159. SpawnSet(NPC, "hair_color2", "152 138 129")
  160. SpawnSet(NPC, "soga_hair_color2", "152 138 129")
  161. SpawnSet(NPC, "hair_highlight", "105 26 26")
  162. SpawnSet(NPC, "soga_hair_highlight", "105 26 26")
  163. elseif overall_look == 3 then -- Bright yellow
  164. SpawnSet(NPC, "skin_color", "191 197 197")
  165. SpawnSet(NPC, "soga_skin_color", "191 197 197")
  166. SpawnSet(NPC, "eye_color", "38 78 71")
  167. SpawnSet(NPC, "soga_eye_color", "38 78 71")
  168. SpawnSet(NPC, "hair_type_color", "190 133 13")
  169. SpawnSet(NPC, "soga_hair_type_color", "190 133 13")
  170. SpawnSet(NPC, "hair_face_color", "190 133 13")
  171. SpawnSet(NPC, "soga_hair_face_color", "190 133 13")
  172. SpawnSet(NPC, "hair_type_highlight_color", "233 184 31")
  173. SpawnSet(NPC, "soga_hair_type_highlight_color", "233 184 31")
  174. SpawnSet(NPC, "hair_face_highlight_color", "233 184 31")
  175. SpawnSet(NPC, "soga_hair_face_highlight_color", "233 184 31")
  176. SpawnSet(NPC, "hair_color1", "209 131 22")
  177. SpawnSet(NPC, "soga_hair_color1", "209 131 22")
  178. SpawnSet(NPC, "hair_color2", "199 150 48")
  179. SpawnSet(NPC, "soga_hair_color2", "199 150 48")
  180. SpawnSet(NPC, "hair_highlight", "246 219 114")
  181. SpawnSet(NPC, "soga_hair_highlight", "246 219 114")
  182. elseif overall_look == 4 then -- Chestnut
  183. SpawnSet(NPC, "skin_color", "166 167 167")
  184. SpawnSet(NPC, "soga_skin_color", "166 167 167")
  185. SpawnSet(NPC, "eye_color", "52 104 87")
  186. SpawnSet(NPC, "soga_eye_color", "52 104 87")
  187. SpawnSet(NPC, "hair_type_color", "0 0 0")
  188. SpawnSet(NPC, "soga_hair_type_color", "0 0 0")
  189. SpawnSet(NPC, "hair_face_color", "0 0 0")
  190. SpawnSet(NPC, "soga_hair_face_color", "0 0 0")
  191. SpawnSet(NPC, "hair_type_highlight_color", "0 0 0")
  192. SpawnSet(NPC, "soga_hair_type_highlight_color", "0 0 0")
  193. SpawnSet(NPC, "hair_face_highlight_color", "0 0 0")
  194. SpawnSet(NPC, "soga_hair_face_highlight_color", "0 0 0")
  195. SpawnSet(NPC, "hair_color1", "38 22 21")
  196. SpawnSet(NPC, "soga_hair_color1", "38 22 21")
  197. SpawnSet(NPC, "hair_color2", "120 50 0")
  198. SpawnSet(NPC, "soga_hair_color2", "120 50 0")
  199. SpawnSet(NPC, "hair_highlight", "54 45 28")
  200. SpawnSet(NPC, "soga_hair_highlight", "54 45 28")
  201. elseif overall_look == 5 then -- Dark yellow
  202. SpawnSet(NPC, "skin_color", "191 197 197")
  203. SpawnSet(NPC, "soga_skin_color", "191 197 197")
  204. SpawnSet(NPC, "eye_color", "35 75 76")
  205. SpawnSet(NPC, "soga_eye_color", "35 75 76")
  206. SpawnSet(NPC, "hair_type_color", "97 67 10")
  207. SpawnSet(NPC, "soga_hair_type_color", "97 67 10")
  208. SpawnSet(NPC, "hair_face_color", "97 67 10")
  209. SpawnSet(NPC, "soga_hair_face_color", "97 67 10")
  210. SpawnSet(NPC, "hair_type_highlight_color", "139 47 30")
  211. SpawnSet(NPC, "soga_hair_type_highlight_color", "139 47 30")
  212. SpawnSet(NPC, "hair_face_highlight_color", "139 47 30")
  213. SpawnSet(NPC, "soga_hair_face_highlight_color", "139 47 30")
  214. SpawnSet(NPC, "hair_color1", "56 33 26")
  215. SpawnSet(NPC, "soga_hair_color1", "56 33 26")
  216. SpawnSet(NPC, "hair_color2", "94 59 11")
  217. SpawnSet(NPC, "soga_hair_color2", "94 59 11")
  218. SpawnSet(NPC, "hair_highlight", "91 21 51")
  219. SpawnSet(NPC, "soga_hair_highlight", "91 21 51")
  220. elseif overall_look == 6 then -- Dark yellow NY
  221. SpawnSet(NPC, "skin_color", "191 197 197")
  222. SpawnSet(NPC, "soga_skin_color", "191 197 197")
  223. SpawnSet(NPC, "eye_color", "38 78 71")
  224. SpawnSet(NPC, "soga_eye_color", "38 78 71")
  225. SpawnSet(NPC, "hair_type_color", "190 133 13")
  226. SpawnSet(NPC, "soga_hair_type_color", "190 133 13")
  227. SpawnSet(NPC, "hair_face_color", "190 133 13")
  228. SpawnSet(NPC, "soga_hair_face_color", "190 133 13")
  229. SpawnSet(NPC, "hair_type_highlight_color", "233 184 31")
  230. SpawnSet(NPC, "soga_hair_type_highlight_color", "233 184 31")
  231. SpawnSet(NPC, "hair_face_highlight_color", "233 184 31")
  232. SpawnSet(NPC, "soga_hair_face_highlight_color", "233 184 31")
  233. SpawnSet(NPC, "hair_color1", "209 131 22")
  234. SpawnSet(NPC, "soga_hair_color1", "209 131 22")
  235. SpawnSet(NPC, "hair_color2", "199 150 48")
  236. SpawnSet(NPC, "soga_hair_color2", "199 150 48")
  237. SpawnSet(NPC, "hair_highlight", "246 219 114")
  238. SpawnSet(NPC, "soga_hair_highlight", "246 219 114")
  239. end
  240. end
  241. function DwarfCosmetics(NPC)
  242. local Type = GetModelType(NPC)
  243. local HairType = 0
  244. if Type == 109 then
  245. HairType = MakeRandomInt(1135,1140)
  246. SpawnSet(NPC, "hair_type", HairType)
  247. SpawnSet(NPC, "soga_hair_type", HairType)
  248. else
  249. HairType = MakeRandomInt(1136,1140)
  250. local bald_chance = MakeRandomInt(1,100)
  251. if bald_chance < 11 then
  252. SpawnSet(NPC, "hair_type", "0")
  253. SpawnSet(NPC, "soga_hair_type", "0")
  254. else
  255. SpawnSet(NPC, "hair_type", HairType)
  256. SpawnSet(NPC, "soga_hair_type", HairType)
  257. end
  258. end
  259. local FaceHairType = MakeRandomInt(1164,1191)
  260. if Type == 109 then
  261. local beard_chance = MakeRandomInt(1,100)
  262. if beard_chance < 11 then
  263. SpawnSet(NPC, "facial_hair_type", FaceHairType)
  264. SpawnSet(NPC, "soga_facial_hair_type", FaceHairType)
  265. else
  266. SpawnSet(NPC, "facial_hair_type", "0")
  267. SpawnSet(NPC, "soga_facial_hair_type", "0")
  268. end
  269. else
  270. SpawnSet(NPC, "facial_hair_type", FaceHairType)
  271. SpawnSet(NPC, "soga_facial_hair_type", FaceHairType)
  272. end
  273. local overall_look = MakeRandomInt(1,7)
  274. if overall_look == 1 then -- Dark beige
  275. SpawnSet(NPC, "skin_color", "225 171 169")
  276. SpawnSet(NPC, "soga_skin_color", "225 171 169")
  277. SpawnSet(NPC, "eye_color", "70 59 31")
  278. SpawnSet(NPC, "soga_eye_color", "70 59 31")
  279. SpawnSet(NPC, "hair_type_color", "83 77 59")
  280. SpawnSet(NPC, "soga_hair_type_color", "83 77 59")
  281. SpawnSet(NPC, "hair_face_color", "83 77 59")
  282. SpawnSet(NPC, "soga_hair_face_color", "83 77 59")
  283. SpawnSet(NPC, "hair_type_highlight_color", "75 47 0")
  284. SpawnSet(NPC, "soga_hair_type_highlight_color", "75 47 0")
  285. SpawnSet(NPC, "hair_face_highlight_color", "75 47 0")
  286. SpawnSet(NPC, "soga_hair_face_highlight_color", "75 47 0")
  287. elseif overall_look == 2 then -- Light reddish beige
  288. SpawnSet(NPC, "skin_color", "224 178 171")
  289. SpawnSet(NPC, "soga_skin_color", "224 178 171")
  290. SpawnSet(NPC, "eye_color", "59 119 134")
  291. SpawnSet(NPC, "soga_eye_color", "59 119 134")
  292. SpawnSet(NPC, "hair_type_color", "213 133 99")
  293. SpawnSet(NPC, "soga_hair_type_color", "213 133 99")
  294. SpawnSet(NPC, "hair_face_color", "213 133 99")
  295. SpawnSet(NPC, "soga_hair_face_color", "213 133 99")
  296. SpawnSet(NPC, "hair_type_highlight_color", "93 33 15")
  297. SpawnSet(NPC, "soga_hair_type_highlight_color", "93 33 15")
  298. SpawnSet(NPC, "hair_face_highlight_color", "93 33 15")
  299. SpawnSet(NPC, "soga_hair_face_highlight_color", "93 33 15")
  300. elseif overall_look == 3 then -- Dark brown
  301. SpawnSet(NPC, "skin_color", "213 189 156")
  302. SpawnSet(NPC, "soga_skin_color", "213 189 156")
  303. SpawnSet(NPC, "eye_color", "50 62 34")
  304. SpawnSet(NPC, "soga_eye_color", "50 62 34")
  305. SpawnSet(NPC, "hair_type_color", "61 52 29")
  306. SpawnSet(NPC, "soga_hair_type_color", "61 52 29")
  307. SpawnSet(NPC, "hair_face_color", "61 52 29")
  308. SpawnSet(NPC, "soga_hair_face_color", "61 52 29")
  309. SpawnSet(NPC, "hair_type_highlight_color", "56 47 2")
  310. SpawnSet(NPC, "soga_hair_type_highlight_color", "56 47 2")
  311. SpawnSet(NPC, "hair_face_highlight_color", "56 47 2")
  312. SpawnSet(NPC, "soga_hair_face_highlight_color", "56 47 2")
  313. elseif overall_look == 4 then -- Dark Chestnut
  314. SpawnSet(NPC, "skin_color", "200 198 174")
  315. SpawnSet(NPC, "soga_skin_color", "200 198 174")
  316. SpawnSet(NPC, "eye_color", "34 70 78")
  317. SpawnSet(NPC, "soga_eye_color", "34 70 78")
  318. SpawnSet(NPC, "hair_type_color", "36 22 6")
  319. SpawnSet(NPC, "soga_hair_type_color", "36 22 6")
  320. SpawnSet(NPC, "hair_face_color", "36 22 6")
  321. SpawnSet(NPC, "soga_hair_face_color", "36 22 6")
  322. SpawnSet(NPC, "hair_type_highlight_color", "50 41 28")
  323. SpawnSet(NPC, "soga_hair_type_highlight_color", "50 41 28")
  324. SpawnSet(NPC, "hair_face_highlight_color", "50 41 28")
  325. SpawnSet(NPC, "soga_hair_face_highlight_color", "50 41 28")
  326. elseif overall_look == 5 then -- Dark orange
  327. SpawnSet(NPC, "skin_color", "196 146 123")
  328. SpawnSet(NPC, "soga_skin_color", "196 146 123")
  329. SpawnSet(NPC, "eye_color", "121 176 192")
  330. SpawnSet(NPC, "soga_eye_color", "121 176 192")
  331. SpawnSet(NPC, "hair_type_color", "119 43 9")
  332. SpawnSet(NPC, "soga_hair_type_color", "119 43 9")
  333. SpawnSet(NPC, "hair_face_color", "119 43 9")
  334. SpawnSet(NPC, "soga_hair_face_color", "119 43 9")
  335. SpawnSet(NPC, "hair_type_highlight_color", "66 28 9")
  336. SpawnSet(NPC, "soga_hair_type_highlight_color", "66 28 9")
  337. SpawnSet(NPC, "hair_face_highlight_color", "66 28 9")
  338. SpawnSet(NPC, "soga_hair_face_highlight_color", "66 28 9")
  339. elseif overall_look == 6 then -- White (light grey/yellowish)
  340. SpawnSet(NPC, "skin_color", "245 248 246")
  341. SpawnSet(NPC, "soga_skin_color", "245 248 246")
  342. SpawnSet(NPC, "eye_color", "131 163 133")
  343. SpawnSet(NPC, "soga_eye_color", "131 163 133")
  344. SpawnSet(NPC, "hair_type_color", "247 239 212")
  345. SpawnSet(NPC, "soga_hair_type_color", "247 239 212")
  346. SpawnSet(NPC, "hair_face_color", "247 239 212")
  347. SpawnSet(NPC, "soga_hair_face_color", "247 239 212")
  348. SpawnSet(NPC, "hair_type_highlight_color", "54 47 3")
  349. SpawnSet(NPC, "soga_hair_type_highlight_color", "54 47 3")
  350. SpawnSet(NPC, "hair_face_highlight_color", "54 47 3")
  351. SpawnSet(NPC, "soga_hair_face_highlight_color", "54 47 3")
  352. elseif overall_look == 7 then -- Light beige
  353. SpawnSet(NPC, "skin_color", "209 217 217")
  354. SpawnSet(NPC, "soga_skin_color", "209 217 217")
  355. SpawnSet(NPC, "eye_color", "97 105 57")
  356. SpawnSet(NPC, "soga_eye_color", "97 105 57")
  357. SpawnSet(NPC, "hair_type_color", "159 155 143")
  358. SpawnSet(NPC, "soga_hair_type_color", "159 155 143")
  359. SpawnSet(NPC, "hair_face_color", "159 155 143")
  360. SpawnSet(NPC, "soga_hair_face_color", "159 155 143")
  361. SpawnSet(NPC, "hair_type_highlight_color", "165 155 144")
  362. SpawnSet(NPC, "soga_hair_type_highlight_color", "165 155 144")
  363. SpawnSet(NPC, "hair_face_highlight_color", "165 155 144")
  364. SpawnSet(NPC, "soga_hair_face_highlight_color", "165 155 144")
  365. end
  366. end
  367. function HumanCosmetics(NPC)
  368. local hair = MakeRandomInt(1121,1140)
  369. SpawnSet(NPC, "hair_type", hair)
  370. SpawnSet(NPC, "soga_hair_type", hair)
  371. local beard = MakeRandomInt(1164,1191)
  372. local beard_chance = MakeRandomInt(1,100)
  373. if beard_chance < 51 then
  374. SpawnSet(NPC, "facial_hair_type", "0")
  375. SpawnSet(NPC, "soga_facial_hair_type", "0")
  376. else
  377. SpawnSet(NPC, "facial_hair_type", beard)
  378. SpawnSet(NPC, "soga_facial_hair_type", beard)
  379. end
  380. local overall_look = MakeRandomInt(1,14)
  381. if overall_look == 1 then -- Bright yellow
  382. SpawnSet(NPC, "skin_color", "206 162 137")
  383. SpawnSet(NPC, "soga_skin_color", "206 162 137")
  384. SpawnSet(NPC, "eye_color", "47 100 102")
  385. SpawnSet(NPC, "soga_eye_color", "47 100 102")
  386. SpawnSet(NPC, "hair_type_color", "194 164 6")
  387. SpawnSet(NPC, "soga_hair_type_color", "194 164 6")
  388. SpawnSet(NPC, "hair_face_color", "194 164 6")
  389. SpawnSet(NPC, "soga_hair_face_color", "194 164 6")
  390. SpawnSet(NPC, "hair_type_highlight_color", "188 168 37")
  391. SpawnSet(NPC, "soga_hair_type_highlight_color", "188 168 37")
  392. SpawnSet(NPC, "hair_face_highlight_color", "188 168 37")
  393. SpawnSet(NPC, "soga_hair_face_highlight_color", "188 168 37")
  394. SpawnSet(NPC, "hair_color1", "0 0 0")
  395. SpawnSet(NPC, "soga_hair_color1", "0 0 0")
  396. SpawnSet(NPC, "hair_color2", "0 0 0")
  397. SpawnSet(NPC, "soga_hair_color2", "0 0 0")
  398. SpawnSet(NPC, "hair_highlight", "0 0 0")
  399. SpawnSet(NPC, "soga_hair_highlight", "0 0 0")
  400. elseif overall_look == 2 then -- Extra light chestnut (towards yellow)
  401. SpawnSet(NPC, "skin_color", "241 245 221")
  402. SpawnSet(NPC, "soga_skin_color", "241 245 221")
  403. SpawnSet(NPC, "eye_color", "38 65 40")
  404. SpawnSet(NPC, "soga_eye_color", "38 65 40")
  405. SpawnSet(NPC, "hair_type_color", "100 70 10")
  406. SpawnSet(NPC, "soga_hair_type_color", "100 70 10")
  407. SpawnSet(NPC, "hair_face_color", "100 70 10")
  408. SpawnSet(NPC, "soga_hair_face_color", "100 70 10")
  409. SpawnSet(NPC, "hair_type_highlight_color", "231 170 26")
  410. SpawnSet(NPC, "soga_hair_type_highlight_color", "231 170 26")
  411. SpawnSet(NPC, "hair_face_highlight_color", "231 170 26")
  412. SpawnSet(NPC, "soga_hair_face_highlight_color", "231 170 26")
  413. SpawnSet(NPC, "hair_color1", "56 33 26")
  414. SpawnSet(NPC, "soga_hair_color1", "56 33 26")
  415. SpawnSet(NPC, "hair_color2", "94 59 11")
  416. SpawnSet(NPC, "soga_hair_color2", "94 59 11")
  417. SpawnSet(NPC, "hair_highlight", "200 165 96")
  418. SpawnSet(NPC, "soga_hair_highlight", "200 165 96")
  419. elseif overall_look == 3 then -- Light orange
  420. SpawnSet(NPC, "skin_color", "210 188 159")
  421. SpawnSet(NPC, "soga_skin_color", "210 188 159")
  422. SpawnSet(NPC, "eye_color", "74 130 98")
  423. SpawnSet(NPC, "soga_eye_color", "74 130 98")
  424. SpawnSet(NPC, "hair_type_color", "184 128 10")
  425. SpawnSet(NPC, "soga_hair_type_color", "184 128 10")
  426. SpawnSet(NPC, "hair_face_color", "184 128 10")
  427. SpawnSet(NPC, "soga_hair_face_color", "184 128 10")
  428. SpawnSet(NPC, "hair_type_highlight_color", "37 10 14")
  429. SpawnSet(NPC, "soga_hair_type_highlight_color", "37 10 14")
  430. SpawnSet(NPC, "hair_face_highlight_color", "37 10 14")
  431. SpawnSet(NPC, "soga_hair_face_highlight_color", "37 10 14")
  432. SpawnSet(NPC, "hair_color1", "213 84 34")
  433. SpawnSet(NPC, "soga_hair_color1", "213 84 34")
  434. SpawnSet(NPC, "hair_color2", "2 0 0")
  435. SpawnSet(NPC, "soga_hair_color2", "2 0 0")
  436. SpawnSet(NPC, "hair_highlight", "0 0 0")
  437. SpawnSet(NPC, "soga_hair_highlight", "0 0 0")
  438. elseif overall_look == 4 then -- Orange with bright highlights
  439. SpawnSet(NPC, "skin_color", "234 244 244")
  440. SpawnSet(NPC, "soga_skin_color", "234 244 244")
  441. SpawnSet(NPC, "eye_color", "37 76 88")
  442. SpawnSet(NPC, "soga_eye_color", "37 76 88")
  443. SpawnSet(NPC, "hair_type_color", "121 38 35")
  444. SpawnSet(NPC, "soga_hair_type_color", "121 38 35")
  445. SpawnSet(NPC, "hair_face_color", "121 38 35")
  446. SpawnSet(NPC, "soga_hair_face_color", "121 38 35")
  447. SpawnSet(NPC, "hair_type_highlight_color", "233 184 31")
  448. SpawnSet(NPC, "soga_hair_type_highlight_color", "233 184 31")
  449. SpawnSet(NPC, "hair_face_highlight_color", "233 184 31")
  450. SpawnSet(NPC, "soga_hair_face_highlight_color", "233 184 31")
  451. SpawnSet(NPC, "hair_color1", "91 21 51")
  452. SpawnSet(NPC, "soga_hair_color1", "91 21 51")
  453. SpawnSet(NPC, "hair_color2", "159 88 0")
  454. SpawnSet(NPC, "soga_hair_color2", "159 88 0")
  455. SpawnSet(NPC, "hair_highlight", "246 219 114")
  456. SpawnSet(NPC, "soga_hair_highlight", "246 219 114")
  457. elseif overall_look == 5 then -- Light chestnut
  458. SpawnSet(NPC, "skin_color", "245 249 245")
  459. SpawnSet(NPC, "soga_skin_color", "245 249 245")
  460. SpawnSet(NPC, "eye_color", "43 70 43")
  461. SpawnSet(NPC, "soga_eye_color", "43 70 43")
  462. SpawnSet(NPC, "hair_type_color", "37 22 5")
  463. SpawnSet(NPC, "soga_hair_type_color", "37 22 5")
  464. SpawnSet(NPC, "hair_face_color", "37 22 5")
  465. SpawnSet(NPC, "soga_hair_face_color", "37 22 5")
  466. SpawnSet(NPC, "hair_type_highlight_color", "121 38 35")
  467. SpawnSet(NPC, "soga_hair_type_highlight_color", "121 38 35")
  468. SpawnSet(NPC, "hair_face_highlight_color", "121 38 35")
  469. SpawnSet(NPC, "soga_hair_face_highlight_color", "121 38 35")
  470. SpawnSet(NPC, "hair_color1", "79 28 15")
  471. SpawnSet(NPC, "soga_hair_color1", "79 28 15")
  472. SpawnSet(NPC, "hair_color2", "111 64 0")
  473. SpawnSet(NPC, "soga_hair_color2", "111 64 0")
  474. SpawnSet(NPC, "hair_highlight", "91 21 51")
  475. SpawnSet(NPC, "soga_hair_highlight", "91 21 51")
  476. elseif overall_look == 6 then -- Chestnut
  477. SpawnSet(NPC, "skin_color", "241 245 221")
  478. SpawnSet(NPC, "soga_skin_color", "241 245 221")
  479. SpawnSet(NPC, "eye_color", "102 154 140")
  480. SpawnSet(NPC, "soga_eye_color", "102 154 140")
  481. SpawnSet(NPC, "hair_type_color", "0 0 0")
  482. SpawnSet(NPC, "soga_hair_type_color", "0 0 0")
  483. SpawnSet(NPC, "hair_face_color", "0 0 0")
  484. SpawnSet(NPC, "soga_hair_face_color", "0 0 0")
  485. SpawnSet(NPC, "hair_type_highlight_color", "15 1 21")
  486. SpawnSet(NPC, "soga_hair_type_highlight_color", "15 1 21")
  487. SpawnSet(NPC, "hair_face_highlight_color", "15 1 21")
  488. SpawnSet(NPC, "soga_hair_face_highlight_color", "15 1 21")
  489. SpawnSet(NPC, "hair_color1", "38 22 21")
  490. SpawnSet(NPC, "soga_hair_color1", "38 22 21")
  491. SpawnSet(NPC, "hair_color2", "120 50 0")
  492. SpawnSet(NPC, "soga_hair_color2", "120 50 0")
  493. SpawnSet(NPC, "hair_highlight", "29 21 28")
  494. SpawnSet(NPC, "soga_hair_highlight", "29 21 28")
  495. elseif overall_look == 7 then -- Chestnut and brown skin
  496. SpawnSet(NPC, "skin_color", "46 35 12")
  497. SpawnSet(NPC, "soga_skin_color", "46 35 12")
  498. SpawnSet(NPC, "eye_color", "105 85 44")
  499. SpawnSet(NPC, "soga_eye_color", "105 85 44")
  500. SpawnSet(NPC, "hair_type_color", "40 20 7")
  501. SpawnSet(NPC, "soga_hair_type_color", "40 20 7")
  502. SpawnSet(NPC, "hair_face_color", "40 20 7")
  503. SpawnSet(NPC, "soga_hair_face_color", "40 20 7")
  504. SpawnSet(NPC, "hair_type_highlight_color", "47 42 59")
  505. SpawnSet(NPC, "soga_hair_type_highlight_color", "47 42 59")
  506. SpawnSet(NPC, "hair_face_highlight_color", "47 42 59")
  507. SpawnSet(NPC, "soga_hair_face_highlight_color", "47 42 59")
  508. SpawnSet(NPC, "hair_color1", "0 0 0")
  509. SpawnSet(NPC, "soga_hair_color1", "0 0 0")
  510. SpawnSet(NPC, "hair_color2", "0 0 0")
  511. SpawnSet(NPC, "soga_hair_color2", "0 0 0")
  512. SpawnSet(NPC, "hair_highlight", "0 0 0")
  513. SpawnSet(NPC, "soga_hair_highlight", "0 0 0")
  514. elseif overall_look == 8 then -- Dark brown
  515. SpawnSet(NPC, "skin_color", "176 156 105")
  516. SpawnSet(NPC, "soga_skin_color", "176 156 105")
  517. SpawnSet(NPC, "eye_color", "67 132 116")
  518. SpawnSet(NPC, "soga_eye_color", "67 132 116")
  519. SpawnSet(NPC, "hair_type_color", "33 24 12")
  520. SpawnSet(NPC, "soga_hair_type_color", "33 24 12")
  521. SpawnSet(NPC, "hair_face_color", "33 24 12")
  522. SpawnSet(NPC, "soga_hair_face_color", "33 24 12")
  523. SpawnSet(NPC, "hair_type_highlight_color", "11 6 1")
  524. SpawnSet(NPC, "soga_hair_type_highlight_color", "11 6 1")
  525. SpawnSet(NPC, "hair_face_highlight_color", "11 6 1")
  526. SpawnSet(NPC, "soga_hair_face_highlight_color", "11 6 1")
  527. SpawnSet(NPC, "hair_color1", "0 0 0")
  528. SpawnSet(NPC, "soga_hair_color1", "0 0 0")
  529. SpawnSet(NPC, "hair_color2", "0 0 0")
  530. SpawnSet(NPC, "soga_hair_color2", "0 0 0")
  531. SpawnSet(NPC, "hair_highlight", "0 0 0")
  532. SpawnSet(NPC, "soga_hair_highlight", "0 0 0")
  533. elseif overall_look == 9 then -- Dark brown and brown skin
  534. SpawnSet(NPC, "skin_color", "46 35 12")
  535. SpawnSet(NPC, "soga_skin_color", "46 35 12")
  536. SpawnSet(NPC, "eye_color", "105 85 44")
  537. SpawnSet(NPC, "soga_eye_color", "105 85 44")
  538. SpawnSet(NPC, "hair_type_color", "33 24 12")
  539. SpawnSet(NPC, "soga_hair_type_color", "33 24 12")
  540. SpawnSet(NPC, "hair_face_color", "33 24 12")
  541. SpawnSet(NPC, "soga_hair_face_color", "33 24 12")
  542. SpawnSet(NPC, "hair_type_highlight_color", "11 6 1")
  543. SpawnSet(NPC, "soga_hair_type_highlight_color", "11 6 1")
  544. SpawnSet(NPC, "hair_face_highlight_color", "11 6 1")
  545. SpawnSet(NPC, "soga_hair_face_highlight_color", "11 6 1")
  546. SpawnSet(NPC, "hair_color1", "0 0 0")
  547. SpawnSet(NPC, "soga_hair_color1", "0 0 0")
  548. SpawnSet(NPC, "hair_color2", "0 0 0")
  549. SpawnSet(NPC, "soga_hair_color2", "0 0 0")
  550. SpawnSet(NPC, "hair_highlight", "0 0 0")
  551. SpawnSet(NPC, "soga_hair_highlight", "0 0 0")
  552. elseif overall_look == 10 then -- Lige grey towards white
  553. SpawnSet(NPC, "skin_color", "181 132 94")
  554. SpawnSet(NPC, "soga_skin_color", "181 132 94")
  555. SpawnSet(NPC, "eye_color", "31 68 69")
  556. SpawnSet(NPC, "soga_eye_color", "31 68 69")
  557. SpawnSet(NPC, "hair_type_color", "213 209 159")
  558. SpawnSet(NPC, "soga_hair_type_color", "213 209 159")
  559. SpawnSet(NPC, "hair_face_color", "213 209 159")
  560. SpawnSet(NPC, "soga_hair_face_color", "213 209 159")
  561. SpawnSet(NPC, "hair_type_highlight_color", "56 40 19")
  562. SpawnSet(NPC, "soga_hair_type_highlight_color", "56 40 19")
  563. SpawnSet(NPC, "hair_face_highlight_color", "56 40 19")
  564. SpawnSet(NPC, "soga_hair_face_highlight_color", "56 40 19")
  565. SpawnSet(NPC, "hair_color1", "0 0 0")
  566. SpawnSet(NPC, "soga_hair_color1", "0 0 0")
  567. SpawnSet(NPC, "hair_color2", "0 0 0")
  568. SpawnSet(NPC, "soga_hair_color2", "0 0 0")
  569. SpawnSet(NPC, "hair_highlight", "0 0 0")
  570. SpawnSet(NPC, "soga_hair_highlight", "0 0 0")
  571. elseif overall_look == 11 then -- Dark grey
  572. SpawnSet(NPC, "skin_color", "186 191 170")
  573. SpawnSet(NPC, "soga_skin_color", "186 191 170")
  574. SpawnSet(NPC, "eye_color", "38 77 88")
  575. SpawnSet(NPC, "soga_eye_color", "38 77 88")
  576. SpawnSet(NPC, "hair_type_color", "59 58 73")
  577. SpawnSet(NPC, "soga_hair_type_color", "59 58 73")
  578. SpawnSet(NPC, "hair_face_color", "59 58 73")
  579. SpawnSet(NPC, "soga_hair_face_color", "59 58 73")
  580. SpawnSet(NPC, "hair_type_highlight_color", "119 147 147")
  581. SpawnSet(NPC, "soga_hair_type_highlight_color", "119 147 147")
  582. SpawnSet(NPC, "hair_face_highlight_color", "119 147 147")
  583. SpawnSet(NPC, "soga_hair_face_highlight_color", "119 147 147")
  584. SpawnSet(NPC, "hair_color1", "43 36 70")
  585. SpawnSet(NPC, "soga_hair_color1", "43 36 70")
  586. SpawnSet(NPC, "hair_color2", "64 76 74")
  587. SpawnSet(NPC, "soga_hair_color2", "64 76 74")
  588. SpawnSet(NPC, "hair_highlight", "114 112 142")
  589. SpawnSet(NPC, "soga_hair_highlight", "114 112 142")
  590. elseif overall_look == 12 then -- Dark grey and brown skin
  591. SpawnSet(NPC, "skin_color", "46 35 12")
  592. SpawnSet(NPC, "soga_skin_color", "46 35 12")
  593. SpawnSet(NPC, "eye_color", "105 85 44")
  594. SpawnSet(NPC, "soga_eye_color", "105 85 44")
  595. SpawnSet(NPC, "hair_type_color", "59 58 73")
  596. SpawnSet(NPC, "soga_hair_type_color", "59 58 73")
  597. SpawnSet(NPC, "hair_face_color", "59 58 73")
  598. SpawnSet(NPC, "soga_hair_face_color", "59 58 73")
  599. SpawnSet(NPC, "hair_type_highlight_color", "119 147 147")
  600. SpawnSet(NPC, "soga_hair_type_highlight_color", "119 147 147")
  601. SpawnSet(NPC, "hair_face_highlight_color", "119 147 147")
  602. SpawnSet(NPC, "soga_hair_face_highlight_color", "119 147 147")
  603. SpawnSet(NPC, "hair_color1", "43 36 70")
  604. SpawnSet(NPC, "soga_hair_color1", "43 36 70")
  605. SpawnSet(NPC, "hair_color2", "64 76 74")
  606. SpawnSet(NPC, "soga_hair_color2", "64 76 74")
  607. SpawnSet(NPC, "hair_highlight", "114 112 142")
  608. SpawnSet(NPC, "soga_hair_highlight", "114 112 142")
  609. elseif overall_look == 13 then -- Black with white highlights
  610. SpawnSet(NPC, "skin_color", "179 188 188")
  611. SpawnSet(NPC, "soga_skin_color", "179 188 188")
  612. SpawnSet(NPC, "eye_color", "105 165 179")
  613. SpawnSet(NPC, "soga_eye_color", "105 165 179")
  614. SpawnSet(NPC, "hair_type_color", "15 1 21")
  615. SpawnSet(NPC, "soga_hair_type_color", "15 1 21")
  616. SpawnSet(NPC, "hair_face_color", "15 1 21")
  617. SpawnSet(NPC, "soga_hair_face_color", "15 1 21")
  618. SpawnSet(NPC, "hair_type_highlight_color", "211 220 220")
  619. SpawnSet(NPC, "soga_hair_type_highlight_color", "211 220 220")
  620. SpawnSet(NPC, "hair_face_highlight_color", "211 220 220")
  621. SpawnSet(NPC, "soga_hair_face_highlight_color", "211 220 220")
  622. SpawnSet(NPC, "hair_color1", "29 21 28")
  623. SpawnSet(NPC, "soga_hair_color1", "29 21 28")
  624. SpawnSet(NPC, "hair_color2", "39 32 39")
  625. SpawnSet(NPC, "soga_hair_color2", "39 32 39")
  626. SpawnSet(NPC, "hair_highlight", "161 165 168")
  627. SpawnSet(NPC, "soga_hair_highlight", "161 165 168")
  628. else -- Light black
  629. SpawnSet(NPC, "skin_color", "176 156 105")
  630. SpawnSet(NPC, "soga_skin_color", "176 156 105")
  631. SpawnSet(NPC, "eye_color", "67 132 116")
  632. SpawnSet(NPC, "soga_eye_color", "67 132 116")
  633. SpawnSet(NPC, "hair_type_color", "39 50 50")
  634. SpawnSet(NPC, "soga_hair_type_color", "39 50 50")
  635. SpawnSet(NPC, "hair_face_color", "39 50 50")
  636. SpawnSet(NPC, "soga_hair_face_color", "39 50 50")
  637. SpawnSet(NPC, "hair_type_highlight_color", "18 11 0")
  638. SpawnSet(NPC, "soga_hair_type_highlight_color", "18 11 0")
  639. SpawnSet(NPC, "hair_face_highlight_color", "18 11 0")
  640. SpawnSet(NPC, "soga_hair_face_highlight_color", "18 11 0")
  641. SpawnSet(NPC, "hair_color1", "0 0 0")
  642. SpawnSet(NPC, "soga_hair_color1", "0 0 0")
  643. SpawnSet(NPC, "hair_color2", "0 0 0")
  644. SpawnSet(NPC, "soga_hair_color2", "0 0 0")
  645. SpawnSet(NPC, "hair_highlight", "0 0 0")
  646. SpawnSet(NPC, "soga_hair_highlight", "0 0 0")
  647. end
  648. end
  649. function EmoteLoop(NPC)
  650. local choice = MakeRandomInt(1,14)
  651. local timer = math.random(5000,10000)
  652. if choice == 1 then -- cackle
  653. PlayAnimation(NPC, 125)
  654. AddTimer(NPC, timer, "EmoteLoop")
  655. elseif choice == 2 then -- converse_male04
  656. PlayAnimation(NPC, 2983)
  657. AddTimer(NPC, timer, "EmoteLoop")
  658. elseif choice == 3 then -- confused
  659. PlayAnimation(NPC, 11214)
  660. AddTimer(NPC, timer, "EmoteLoop")
  661. elseif choice == 4 then -- converse_male05
  662. PlayAnimation(NPC, 11236)
  663. AddTimer(NPC, timer, "EmoteLoop")
  664. elseif choice == 5 then -- converse_male06
  665. PlayAnimation(NPC, 11237)
  666. AddTimer(NPC, timer, "EmoteLoop")
  667. elseif choice == 6 then -- converse_male07
  668. PlayAnimation(NPC, 11238)
  669. AddTimer(NPC, timer, "EmoteLoop")
  670. elseif choice == 7 then -- converse_male10
  671. PlayAnimation(NPC, 11241)
  672. AddTimer(NPC, timer, "EmoteLoop")
  673. elseif choice == 8 then -- converse_male11
  674. PlayAnimation(NPC, 11242)
  675. AddTimer(NPC, timer, "EmoteLoop")
  676. elseif choice == 9 then -- doubletake
  677. PlayAnimation(NPC, 11415)
  678. AddTimer(NPC, timer, "EmoteLoop")
  679. elseif choice == 10 then -- happy
  680. PlayAnimation(NPC, 11668)
  681. AddTimer(NPC, timer, "EmoteLoop")
  682. elseif choice == 11 then -- heckno
  683. PlayAnimation(NPC, 11680)
  684. AddTimer(NPC, timer, "EmoteLoop")
  685. elseif choice == 12 then -- howl
  686. PlayAnimation(NPC, 11718)
  687. AddTimer(NPC, timer, "EmoteLoop")
  688. elseif choice == 13 then -- smile
  689. PlayAnimation(NPC, 12285)
  690. AddTimer(NPC, timer, "EmoteLoop")
  691. else -- wink
  692. PlayAnimation(NPC, 13304)
  693. AddTimer(NPC, timer, "EmoteLoop")
  694. end
  695. end