anemotionalQeynosresident.lua 33 KB

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