abrightenedQeynosresident.lua 34 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647
  1. --[[
  2. Script Name : SpawnScripts/qeynos_combined02/abrightenedQeynosresident.lua
  3. Script Author : Rylec
  4. Script Date : 2021.01.23 01:01:55
  5. Script Purpose :
  6. :
  7. --]]
  8. function spawn(NPC)
  9. SpawnSet(NPC, "model_color", "229 229 102")
  10. SpawnSet(NPC, "soga_model_color", "229 229 102")
  11. local NPC_Type = MakeRandomInt(1,5)
  12. if NPC_Type == 1 then
  13. SpawnSet(NPC, "name", "a brightened Qeynos resident")
  14. SetEquipment(NPC, 3, 1079, 255, 255, 255, 255, 255, 255)
  15. SetEquipment(NPC, 4, 1898, 255, 255, 255, 255, 255, 255)
  16. SetEquipment(NPC, 7, 1084, 255, 255, 255, 255, 255, 255)
  17. SetEquipment(NPC, 8, 1893, 255, 255, 255, 255, 255, 255)
  18. HumanGender(NPC)
  19. elseif NPC_Type == 2 then
  20. SpawnSet(NPC, "name", "a pacified Qeynos resident")
  21. SetEquipment(NPC, 3, 1892, 255, 255, 255, 255, 255, 255)
  22. SetEquipment(NPC, 5, 1894, 255, 255, 255, 255, 255, 255)
  23. SetEquipment(NPC, 7, 1897, 255, 255, 255, 255, 255, 255)
  24. SetEquipment(NPC, 8, 1893, 255, 255, 255, 255, 255, 255)
  25. HighElfGender(NPC)
  26. elseif NPC_Type == 3 then
  27. SpawnSet(NPC, "name", "a relieved Qeynos resident")
  28. SetEquipment(NPC, 3, 2330, 255, 255, 255, 255, 255, 255)
  29. SetEquipment(NPC, 7, 2331, 255, 255, 255, 255, 255, 255)
  30. HumanGender(NPC)
  31. elseif NPC_Type == 4 then
  32. SpawnSet(NPC, "name", "a wonderstruck Qeynos resident")
  33. SetEquipment(NPC, 3, 501, 255, 255, 255, 255, 255, 255)
  34. SetEquipment(NPC, 4, 500, 255, 255, 255, 255, 255, 255)
  35. SetEquipment(NPC, 6, 503, 255, 255, 255, 255, 255, 255)
  36. SetEquipment(NPC, 7, 504, 255, 255, 255, 255, 255, 255)
  37. SetEquipment(NPC, 8, 502, 255, 255, 255, 255, 255, 255)
  38. KerranGender(NPC)
  39. else
  40. SpawnSet(NPC, "name", "an awestruck Qeynos resident")
  41. SetEquipment(NPC, 3, 501, 255, 255, 255, 255, 255, 255)
  42. SetEquipment(NPC, 4, 500, 255, 255, 255, 255, 255, 255)
  43. SetEquipment(NPC, 6, 503, 255, 255, 255, 255, 255, 255)
  44. SetEquipment(NPC, 7, 504, 255, 255, 255, 255, 255, 255)
  45. SetEquipment(NPC, 8, 502, 255, 255, 255, 255, 255, 255)
  46. HumanGender(NPC)
  47. end
  48. SetPlayerProximityFunction(NPC, 20, "InRange")
  49. end
  50. function HumanGender(NPC)
  51. local model = MakeRandomInt(1,2)
  52. if model == 1 then
  53. SetModelType(NPC, "132")
  54. SpawnSet(NPC, "soga_model_type", "132")
  55. SpawnSet(NPC, "chest_type", "5529")
  56. SpawnSet(NPC, "legs_type", "5530")
  57. elseif model == 2 then
  58. SetModelType(NPC, "134")
  59. SpawnSet(NPC, "soga_model_type", "134")
  60. SpawnSet(NPC, "chest_type", "5533")
  61. SpawnSet(NPC, "legs_type", "5534")
  62. end
  63. HumanCosmetics(NPC)
  64. end
  65. function HighElfGender(NPC)
  66. local model = MakeRandomInt(1,2)
  67. if model == 1 then
  68. SetModelType(NPC, "135")
  69. SpawnSet(NPC, "soga_model_type", "135")
  70. SpawnSet(NPC, "chest_type", "5521")
  71. SpawnSet(NPC, "legs_type", "5522")
  72. elseif model == 2 then
  73. SetModelType(NPC, "136")
  74. SpawnSet(NPC, "soga_model_type", "136")
  75. SpawnSet(NPC, "chest_type", "5525")
  76. SpawnSet(NPC, "legs_type", "5526")
  77. end
  78. HighElfCosmetics(NPC)
  79. end
  80. function KerranGender(NPC)
  81. local Random_Model = MakeRandomInt(1,9) -- 82, 91, 92, 93, 94, 95, 97, 100, 101
  82. if Random_Model == 1 then
  83. SetModelType(NPC, "82")
  84. SpawnSet(NPC, "soga_model_type", "82")
  85. SpawnSet(NPC, "chest_type", "5549")
  86. SpawnSet(NPC, "legs_type", "5550")
  87. elseif Random_Model == 2 then
  88. SetModelType(NPC, "91")
  89. SpawnSet(NPC, "soga_model_type", "91")
  90. SpawnSet(NPC, "chest_type", "5545")
  91. SpawnSet(NPC, "legs_type", "5546")
  92. elseif Random_Model == 3 then
  93. SetModelType(NPC, "92")
  94. SpawnSet(NPC, "soga_model_type", "92")
  95. SpawnSet(NPC, "chest_type", "5545")
  96. SpawnSet(NPC, "legs_type", "5546")
  97. elseif Random_Model == 4 then
  98. SetModelType(NPC, "93")
  99. SpawnSet(NPC, "soga_model_type", "93")
  100. SpawnSet(NPC, "chest_type", "5545")
  101. SpawnSet(NPC, "legs_type", "5546")
  102. elseif Random_Model == 5 then
  103. SetModelType(NPC, "94")
  104. SpawnSet(NPC, "soga_model_type", "94")
  105. SpawnSet(NPC, "chest_type", "5545")
  106. SpawnSet(NPC, "legs_type", "5546")
  107. elseif Random_Model == 6 then
  108. SetModelType(NPC, "95")
  109. SpawnSet(NPC, "soga_model_type", "95")
  110. SpawnSet(NPC, "chest_type", "5545")
  111. SpawnSet(NPC, "legs_type", "5546")
  112. elseif Random_Model == 7 then
  113. SetModelType(NPC, "97")
  114. SpawnSet(NPC, "soga_model_type", "97")
  115. SpawnSet(NPC, "chest_type", "5549")
  116. SpawnSet(NPC, "legs_type", "5550")
  117. elseif Random_Model == 8 then
  118. SetModelType(NPC, "100")
  119. SpawnSet(NPC, "soga_model_type", "100")
  120. SpawnSet(NPC, "chest_type", "5549")
  121. SpawnSet(NPC, "legs_type", "5550")
  122. elseif Random_Model == 9 then
  123. SetModelType(NPC, "101")
  124. SpawnSet(NPC, "soga_model_type", "101")
  125. SpawnSet(NPC, "chest_type", "5549")
  126. SpawnSet(NPC, "legs_type", "5550")
  127. end
  128. KerranCosmetics(NPC)
  129. end
  130. function hailed(NPC, Spawn)
  131. FaceTarget(NPC, Spawn)
  132. local type = GetModelType(NPC)
  133. local voice = MakeRandomInt(1,3)
  134. if type == 132 then
  135. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_"..voice.."_1033.mp3", "", "", 0, 0, Spawn)
  136. elseif type == 134 then
  137. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_"..voice.."_1004.mp3", "", "", 0, 0, Spawn)
  138. elseif type == 135 then
  139. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_"..voice.."_1011.mp3", "", "", 0, 0, Spawn)
  140. elseif type == 136 then
  141. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_"..voice.."_1012.mp3", "", "", 0, 0, Spawn)
  142. elseif type < 97 and type ~= 82 then
  143. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_"..voice.."_1053.mp3", "", "", 0, 0, Spawn)
  144. else
  145. PlayFlavor(NPC, "voiceover/english/voice_emotes/greetings/greetings_"..voice.."_1054.mp3", "", "", 0, 0, Spawn)
  146. end
  147. InRange(NPC)
  148. end
  149. function respawn(NPC)
  150. spawn(NPC)
  151. end
  152. function InRange(NPC)
  153. local say = MakeRandomInt(1,19)
  154. if say == 1 then
  155. PlayFlavor(NPC, "", "Look upon our great city! Threatened time and time again, but Qeynos still stands.", "yeah", 0, 0, Spawn)
  156. elseif say == 2 then
  157. PlayFlavor(NPC, "", "Luclin is whole again... I never thought I'd see such a thing.", "shrug", 0, 0, Spawn)
  158. elseif say == 3 then
  159. PlayFlavor(NPC, "", "Luclin shines so bright...", "nod", 0, 0, Spawn)
  160. elseif say == 4 then
  161. PlayFlavor(NPC, "", "If we can make Luclin whole, then there is nothing that Qeynos can't accomplish!", "sigh", 0, 0, Spawn)
  162. elseif say == 5 then
  163. PlayFlavor(NPC, "", "We must not doubt Queen Antonia. We owe much to her leadership!", "yeah", 0, 0, Spawn)
  164. elseif say == 6 then
  165. PlayFlavor(NPC, "", "The night sky is so different now, I love it!", "yeah", 0, 0, Spawn)
  166. elseif say == 7 then
  167. PlayFlavor(NPC, "", "See! We never needed Freeport's help! Queen Antonia can do it all on her own!", "agree", 0, 0, Spawn)
  168. elseif say == 8 then
  169. PlayFlavor(NPC, "", "I heard some have found a way to Luclin. It is a new beginning for us now!", "yeah", 0, 0, Spawn)
  170. elseif say == 9 then
  171. PlayFlavor(NPC, "", "Freeportians will learn the errors of their ways, one day.", "crazy", 0, 0, Spawn)
  172. elseif say == 10 then
  173. PlayFlavor(NPC, "", "Kerafyrm is still up there... trapped, but for how long?", "scared", 0, 0, Spawn)
  174. elseif say == 11 then
  175. PlayFlavor(NPC, "", "I can look up at Luclin and know I will never see Kerafyrm's shadow again.", "agree", 0, 0, Spawn)
  176. elseif say == 12 then
  177. PlayFlavor(NPC, "", "Luclin... it kind of looks like an egg now, doesn't it? I hope Kerafyrm cannot get free...", "shakefist", 0, 0, Spawn)
  178. elseif say == 13 then
  179. PlayFlavor(NPC, "", "Luclin is so beautiful... but it's terrifying to know what she harbors within.", "cringe", 0, 0, Spawn)
  180. elseif say == 14 then
  181. PlayFlavor(NPC, "", "May the gods continue to bless us.", "agree", 0, 0, Spawn)
  182. elseif say == 15 then
  183. PlayFlavor(NPC, "", "Even if the shissar found a way off Luclin, Queen Antonia wouldn't let any harm come to us.", "scream", 0, 0, Spawn)
  184. elseif say == 16 then
  185. PlayFlavor(NPC, "", "I know there are those who wish harm upon Qeynos, but I just feel sorry for them.", "sad", 0, 0, Spawn)
  186. elseif say == 17 then
  187. PlayFlavor(NPC, "", "We can all breathe a sigh of relief. Norrath now has a new friend in the sky, and she keeps us safe from Kerafyrm's wrath.", "yes", 0, 0, Spawn)
  188. elseif say == 18 then
  189. PlayFlavor(NPC, "", "Luclin represents an end to the war, an end to the Awakened. We must thank her.", "bow", 0, 0, Spawn)
  190. else
  191. PlayFlavor(NPC, "", "I heard some have found a way to Luclin. It is a new beginning for us now!", "yeah", 0, 0, Spawn)
  192. end
  193. end
  194. function HumanCosmetics(NPC)
  195. local hair = MakeRandomInt(1121,1140)
  196. SpawnSet(NPC, "hair_type", hair)
  197. SpawnSet(NPC, "soga_hair_type", hair)
  198. local beard = MakeRandomInt(1164,1191)
  199. local beard_chance = MakeRandomInt(1,100)
  200. if beard_chance < 51 then
  201. SpawnSet(NPC, "facial_hair_type", "0")
  202. SpawnSet(NPC, "soga_facial_hair_type", "0")
  203. else
  204. SpawnSet(NPC, "facial_hair_type", beard)
  205. SpawnSet(NPC, "soga_facial_hair_type", beard)
  206. end
  207. local overall_look = MakeRandomInt(1,14)
  208. if overall_look == 1 then -- Bright yellow
  209. SpawnSet(NPC, "skin_color", "206 162 137")
  210. SpawnSet(NPC, "soga_skin_color", "206 162 137")
  211. SpawnSet(NPC, "eye_color", "47 100 102")
  212. SpawnSet(NPC, "soga_eye_color", "47 100 102")
  213. SpawnSet(NPC, "hair_type_color", "194 164 6")
  214. SpawnSet(NPC, "soga_hair_type_color", "194 164 6")
  215. SpawnSet(NPC, "hair_face_color", "194 164 6")
  216. SpawnSet(NPC, "soga_hair_face_color", "194 164 6")
  217. SpawnSet(NPC, "hair_type_highlight_color", "188 168 37")
  218. SpawnSet(NPC, "soga_hair_type_highlight_color", "188 168 37")
  219. SpawnSet(NPC, "hair_face_highlight_color", "188 168 37")
  220. SpawnSet(NPC, "soga_hair_face_highlight_color", "188 168 37")
  221. SpawnSet(NPC, "hair_color1", "0 0 0")
  222. SpawnSet(NPC, "soga_hair_color1", "0 0 0")
  223. SpawnSet(NPC, "hair_color2", "0 0 0")
  224. SpawnSet(NPC, "soga_hair_color2", "0 0 0")
  225. SpawnSet(NPC, "hair_highlight", "0 0 0")
  226. SpawnSet(NPC, "soga_hair_highlight", "0 0 0")
  227. elseif overall_look == 2 then -- Extra light chestnut (towards yellow)
  228. SpawnSet(NPC, "skin_color", "241 245 221")
  229. SpawnSet(NPC, "soga_skin_color", "241 245 221")
  230. SpawnSet(NPC, "eye_color", "38 65 40")
  231. SpawnSet(NPC, "soga_eye_color", "38 65 40")
  232. SpawnSet(NPC, "hair_type_color", "100 70 10")
  233. SpawnSet(NPC, "soga_hair_type_color", "100 70 10")
  234. SpawnSet(NPC, "hair_face_color", "100 70 10")
  235. SpawnSet(NPC, "soga_hair_face_color", "100 70 10")
  236. SpawnSet(NPC, "hair_type_highlight_color", "231 170 26")
  237. SpawnSet(NPC, "soga_hair_type_highlight_color", "231 170 26")
  238. SpawnSet(NPC, "hair_face_highlight_color", "231 170 26")
  239. SpawnSet(NPC, "soga_hair_face_highlight_color", "231 170 26")
  240. SpawnSet(NPC, "hair_color1", "56 33 26")
  241. SpawnSet(NPC, "soga_hair_color1", "56 33 26")
  242. SpawnSet(NPC, "hair_color2", "94 59 11")
  243. SpawnSet(NPC, "soga_hair_color2", "94 59 11")
  244. SpawnSet(NPC, "hair_highlight", "200 165 96")
  245. SpawnSet(NPC, "soga_hair_highlight", "200 165 96")
  246. elseif overall_look == 3 then -- Light orange
  247. SpawnSet(NPC, "skin_color", "210 188 159")
  248. SpawnSet(NPC, "soga_skin_color", "210 188 159")
  249. SpawnSet(NPC, "eye_color", "74 130 98")
  250. SpawnSet(NPC, "soga_eye_color", "74 130 98")
  251. SpawnSet(NPC, "hair_type_color", "184 128 10")
  252. SpawnSet(NPC, "soga_hair_type_color", "184 128 10")
  253. SpawnSet(NPC, "hair_face_color", "184 128 10")
  254. SpawnSet(NPC, "soga_hair_face_color", "184 128 10")
  255. SpawnSet(NPC, "hair_type_highlight_color", "37 10 14")
  256. SpawnSet(NPC, "soga_hair_type_highlight_color", "37 10 14")
  257. SpawnSet(NPC, "hair_face_highlight_color", "37 10 14")
  258. SpawnSet(NPC, "soga_hair_face_highlight_color", "37 10 14")
  259. SpawnSet(NPC, "hair_color1", "213 84 34")
  260. SpawnSet(NPC, "soga_hair_color1", "213 84 34")
  261. SpawnSet(NPC, "hair_color2", "2 0 0")
  262. SpawnSet(NPC, "soga_hair_color2", "2 0 0")
  263. SpawnSet(NPC, "hair_highlight", "0 0 0")
  264. SpawnSet(NPC, "soga_hair_highlight", "0 0 0")
  265. elseif overall_look == 4 then -- Orange with bright highlights
  266. SpawnSet(NPC, "skin_color", "234 244 244")
  267. SpawnSet(NPC, "soga_skin_color", "234 244 244")
  268. SpawnSet(NPC, "eye_color", "37 76 88")
  269. SpawnSet(NPC, "soga_eye_color", "37 76 88")
  270. SpawnSet(NPC, "hair_type_color", "121 38 35")
  271. SpawnSet(NPC, "soga_hair_type_color", "121 38 35")
  272. SpawnSet(NPC, "hair_face_color", "121 38 35")
  273. SpawnSet(NPC, "soga_hair_face_color", "121 38 35")
  274. SpawnSet(NPC, "hair_type_highlight_color", "233 184 31")
  275. SpawnSet(NPC, "soga_hair_type_highlight_color", "233 184 31")
  276. SpawnSet(NPC, "hair_face_highlight_color", "233 184 31")
  277. SpawnSet(NPC, "soga_hair_face_highlight_color", "233 184 31")
  278. SpawnSet(NPC, "hair_color1", "91 21 51")
  279. SpawnSet(NPC, "soga_hair_color1", "91 21 51")
  280. SpawnSet(NPC, "hair_color2", "159 88 0")
  281. SpawnSet(NPC, "soga_hair_color2", "159 88 0")
  282. SpawnSet(NPC, "hair_highlight", "246 219 114")
  283. SpawnSet(NPC, "soga_hair_highlight", "246 219 114")
  284. elseif overall_look == 5 then -- Light chestnut
  285. SpawnSet(NPC, "skin_color", "245 249 245")
  286. SpawnSet(NPC, "soga_skin_color", "245 249 245")
  287. SpawnSet(NPC, "eye_color", "43 70 43")
  288. SpawnSet(NPC, "soga_eye_color", "43 70 43")
  289. SpawnSet(NPC, "hair_type_color", "37 22 5")
  290. SpawnSet(NPC, "soga_hair_type_color", "37 22 5")
  291. SpawnSet(NPC, "hair_face_color", "37 22 5")
  292. SpawnSet(NPC, "soga_hair_face_color", "37 22 5")
  293. SpawnSet(NPC, "hair_type_highlight_color", "121 38 35")
  294. SpawnSet(NPC, "soga_hair_type_highlight_color", "121 38 35")
  295. SpawnSet(NPC, "hair_face_highlight_color", "121 38 35")
  296. SpawnSet(NPC, "soga_hair_face_highlight_color", "121 38 35")
  297. SpawnSet(NPC, "hair_color1", "79 28 15")
  298. SpawnSet(NPC, "soga_hair_color1", "79 28 15")
  299. SpawnSet(NPC, "hair_color2", "111 64 0")
  300. SpawnSet(NPC, "soga_hair_color2", "111 64 0")
  301. SpawnSet(NPC, "hair_highlight", "91 21 51")
  302. SpawnSet(NPC, "soga_hair_highlight", "91 21 51")
  303. elseif overall_look == 6 then -- Chestnut
  304. SpawnSet(NPC, "skin_color", "241 245 221")
  305. SpawnSet(NPC, "soga_skin_color", "241 245 221")
  306. SpawnSet(NPC, "eye_color", "102 154 140")
  307. SpawnSet(NPC, "soga_eye_color", "102 154 140")
  308. SpawnSet(NPC, "hair_type_color", "0 0 0")
  309. SpawnSet(NPC, "soga_hair_type_color", "0 0 0")
  310. SpawnSet(NPC, "hair_face_color", "0 0 0")
  311. SpawnSet(NPC, "soga_hair_face_color", "0 0 0")
  312. SpawnSet(NPC, "hair_type_highlight_color", "15 1 21")
  313. SpawnSet(NPC, "soga_hair_type_highlight_color", "15 1 21")
  314. SpawnSet(NPC, "hair_face_highlight_color", "15 1 21")
  315. SpawnSet(NPC, "soga_hair_face_highlight_color", "15 1 21")
  316. SpawnSet(NPC, "hair_color1", "38 22 21")
  317. SpawnSet(NPC, "soga_hair_color1", "38 22 21")
  318. SpawnSet(NPC, "hair_color2", "120 50 0")
  319. SpawnSet(NPC, "soga_hair_color2", "120 50 0")
  320. SpawnSet(NPC, "hair_highlight", "29 21 28")
  321. SpawnSet(NPC, "soga_hair_highlight", "29 21 28")
  322. elseif overall_look == 7 then -- Chestnut and brown skin
  323. SpawnSet(NPC, "skin_color", "46 35 12")
  324. SpawnSet(NPC, "soga_skin_color", "46 35 12")
  325. SpawnSet(NPC, "eye_color", "105 85 44")
  326. SpawnSet(NPC, "soga_eye_color", "105 85 44")
  327. SpawnSet(NPC, "hair_type_color", "40 20 7")
  328. SpawnSet(NPC, "soga_hair_type_color", "40 20 7")
  329. SpawnSet(NPC, "hair_face_color", "40 20 7")
  330. SpawnSet(NPC, "soga_hair_face_color", "40 20 7")
  331. SpawnSet(NPC, "hair_type_highlight_color", "47 42 59")
  332. SpawnSet(NPC, "soga_hair_type_highlight_color", "47 42 59")
  333. SpawnSet(NPC, "hair_face_highlight_color", "47 42 59")
  334. SpawnSet(NPC, "soga_hair_face_highlight_color", "47 42 59")
  335. SpawnSet(NPC, "hair_color1", "0 0 0")
  336. SpawnSet(NPC, "soga_hair_color1", "0 0 0")
  337. SpawnSet(NPC, "hair_color2", "0 0 0")
  338. SpawnSet(NPC, "soga_hair_color2", "0 0 0")
  339. SpawnSet(NPC, "hair_highlight", "0 0 0")
  340. SpawnSet(NPC, "soga_hair_highlight", "0 0 0")
  341. elseif overall_look == 8 then -- Dark brown
  342. SpawnSet(NPC, "skin_color", "176 156 105")
  343. SpawnSet(NPC, "soga_skin_color", "176 156 105")
  344. SpawnSet(NPC, "eye_color", "67 132 116")
  345. SpawnSet(NPC, "soga_eye_color", "67 132 116")
  346. SpawnSet(NPC, "hair_type_color", "33 24 12")
  347. SpawnSet(NPC, "soga_hair_type_color", "33 24 12")
  348. SpawnSet(NPC, "hair_face_color", "33 24 12")
  349. SpawnSet(NPC, "soga_hair_face_color", "33 24 12")
  350. SpawnSet(NPC, "hair_type_highlight_color", "11 6 1")
  351. SpawnSet(NPC, "soga_hair_type_highlight_color", "11 6 1")
  352. SpawnSet(NPC, "hair_face_highlight_color", "11 6 1")
  353. SpawnSet(NPC, "soga_hair_face_highlight_color", "11 6 1")
  354. SpawnSet(NPC, "hair_color1", "0 0 0")
  355. SpawnSet(NPC, "soga_hair_color1", "0 0 0")
  356. SpawnSet(NPC, "hair_color2", "0 0 0")
  357. SpawnSet(NPC, "soga_hair_color2", "0 0 0")
  358. SpawnSet(NPC, "hair_highlight", "0 0 0")
  359. SpawnSet(NPC, "soga_hair_highlight", "0 0 0")
  360. elseif overall_look == 9 then -- Dark brown and brown skin
  361. SpawnSet(NPC, "skin_color", "46 35 12")
  362. SpawnSet(NPC, "soga_skin_color", "46 35 12")
  363. SpawnSet(NPC, "eye_color", "105 85 44")
  364. SpawnSet(NPC, "soga_eye_color", "105 85 44")
  365. SpawnSet(NPC, "hair_type_color", "33 24 12")
  366. SpawnSet(NPC, "soga_hair_type_color", "33 24 12")
  367. SpawnSet(NPC, "hair_face_color", "33 24 12")
  368. SpawnSet(NPC, "soga_hair_face_color", "33 24 12")
  369. SpawnSet(NPC, "hair_type_highlight_color", "11 6 1")
  370. SpawnSet(NPC, "soga_hair_type_highlight_color", "11 6 1")
  371. SpawnSet(NPC, "hair_face_highlight_color", "11 6 1")
  372. SpawnSet(NPC, "soga_hair_face_highlight_color", "11 6 1")
  373. SpawnSet(NPC, "hair_color1", "0 0 0")
  374. SpawnSet(NPC, "soga_hair_color1", "0 0 0")
  375. SpawnSet(NPC, "hair_color2", "0 0 0")
  376. SpawnSet(NPC, "soga_hair_color2", "0 0 0")
  377. SpawnSet(NPC, "hair_highlight", "0 0 0")
  378. SpawnSet(NPC, "soga_hair_highlight", "0 0 0")
  379. elseif overall_look == 10 then -- Lige grey towards white
  380. SpawnSet(NPC, "skin_color", "181 132 94")
  381. SpawnSet(NPC, "soga_skin_color", "181 132 94")
  382. SpawnSet(NPC, "eye_color", "31 68 69")
  383. SpawnSet(NPC, "soga_eye_color", "31 68 69")
  384. SpawnSet(NPC, "hair_type_color", "213 209 159")
  385. SpawnSet(NPC, "soga_hair_type_color", "213 209 159")
  386. SpawnSet(NPC, "hair_face_color", "213 209 159")
  387. SpawnSet(NPC, "soga_hair_face_color", "213 209 159")
  388. SpawnSet(NPC, "hair_type_highlight_color", "56 40 19")
  389. SpawnSet(NPC, "soga_hair_type_highlight_color", "56 40 19")
  390. SpawnSet(NPC, "hair_face_highlight_color", "56 40 19")
  391. SpawnSet(NPC, "soga_hair_face_highlight_color", "56 40 19")
  392. SpawnSet(NPC, "hair_color1", "0 0 0")
  393. SpawnSet(NPC, "soga_hair_color1", "0 0 0")
  394. SpawnSet(NPC, "hair_color2", "0 0 0")
  395. SpawnSet(NPC, "soga_hair_color2", "0 0 0")
  396. SpawnSet(NPC, "hair_highlight", "0 0 0")
  397. SpawnSet(NPC, "soga_hair_highlight", "0 0 0")
  398. elseif overall_look == 11 then -- Dark grey
  399. SpawnSet(NPC, "skin_color", "186 191 170")
  400. SpawnSet(NPC, "soga_skin_color", "186 191 170")
  401. SpawnSet(NPC, "eye_color", "38 77 88")
  402. SpawnSet(NPC, "soga_eye_color", "38 77 88")
  403. SpawnSet(NPC, "hair_type_color", "59 58 73")
  404. SpawnSet(NPC, "soga_hair_type_color", "59 58 73")
  405. SpawnSet(NPC, "hair_face_color", "59 58 73")
  406. SpawnSet(NPC, "soga_hair_face_color", "59 58 73")
  407. SpawnSet(NPC, "hair_type_highlight_color", "119 147 147")
  408. SpawnSet(NPC, "soga_hair_type_highlight_color", "119 147 147")
  409. SpawnSet(NPC, "hair_face_highlight_color", "119 147 147")
  410. SpawnSet(NPC, "soga_hair_face_highlight_color", "119 147 147")
  411. SpawnSet(NPC, "hair_color1", "43 36 70")
  412. SpawnSet(NPC, "soga_hair_color1", "43 36 70")
  413. SpawnSet(NPC, "hair_color2", "64 76 74")
  414. SpawnSet(NPC, "soga_hair_color2", "64 76 74")
  415. SpawnSet(NPC, "hair_highlight", "114 112 142")
  416. SpawnSet(NPC, "soga_hair_highlight", "114 112 142")
  417. elseif overall_look == 12 then -- Dark grey and brown skin
  418. SpawnSet(NPC, "skin_color", "46 35 12")
  419. SpawnSet(NPC, "soga_skin_color", "46 35 12")
  420. SpawnSet(NPC, "eye_color", "105 85 44")
  421. SpawnSet(NPC, "soga_eye_color", "105 85 44")
  422. SpawnSet(NPC, "hair_type_color", "59 58 73")
  423. SpawnSet(NPC, "soga_hair_type_color", "59 58 73")
  424. SpawnSet(NPC, "hair_face_color", "59 58 73")
  425. SpawnSet(NPC, "soga_hair_face_color", "59 58 73")
  426. SpawnSet(NPC, "hair_type_highlight_color", "119 147 147")
  427. SpawnSet(NPC, "soga_hair_type_highlight_color", "119 147 147")
  428. SpawnSet(NPC, "hair_face_highlight_color", "119 147 147")
  429. SpawnSet(NPC, "soga_hair_face_highlight_color", "119 147 147")
  430. SpawnSet(NPC, "hair_color1", "43 36 70")
  431. SpawnSet(NPC, "soga_hair_color1", "43 36 70")
  432. SpawnSet(NPC, "hair_color2", "64 76 74")
  433. SpawnSet(NPC, "soga_hair_color2", "64 76 74")
  434. SpawnSet(NPC, "hair_highlight", "114 112 142")
  435. SpawnSet(NPC, "soga_hair_highlight", "114 112 142")
  436. elseif overall_look == 13 then -- Black with white highlights
  437. SpawnSet(NPC, "skin_color", "179 188 188")
  438. SpawnSet(NPC, "soga_skin_color", "179 188 188")
  439. SpawnSet(NPC, "eye_color", "105 165 179")
  440. SpawnSet(NPC, "soga_eye_color", "105 165 179")
  441. SpawnSet(NPC, "hair_type_color", "15 1 21")
  442. SpawnSet(NPC, "soga_hair_type_color", "15 1 21")
  443. SpawnSet(NPC, "hair_face_color", "15 1 21")
  444. SpawnSet(NPC, "soga_hair_face_color", "15 1 21")
  445. SpawnSet(NPC, "hair_type_highlight_color", "211 220 220")
  446. SpawnSet(NPC, "soga_hair_type_highlight_color", "211 220 220")
  447. SpawnSet(NPC, "hair_face_highlight_color", "211 220 220")
  448. SpawnSet(NPC, "soga_hair_face_highlight_color", "211 220 220")
  449. SpawnSet(NPC, "hair_color1", "29 21 28")
  450. SpawnSet(NPC, "soga_hair_color1", "29 21 28")
  451. SpawnSet(NPC, "hair_color2", "39 32 39")
  452. SpawnSet(NPC, "soga_hair_color2", "39 32 39")
  453. SpawnSet(NPC, "hair_highlight", "161 165 168")
  454. SpawnSet(NPC, "soga_hair_highlight", "161 165 168")
  455. else -- Light black
  456. SpawnSet(NPC, "skin_color", "176 156 105")
  457. SpawnSet(NPC, "soga_skin_color", "176 156 105")
  458. SpawnSet(NPC, "eye_color", "67 132 116")
  459. SpawnSet(NPC, "soga_eye_color", "67 132 116")
  460. SpawnSet(NPC, "hair_type_color", "39 50 50")
  461. SpawnSet(NPC, "soga_hair_type_color", "39 50 50")
  462. SpawnSet(NPC, "hair_face_color", "39 50 50")
  463. SpawnSet(NPC, "soga_hair_face_color", "39 50 50")
  464. SpawnSet(NPC, "hair_type_highlight_color", "18 11 0")
  465. SpawnSet(NPC, "soga_hair_type_highlight_color", "18 11 0")
  466. SpawnSet(NPC, "hair_face_highlight_color", "18 11 0")
  467. SpawnSet(NPC, "soga_hair_face_highlight_color", "18 11 0")
  468. SpawnSet(NPC, "hair_color1", "0 0 0")
  469. SpawnSet(NPC, "soga_hair_color1", "0 0 0")
  470. SpawnSet(NPC, "hair_color2", "0 0 0")
  471. SpawnSet(NPC, "soga_hair_color2", "0 0 0")
  472. SpawnSet(NPC, "hair_highlight", "0 0 0")
  473. SpawnSet(NPC, "soga_hair_highlight", "0 0 0")
  474. end
  475. end
  476. function HighElfCosmetics(NPC)
  477. local hair = MakeRandomInt(1133,1140)
  478. SpawnSet(NPC, "hair_type", hair)
  479. SpawnSet(NPC, "soga_hair_type", hair)
  480. local overall_look = MakeRandomInt(1,6)
  481. if overall_look == 1 then -- White
  482. SpawnSet(NPC, "skin_color", "235 243 243")
  483. SpawnSet(NPC, "soga_skin_color", "235 243 243")
  484. SpawnSet(NPC, "eye_color", "112 168 180")
  485. SpawnSet(NPC, "soga_eye_color", "112 168 180")
  486. SpawnSet(NPC, "hair_type_color", "247 240 227")
  487. SpawnSet(NPC, "soga_hair_type_color", "247 240 227")
  488. SpawnSet(NPC, "hair_type_highlight_color", "14 11 9")
  489. SpawnSet(NPC, "soga_hair_type_highlight_color", "14 11 9")
  490. elseif overall_look == 2 then -- Light grey
  491. SpawnSet(NPC, "skin_color", "209 181 133")
  492. SpawnSet(NPC, "soga_skin_color", "209 181 133")
  493. SpawnSet(NPC, "eye_color", "69 82 46")
  494. SpawnSet(NPC, "soga_eye_color", "69 82 46")
  495. SpawnSet(NPC, "hair_type_color", "219 219 216")
  496. SpawnSet(NPC, "soga_hair_type_color", "219 219 216")
  497. SpawnSet(NPC, "hair_type_highlight_color", "54 22 8")
  498. SpawnSet(NPC, "soga_hair_type_highlight_color", "54 22 8")
  499. elseif overall_look == 3 then -- Very light yellow
  500. SpawnSet(NPC, "skin_color", "240 249 246")
  501. SpawnSet(NPC, "soga_skin_color", "240 249 246")
  502. SpawnSet(NPC, "eye_color", "96 160 174")
  503. SpawnSet(NPC, "soga_eye_color", "96 160 174")
  504. SpawnSet(NPC, "hair_type_color", "214 184 120")
  505. SpawnSet(NPC, "soga_hair_type_color", "214 184 120")
  506. SpawnSet(NPC, "hair_type_highlight_color", "65 61 27")
  507. SpawnSet(NPC, "soga_hair_type_highlight_color", "65 61 27")
  508. elseif overall_look == 4 then -- Light yellow
  509. SpawnSet(NPC, "skin_color", "255 255 255")
  510. SpawnSet(NPC, "soga_skin_color", "255 255 255")
  511. SpawnSet(NPC, "eye_color", "58 62 34")
  512. SpawnSet(NPC, "soga_eye_color", "58 62 34")
  513. SpawnSet(NPC, "hair_type_color", "213 215 126")
  514. SpawnSet(NPC, "soga_hair_type_color", "213 215 126")
  515. SpawnSet(NPC, "hair_type_highlight_color", "54 32 1")
  516. SpawnSet(NPC, "soga_hair_type_highlight_color", "54 32 1")
  517. elseif overall_look == 5 then -- Bright yellow
  518. SpawnSet(NPC, "skin_color", "193 199 199")
  519. SpawnSet(NPC, "soga_skin_color", "193 199 199")
  520. SpawnSet(NPC, "eye_color", "71 57 30")
  521. SpawnSet(NPC, "soga_eye_color", "71 57 30")
  522. SpawnSet(NPC, "hair_type_color", "236 195 50")
  523. SpawnSet(NPC, "soga_hair_type_color", "236 195 50")
  524. SpawnSet(NPC, "hair_type_highlight_color", "65 37 3")
  525. SpawnSet(NPC, "soga_hair_type_highlight_color", "65 37 3")
  526. else -- Dark yellow
  527. SpawnSet(NPC, "skin_color", "240 249 246")
  528. SpawnSet(NPC, "soga_skin_color", "240 249 246")
  529. SpawnSet(NPC, "eye_color", "105 85 44")
  530. SpawnSet(NPC, "soga_eye_color", "105 85 44")
  531. SpawnSet(NPC, "hair_type_color", "211 157 3")
  532. SpawnSet(NPC, "soga_hair_type_color", "211 157 3")
  533. SpawnSet(NPC, "hair_type_highlight_color", "125 50 1")
  534. SpawnSet(NPC, "soga_hair_type_highlight_color", "125 50 1")
  535. end
  536. end
  537. function KerranCosmetics(NPC)
  538. SpawnSet(NPC, "hair_type", "0")
  539. SpawnSet(NPC, "eye_color", "222 35 32")
  540. SpawnSet(NPC, "soga_eye_color", "222 35 32")
  541. local overall_look = MakeRandomInt(1,9)
  542. if overall_look == 1 then -- 82
  543. SpawnSet(NPC, "skin_color", "112 58 34")
  544. SpawnSet(NPC, "soga_skin_color", "112 58 34")
  545. elseif overall_look == 2 then -- 91
  546. SpawnSet(NPC, "skin_color", "204 195 164")
  547. SpawnSet(NPC, "soga_skin_color", "204 195 164")
  548. elseif overall_look == 3 then -- 92
  549. local color_variation = MakeRandomInt(1,4)
  550. if color_variation == 1 then
  551. SpawnSet(NPC, "skin_color", "129 125 113")
  552. SpawnSet(NPC, "soga_skin_color", "129 125 113")
  553. elseif color_variation == 2 then
  554. SpawnSet(NPC, "skin_color", "152 93 67")
  555. SpawnSet(NPC, "soga_skin_color", "152 93 67")
  556. elseif color_variation == 3 then
  557. SpawnSet(NPC, "skin_color", "175 153 74")
  558. SpawnSet(NPC, "soga_skin_color", "175 153 74")
  559. else
  560. SpawnSet(NPC, "skin_color", "254 252 248")
  561. SpawnSet(NPC, "soga_skin_color", "254 252 248")
  562. end
  563. elseif overall_look == 4 then -- 93
  564. SpawnSet(NPC, "skin_color", "139 38 1")
  565. SpawnSet(NPC, "soga_skin_color", "139 38 1")
  566. elseif overall_look == 5 then -- 94
  567. local color_variation = MakeRandomInt(1,2)
  568. if color_variation == 1 then
  569. SpawnSet(NPC, "skin_color", "74 64 39")
  570. SpawnSet(NPC, "soga_skin_color", "74 64 39")
  571. else
  572. SpawnSet(NPC, "skin_color", "95 29 1")
  573. SpawnSet(NPC, "soga_skin_color", "95 29 1")
  574. end
  575. elseif overall_look == 6 then -- 95
  576. SpawnSet(NPC, "skin_color", "150 61 12")
  577. SpawnSet(NPC, "soga_skin_color", "150 61 12")
  578. elseif overall_look == 7 then -- 97
  579. local color_variation = MakeRandomInt(1,2)
  580. if color_variation == 1 then
  581. SpawnSet(NPC, "skin_color", "130 83 29")
  582. SpawnSet(NPC, "soga_skin_color", "130 83 29")
  583. else
  584. SpawnSet(NPC, "skin_color", "247 247 248")
  585. SpawnSet(NPC, "soga_skin_color", "247 247 248")
  586. end
  587. elseif overall_look == 8 then -- 100
  588. local color_variation = MakeRandomInt(1,3)
  589. if color_variation == 1 then
  590. SpawnSet(NPC, "skin_color", "25 9 1")
  591. SpawnSet(NPC, "soga_skin_color", "25 9 1")
  592. elseif color_variation == 2 then
  593. SpawnSet(NPC, "skin_color", "146 72 19")
  594. SpawnSet(NPC, "soga_skin_color", "146 72 19")
  595. else
  596. SpawnSet(NPC, "skin_color", "163 146 139")
  597. SpawnSet(NPC, "soga_skin_color", "163 146 139")
  598. end
  599. else -- 101
  600. local color_variation = MakeRandomInt(1,3)
  601. if color_variation == 1 then
  602. SpawnSet(NPC, "skin_color", "16 6 1")
  603. SpawnSet(NPC, "soga_skin_color", "16 6 1")
  604. elseif color_variation == 2 then
  605. SpawnSet(NPC, "skin_color", "114 32 1")
  606. SpawnSet(NPC, "soga_skin_color", "114 32 1")
  607. else
  608. SpawnSet(NPC, "skin_color", "248 243 242")
  609. SpawnSet(NPC, "soga_skin_color", "248 243 242")
  610. end
  611. end
  612. end