avisitingtraveller.lua 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525
  1. --[[
  2. Script Name : SpawnScripts/qeynos_combined02/avisitingtraveller.lua
  3. Script Author : Rylec
  4. Script Date : 2021.03.14 09:03:40
  5. Script Purpose :
  6. :
  7. --]]
  8. function spawn(NPC)
  9. local model = MakeRandomInt(5,5)
  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, "135") -- high elf female
  24. SpawnSet(NPC, "soga_model_type", "135")
  25. SpawnSet(NPC, "chest_type", "5521")
  26. SpawnSet(NPC, "legs_type", "5522")
  27. HighElfCosmetics(NPC)
  28. elseif model == 4 then
  29. SetModelType(NPC, "136") -- high elf male
  30. SpawnSet(NPC, "soga_model_type", "136")
  31. SpawnSet(NPC, "chest_type", "5525")
  32. SpawnSet(NPC, "legs_type", "5526")
  33. HighElfCosmetics(NPC)
  34. elseif model == 5 then
  35. SetModelType(NPC, "107") -- halfling female
  36. SpawnSet(NPC, "soga_model_type", "107")
  37. -- SpawnSet(NPC, "chest_type", "5533")
  38. -- SpawnSet(NPC, "legs_type", "5534")
  39. HalflingCosmetics(NPC)
  40. elseif model == 6 then
  41. SetModelType(NPC, "108") -- halfling male
  42. SpawnSet(NPC, "soga_model_type", "108")
  43. SpawnSet(NPC, "chest_type", "5517")
  44. SpawnSet(NPC, "legs_type", "5518")
  45. HalflingCosmetics(NPC)
  46. elseif model == 7 or model == 8 then
  47. local Erudite_Gender = MakeRandomInt(1,2)
  48. if Erudite_Gender == 1 then
  49. SpawnSet(NPC, "chest_type", "5481")
  50. SpawnSet(NPC, "legs_type", "5482")
  51. local Erudite_Tattoo = MakeRandomInt(1587,1596)
  52. SetModelType(NPC, Erudite_Tattoo) -- erudite female
  53. SpawnSet(NPC, "soga_model_type", Erudite_Tattoo)
  54. else
  55. SpawnSet(NPC, "chest_type", "5485")
  56. SpawnSet(NPC, "legs_type", "5486")
  57. local Erudite_Tattoo = MakeRandomInt(1597,1606) -- 119 missing
  58. SetModelType(NPC, Erudite_Tattoo) -- erudite male
  59. SpawnSet(NPC, "soga_model_type", Erudite_Tattoo)
  60. end
  61. EruditeCosmetics(NPC)
  62. elseif model == 9 or model == 10 then
  63. KerraCosmetics(NPC)
  64. elseif model == 11 or model == 12 then
  65. FroglokCosmetics(NPC)
  66. end
  67. end
  68. function hailed(NPC, Spawn)
  69. FaceTarget(NPC, Spawn)
  70. end
  71. function respawn(NPC)
  72. spawn(NPC)
  73. end
  74. function EruditeCosmetics(NPC)
  75. SpawnSet(NPC, "hair_type", "0")
  76. SpawnSet(NPC, "soga_hair_type", "0")
  77. local overall_look = MakeRandomInt(12,12)
  78. if overall_look == 1 then -- Beige golden
  79. SpawnSet(NPC, "skin_color", "136 103 55")
  80. SpawnSet(NPC, "soga_skin_color", "136 103 55")
  81. SpawnSet(NPC, "eye_color", "86 86 0")
  82. SpawnSet(NPC, "soga_eye_color", "86 86 0")
  83. elseif overall_look == 2 then -- Rust grey
  84. SpawnSet(NPC, "skin_color", "86 29 16")
  85. SpawnSet(NPC, "soga_skin_color", "86 29 16")
  86. SpawnSet(NPC, "eye_color", "0 79 79")
  87. SpawnSet(NPC, "soga_eye_color", "0 79 79")
  88. elseif overall_look == 3 then -- Gold greyish
  89. SpawnSet(NPC, "skin_color", "165 132 92")
  90. SpawnSet(NPC, "soga_skin_color", "165 132 92")
  91. SpawnSet(NPC, "eye_color", "0 60 39")
  92. SpawnSet(NPC, "soga_eye_color", "0 60 39")
  93. elseif overall_look == 4 then -- Grey
  94. SpawnSet(NPC, "skin_color", "127 103 100")
  95. SpawnSet(NPC, "soga_skin_color", "109 60 47")
  96. SpawnSet(NPC, "eye_color", "20 217 164")
  97. SpawnSet(NPC, "soga_eye_color", "20 217 164")
  98. elseif overall_look == 5 then -- Greyish golden
  99. SpawnSet(NPC, "skin_color", "144 132 86")
  100. SpawnSet(NPC, "soga_skin_color", "144 132 86")
  101. SpawnSet(NPC, "eye_color", "0 24 24")
  102. SpawnSet(NPC, "soga_eye_color", "0 24 24")
  103. elseif overall_look == 6 then -- Greyish green
  104. SpawnSet(NPC, "skin_color", "101 95 57")
  105. SpawnSet(NPC, "soga_skin_color", "101 95 57")
  106. SpawnSet(NPC, "eye_color", "0 145 146")
  107. SpawnSet(NPC, "soga_eye_color", "0 145 146")
  108. elseif overall_look == 7 then -- Rust grey light
  109. SpawnSet(NPC, "skin_color", "109 60 47")
  110. SpawnSet(NPC, "soga_skin_color", "109 60 47")
  111. SpawnSet(NPC, "eye_color", "20 217 164")
  112. SpawnSet(NPC, "soga_eye_color", "20 217 164")
  113. elseif overall_look == 8 then -- Greyish green dark
  114. SpawnSet(NPC, "skin_color", "72 69 39")
  115. SpawnSet(NPC, "soga_skin_color", "72 69 39")
  116. SpawnSet(NPC, "eye_color", "192 192 0")
  117. SpawnSet(NPC, "soga_eye_color", "192 192 0")
  118. elseif overall_look == 9 then -- Golden very light
  119. SpawnSet(NPC, "skin_color", "175 160 108")
  120. SpawnSet(NPC, "soga_skin_color", "175 160 108")
  121. SpawnSet(NPC, "eye_color", "0 189 4")
  122. SpawnSet(NPC, "soga_eye_color", "0 189 4")
  123. elseif overall_look == 10 then -- Golden very light
  124. SpawnSet(NPC, "skin_color", "175 163 120")
  125. SpawnSet(NPC, "soga_skin_color", "175 163 120")
  126. SpawnSet(NPC, "eye_color", "151 66 0")
  127. SpawnSet(NPC, "soga_eye_color", "151 66 0")
  128. elseif overall_look == 11 then -- Golden light
  129. SpawnSet(NPC, "skin_color", "155 143 88")
  130. SpawnSet(NPC, "soga_skin_color", "155 143 88")
  131. SpawnSet(NPC, "eye_color", "95 96 0")
  132. SpawnSet(NPC, "soga_eye_color", "95 96 0")
  133. elseif overall_look == 12 then -- Grey light
  134. SpawnSet(NPC, "skin_color", "101 95 57")
  135. SpawnSet(NPC, "soga_skin_color", "101 95 57")
  136. SpawnSet(NPC, "eye_color", "0 145 146")
  137. SpawnSet(NPC, "soga_eye_color", "0 145 146")
  138. end
  139. end
  140. function HalflingCosmetics(NPC)
  141. local hair = MakeRandomInt(1133,1140) -- 1113 (|m), 1116 (f|), 1124 (f|)
  142. SpawnSet(NPC, "hair_type", hair)
  143. SpawnSet(NPC, "soga_hair_type", hair)
  144. local overall_look = MakeRandomInt(10,10)
  145. if overall_look == 1 then -- Brown light
  146. SpawnSet(NPC, "skin_color", "236 242 242")
  147. SpawnSet(NPC, "soga_skin_color", "236 242 242")
  148. SpawnSet(NPC, "eye_color", "37 77 81")
  149. SpawnSet(NPC, "soga_eye_color", "37 77 81")
  150. SpawnSet(NPC, "hair_type_color", "104 93 16")
  151. SpawnSet(NPC, "soga_hair_type_color", "104 93 16")
  152. SpawnSet(NPC, "hair_type_highlight_color", "0 0 0")
  153. SpawnSet(NPC, "soga_hair_type_highlight_color", "0 0 0")
  154. SpawnSet(NPC, "hair_color1", "0 0 0")
  155. SpawnSet(NPC, "soga_hair_color1", "0 0 0")
  156. SpawnSet(NPC, "hair_color2", "0 0 0")
  157. SpawnSet(NPC, "soga_hair_color2", "0 0 0")
  158. SpawnSet(NPC, "hair_highlight", "0 0 0")
  159. SpawnSet(NPC, "soga_hair_highlight", "0 0 0")
  160. elseif overall_look == 2 then -- Brown orange
  161. SpawnSet(NPC, "skin_color", "241 205 204")
  162. SpawnSet(NPC, "soga_skin_color", "241 205 204")
  163. SpawnSet(NPC, "eye_color", "50 104 95")
  164. SpawnSet(NPC, "soga_eye_color", "50 104 95")
  165. SpawnSet(NPC, "hair_type_color", "131 92 0")
  166. SpawnSet(NPC, "soga_hair_type_color", "131 92 0")
  167. SpawnSet(NPC, "hair_type_highlight_color", "167 60 30")
  168. SpawnSet(NPC, "soga_hair_type_highlight_color", "167 60 30")
  169. SpawnSet(NPC, "hair_color1", "0 0 0")
  170. SpawnSet(NPC, "soga_hair_color1", "0 0 0")
  171. SpawnSet(NPC, "hair_color2", "0 0 0")
  172. SpawnSet(NPC, "soga_hair_color2", "0 0 0")
  173. SpawnSet(NPC, "hair_highlight", "0 0 0")
  174. SpawnSet(NPC, "soga_hair_highlight", "0 0 0")
  175. elseif overall_look == 3 then -- Black dark
  176. SpawnSet(NPC, "skin_color", "250 228 229")
  177. SpawnSet(NPC, "soga_skin_color", "250 228 229")
  178. SpawnSet(NPC, "eye_color", "137 186 200")
  179. SpawnSet(NPC, "soga_eye_color", "137 186 200")
  180. SpawnSet(NPC, "hair_type_color", "11 9 6")
  181. SpawnSet(NPC, "soga_hair_type_color", "11 9 6")
  182. SpawnSet(NPC, "hair_type_highlight_color", "62 57 21")
  183. SpawnSet(NPC, "soga_hair_type_highlight_color", "62 57 21")
  184. SpawnSet(NPC, "hair_color1", "0 0 0")
  185. SpawnSet(NPC, "soga_hair_color1", "0 0 0")
  186. SpawnSet(NPC, "hair_color2", "0 0 0")
  187. SpawnSet(NPC, "soga_hair_color2", "0 0 0")
  188. SpawnSet(NPC, "hair_highlight", "0 0 0")
  189. SpawnSet(NPC, "soga_hair_highlight", "0 0 0")
  190. elseif overall_look == 4 then -- Chestnut light
  191. SpawnSet(NPC, "skin_color", "240 242 214")
  192. SpawnSet(NPC, "soga_skin_color", "240 242 214")
  193. SpawnSet(NPC, "eye_color", "49 29 9")
  194. SpawnSet(NPC, "soga_eye_color", "49 29 9")
  195. SpawnSet(NPC, "hair_type_color", "35 24 1")
  196. SpawnSet(NPC, "soga_hair_type_color", "35 24 1")
  197. SpawnSet(NPC, "hair_type_highlight_color", "100 70 10")
  198. SpawnSet(NPC, "soga_hair_type_highlight_color", "100 70 10")
  199. SpawnSet(NPC, "hair_color1", "79 28 15")
  200. SpawnSet(NPC, "soga_hair_color1", "79 28 15")
  201. SpawnSet(NPC, "hair_color2", "111 64 0")
  202. SpawnSet(NPC, "soga_hair_color2", "111 64 0")
  203. SpawnSet(NPC, "hair_highlight", "56 33 26")
  204. SpawnSet(NPC, "soga_hair_highlight", "56 33 26")
  205. elseif overall_look == 5 then -- Orange light golden
  206. SpawnSet(NPC, "skin_color", "204 217 217")
  207. SpawnSet(NPC, "soga_skin_color", "204 217 217")
  208. SpawnSet(NPC, "eye_color", "157 187 169")
  209. SpawnSet(NPC, "soga_eye_color", "157 187 169")
  210. SpawnSet(NPC, "hair_type_color", "208 129 3")
  211. SpawnSet(NPC, "soga_hair_type_color", "208 129 3")
  212. SpawnSet(NPC, "hair_type_highlight_color", "31 12 0")
  213. SpawnSet(NPC, "soga_hair_type_highlight_color", "31 12 0")
  214. SpawnSet(NPC, "hair_color1", "0 0 0")
  215. SpawnSet(NPC, "soga_hair_color1", "0 0 0")
  216. SpawnSet(NPC, "hair_color2", "0 0 0")
  217. SpawnSet(NPC, "soga_hair_color2", "0 0 0")
  218. SpawnSet(NPC, "hair_highlight", "0 0 0")
  219. SpawnSet(NPC, "soga_hair_highlight", "0 0 0")
  220. elseif overall_look == 6 then -- Orange brown with bright high lights
  221. SpawnSet(NPC, "skin_color", "240 242 214")
  222. SpawnSet(NPC, "soga_skin_color", "240 242 214")
  223. SpawnSet(NPC, "eye_color", "143 189 203")
  224. SpawnSet(NPC, "soga_eye_color", "143 189 203")
  225. SpawnSet(NPC, "hair_type_color", "97 67 9")
  226. SpawnSet(NPC, "soga_hair_type_color", "97 67 9")
  227. SpawnSet(NPC, "hair_type_highlight_color", "233 184 31")
  228. SpawnSet(NPC, "soga_hair_type_highlight_color", "233 184 31")
  229. SpawnSet(NPC, "hair_color1", "56 33 26")
  230. SpawnSet(NPC, "soga_hair_color1", "56 33 26")
  231. SpawnSet(NPC, "hair_color2", "94 59 11")
  232. SpawnSet(NPC, "soga_hair_color2", "94 59 11")
  233. SpawnSet(NPC, "hair_highlight", "246 219 114")
  234. SpawnSet(NPC, "soga_hair_highlight", "246 219 114")
  235. elseif overall_look == 7 then -- Orange with bright high lights
  236. SpawnSet(NPC, "skin_color", "155 162 162")
  237. SpawnSet(NPC, "soga_skin_color", "155 162 162")
  238. SpawnSet(NPC, "eye_color", "74 70 37")
  239. SpawnSet(NPC, "soga_eye_color", "74 70 37")
  240. SpawnSet(NPC, "hair_type_color", "114 31 28")
  241. SpawnSet(NPC, "soga_hair_type_color", "114 31 28")
  242. SpawnSet(NPC, "hair_type_highlight_color", "192 99 44")
  243. SpawnSet(NPC, "soga_hair_type_highlight_color", "192 99 44")
  244. SpawnSet(NPC, "hair_color1", "91 21 51")
  245. SpawnSet(NPC, "soga_hair_color1", "91 21 51")
  246. SpawnSet(NPC, "hair_color2", "159 88 0")
  247. SpawnSet(NPC, "soga_hair_color2", "159 88 0")
  248. SpawnSet(NPC, "hair_highlight", "105 26 26")
  249. SpawnSet(NPC, "soga_hair_highlight", "105 26 26")
  250. elseif overall_look == 8 then -- Brown light with bright high lights
  251. SpawnSet(NPC, "skin_color", "223 233 225")
  252. SpawnSet(NPC, "soga_skin_color", "223 233 225")
  253. SpawnSet(NPC, "eye_color", "128 181 196")
  254. SpawnSet(NPC, "soga_eye_color", "128 181 196")
  255. SpawnSet(NPC, "hair_type_color", "60 56 24")
  256. SpawnSet(NPC, "soga_hair_type_color", "60 56 24")
  257. SpawnSet(NPC, "hair_type_highlight_color", "232 181 0")
  258. SpawnSet(NPC, "soga_hair_type_highlight_color", "232 181 0")
  259. SpawnSet(NPC, "hair_color1", "0 0 0")
  260. SpawnSet(NPC, "soga_hair_color1", "0 0 0")
  261. SpawnSet(NPC, "hair_color2", "0 0 0")
  262. SpawnSet(NPC, "soga_hair_color2", "0 0 0")
  263. SpawnSet(NPC, "hair_highlight", "0 0 0")
  264. SpawnSet(NPC, "soga_hair_highlight", "0 0 0")
  265. elseif overall_look == 9 then -- Orange light
  266. SpawnSet(NPC, "skin_color", "237 220 219")
  267. SpawnSet(NPC, "soga_skin_color", "237 220 219")
  268. SpawnSet(NPC, "eye_color", "38 79 91")
  269. SpawnSet(NPC, "soga_eye_color", "38 79 91")
  270. SpawnSet(NPC, "hair_type_color", "95 79 62")
  271. SpawnSet(NPC, "soga_hair_type_color", "95 79 62")
  272. SpawnSet(NPC, "hair_type_highlight_color", "171 64 21")
  273. SpawnSet(NPC, "soga_hair_type_highlight_color", "171 64 21")
  274. SpawnSet(NPC, "hair_color1", "239 221 86")
  275. SpawnSet(NPC, "soga_hair_color1", "239 221 86")
  276. SpawnSet(NPC, "hair_color2", "99 53 22")
  277. SpawnSet(NPC, "soga_hair_color2", "99 53 22")
  278. SpawnSet(NPC, "hair_highlight", "105 26 26")
  279. SpawnSet(NPC, "soga_hair_highlight", "105 26 26")
  280. elseif overall_look == 10 then -- Brown orange light
  281. SpawnSet(NPC, "skin_color", "236 199 197")
  282. SpawnSet(NPC, "soga_skin_color", "236 199 197")
  283. SpawnSet(NPC, "eye_color", "156 195 200")
  284. SpawnSet(NPC, "soga_eye_color", "156 195 200")
  285. SpawnSet(NPC, "hair_type_color", "121 82 35")
  286. SpawnSet(NPC, "soga_hair_type_color", "121 82 35")
  287. SpawnSet(NPC, "hair_type_highlight_color", "79 33 0")
  288. SpawnSet(NPC, "soga_hair_type_highlight_color", "79 33 0")
  289. SpawnSet(NPC, "hair_color1", "0 0 0")
  290. SpawnSet(NPC, "soga_hair_color1", "0 0 0")
  291. SpawnSet(NPC, "hair_color2", "0 0 0")
  292. SpawnSet(NPC, "soga_hair_color2", "0 0 0")
  293. SpawnSet(NPC, "hair_highlight", "0 0 0")
  294. SpawnSet(NPC, "soga_hair_highlight", "0 0 0")
  295. end
  296. end
  297. function KerraCosmetics(NPC)
  298. SpawnSet(NPC, "eye_color", "200 220 196")
  299. SpawnSet(NPC, "soga_eye_color", "200 220 196")
  300. Random_Model = MakeRandomInt(1,1) -- 81, 82, 91, 92, 93, 94, 95, 97, 98, 100, 101
  301. if Random_Model == 1 then
  302. SetModelType(NPC, "81")
  303. SpawnSet(NPC, "soga_model_type", "81")
  304. SpawnSet(NPC, "chest_type", "5545")
  305. SpawnSet(NPC, "legs_type", "5546")
  306. SpawnSet(NPC, "skin_color", "82 45 14")
  307. SpawnSet(NPC, "soga_skin_color", "82 45 14")
  308. elseif Random_Model == 2 then
  309. SetModelType(NPC, "82")
  310. SpawnSet(NPC, "soga_model_type", "82")
  311. SpawnSet(NPC, "chest_type", "5549")
  312. SpawnSet(NPC, "legs_type", "5550")
  313. local color_variation = MakeRandomInt(1,2)
  314. if color_variation == 1 then
  315. SpawnSet(NPC, "skin_color", "112 58 34")
  316. SpawnSet(NPC, "soga_skin_color", "112 58 34")
  317. elseif color_variation == 2 then
  318. SpawnSet(NPC, "skin_color", "253 247 232")
  319. SpawnSet(NPC, "soga_skin_color", "253 247 232")
  320. end
  321. elseif Random_Model == 4 then
  322. SetModelType(NPC, "91")
  323. SpawnSet(NPC, "soga_model_type", "91")
  324. SpawnSet(NPC, "chest_type", "5545")
  325. SpawnSet(NPC, "legs_type", "5546")
  326. SpawnSet(NPC, "skin_color", "204 195 164")
  327. SpawnSet(NPC, "soga_skin_color", "204 195 164")
  328. SpawnSet(NPC, "eye_color", "222 35 32")
  329. SpawnSet(NPC, "soga_eye_color", "222 35 32")
  330. elseif Random_Model == 5 then
  331. SetModelType(NPC, "92")
  332. SpawnSet(NPC, "soga_model_type", "92")
  333. SpawnSet(NPC, "chest_type", "5545")
  334. SpawnSet(NPC, "legs_type", "5546")
  335. local color_variation = MakeRandomInt(1,5)
  336. if color_variation == 1 then
  337. SpawnSet(NPC, "skin_color", "129 125 113")
  338. SpawnSet(NPC, "soga_skin_color", "129 125 113")
  339. elseif color_variation == 2 then
  340. SpawnSet(NPC, "skin_color", "132 37 1")
  341. SpawnSet(NPC, "soga_skin_color", "132 37 1")
  342. elseif color_variation == 3 then
  343. SpawnSet(NPC, "skin_color", "152 93 67")
  344. SpawnSet(NPC, "soga_skin_color", "152 93 67")
  345. elseif color_variation == 4 then
  346. SpawnSet(NPC, "skin_color", "175 153 74")
  347. SpawnSet(NPC, "soga_skin_color", "175 153 74")
  348. elseif color_variation == 5 then
  349. SpawnSet(NPC, "skin_color", "254 252 248")
  350. SpawnSet(NPC, "soga_skin_color", "254 252 248")
  351. end
  352. elseif Random_Model == 6 then
  353. SetModelType(NPC, "93")
  354. SpawnSet(NPC, "soga_model_type", "93")
  355. SpawnSet(NPC, "chest_type", "5545")
  356. SpawnSet(NPC, "legs_type", "5546")
  357. SpawnSet(NPC, "skin_color", "139 38 1")
  358. SpawnSet(NPC, "soga_skin_color", "139 38 1")
  359. elseif Random_Model == 5 then
  360. SetModelType(NPC, "94")
  361. SpawnSet(NPC, "soga_model_type", "94")
  362. SpawnSet(NPC, "chest_type", "5545")
  363. SpawnSet(NPC, "legs_type", "5546")
  364. local color_variation = MakeRandomInt(1,2)
  365. if color_variation == 1 then
  366. SpawnSet(NPC, "skin_color", "74 64 39")
  367. SpawnSet(NPC, "soga_skin_color", "74 64 39")
  368. elseif color_variation == 2 then
  369. SpawnSet(NPC, "skin_color", "95 29 1")
  370. SpawnSet(NPC, "soga_skin_color", "95 29 1")
  371. end
  372. elseif Random_Model == 7 then
  373. SetModelType(NPC, "95")
  374. SpawnSet(NPC, "soga_model_type", "95")
  375. SpawnSet(NPC, "chest_type", "5545")
  376. SpawnSet(NPC, "legs_type", "5546")
  377. local color_variation = MakeRandomInt(1,2)
  378. if color_variation == 1 then
  379. SpawnSet(NPC, "skin_color", "150 61 12")
  380. SpawnSet(NPC, "soga_skin_color", "150 61 12")
  381. else
  382. SpawnSet(NPC, "skin_color", "221 188 99")
  383. SpawnSet(NPC, "soga_skin_color", "221 188 99")
  384. end
  385. elseif Random_Model == 8 then
  386. SetModelType(NPC, "97")
  387. SpawnSet(NPC, "soga_model_type", "97")
  388. SpawnSet(NPC, "chest_type", "5549")
  389. SpawnSet(NPC, "legs_type", "5550")
  390. local color_variation = MakeRandomInt(1,3)
  391. if color_variation == 1 then
  392. SpawnSet(NPC, "skin_color", "127 90 37")
  393. SpawnSet(NPC, "soga_skin_color", "127 90 37")
  394. elseif color_variation == 2 then
  395. SpawnSet(NPC, "skin_color", "130 83 29")
  396. SpawnSet(NPC, "soga_skin_color", "130 83 29")
  397. elseif color_variation == 3 then
  398. SpawnSet(NPC, "skin_color", "247 247 248")
  399. SpawnSet(NPC, "soga_skin_color", "247 247 248")
  400. end
  401. elseif Random_Model == 9 then
  402. SetModelType(NPC, "98")
  403. SpawnSet(NPC, "soga_model_type", "98")
  404. SpawnSet(NPC, "chest_type", "5549")
  405. SpawnSet(NPC, "legs_type", "5550")
  406. local color_variation = MakeRandomInt(1,2)
  407. if color_variation == 1 then
  408. SpawnSet(NPC, "skin_color", "126 67 40")
  409. SpawnSet(NPC, "soga_skin_color", "126 67 40")
  410. else
  411. SpawnSet(NPC, "skin_color", "159 89 42")
  412. SpawnSet(NPC, "soga_skin_color", "159 89 42")
  413. end
  414. elseif Random_Model == 10 then
  415. SetModelType(NPC, "100")
  416. SpawnSet(NPC, "soga_model_type", "100")
  417. SpawnSet(NPC, "chest_type", "5549")
  418. SpawnSet(NPC, "legs_type", "5550")
  419. local color_variation = MakeRandomInt(1,3)
  420. if color_variation == 1 then
  421. SpawnSet(NPC, "skin_color", "25 9 1")
  422. SpawnSet(NPC, "soga_skin_color", "25 9 1")
  423. elseif color_variation == 2 then
  424. SpawnSet(NPC, "skin_color", "146 72 19")
  425. SpawnSet(NPC, "soga_skin_color", "146 72 19")
  426. SpawnSet(NPC, "eye_color", "34 59 37")
  427. SpawnSet(NPC, "soga_eye_color", "34 59 37")
  428. else
  429. SpawnSet(NPC, "skin_color", "163 146 139")
  430. SpawnSet(NPC, "soga_skin_color", "163 146 139")
  431. end
  432. else
  433. SetModelType(NPC, "101")
  434. SpawnSet(NPC, "soga_model_type", "101")
  435. SpawnSet(NPC, "chest_type", "5549")
  436. SpawnSet(NPC, "legs_type", "5550")
  437. local color_variation = MakeRandomInt(1,3)
  438. if color_variation == 1 then
  439. SpawnSet(NPC, "skin_color", "16 6 1")
  440. SpawnSet(NPC, "soga_skin_color", "16 6 1")
  441. elseif color_variation == 2 then
  442. SpawnSet(NPC, "skin_color", "114 32 1")
  443. SpawnSet(NPC, "soga_skin_color", "114 32 1")
  444. else
  445. SpawnSet(NPC, "skin_color", "248 243 242")
  446. SpawnSet(NPC, "soga_skin_color", "248 243 242")
  447. end
  448. end
  449. end
  450. function FroglokCosmetics(NPC)
  451. SpawnSet(NPC, "hair_type", "0")
  452. SpawnSet(NPC, "chest_type", "0")
  453. SpawnSet(NPC, "legs_type", "5494")
  454. local overall_look = MakeRandomInt(1,1) -- 1431, 3787, 3789, 3790, 4936, 4943
  455. if overall_look == 1 then -- 1431
  456. SetModelType(NPC, "1431")
  457. SpawnSet(NPC, "soga_model_type", "1431")
  458. SpawnSet(NPC, "skin_color", "112 58 34")
  459. SpawnSet(NPC, "soga_skin_color", "112 58 34")
  460. SpawnSet(NPC, "eye_color", "38 112 112")
  461. SpawnSet(NPC, "soga_eye_color", "38 112 112")
  462. elseif overall_look == 2 then -- 3789
  463. SetModelType(NPC, "3789")
  464. SpawnSet(NPC, "soga_model_type", "3789")
  465. SpawnSet(NPC, "skin_color", "19 0 19")
  466. SpawnSet(NPC, "soga_skin_color", "19 0 19")
  467. SpawnSet(NPC, "eye_color", "0 78 95")
  468. SpawnSet(NPC, "soga_eye_color", "0 78 95")
  469. elseif overall_look == 3 then -- 3790
  470. SetModelType(NPC, "3790")
  471. SpawnSet(NPC, "soga_model_type", "3790")
  472. SpawnSet(NPC, "skin_color", "100 125 125")
  473. SpawnSet(NPC, "soga_skin_color", "100 125 125")
  474. SpawnSet(NPC, "eye_color", "19 106 106")
  475. SpawnSet(NPC, "soga_eye_color", "19 106 106")
  476. elseif overall_look == 4 then -- 3787
  477. SetModelType(NPC, "3787")
  478. SpawnSet(NPC, "soga_model_type", "3787")
  479. SpawnSet(NPC, "skin_color", "60 56 24")
  480. SpawnSet(NPC, "soga_skin_color", "60 56 24")
  481. SpawnSet(NPC, "eye_color", "0 107 109")
  482. SpawnSet(NPC, "soga_eye_color", "0 107 109")
  483. elseif overall_look == 5 then -- 4936
  484. SetModelType(NPC, "4936")
  485. SpawnSet(NPC, "soga_model_type", "4936")
  486. SpawnSet(NPC, "skin_color", "80 10 17")
  487. SpawnSet(NPC, "soga_skin_color", "80 10 17")
  488. SpawnSet(NPC, "eye_color", "6 0 100")
  489. SpawnSet(NPC, "soga_eye_color", "6 0 100")
  490. elseif overall_look == 6 then -- 4943
  491. SetModelType(NPC, "4943")
  492. SpawnSet(NPC, "soga_model_type", "4943")
  493. SpawnSet(NPC, "skin_color", "0 1 47")
  494. SpawnSet(NPC, "soga_skin_color", "0 1 47")
  495. SpawnSet(NPC, "eye_color", "0 180 173")
  496. SpawnSet(NPC, "soga_eye_color", "0 180 173")
  497. elseif overall_look == 7 then -- 1431
  498. SetModelType(NPC, "1431")
  499. SpawnSet(NPC, "soga_model_type", "1431")
  500. SpawnSet(NPC, "skin_color", "0 175 175")
  501. SpawnSet(NPC, "soga_skin_color", "112 58 34")
  502. SpawnSet(NPC, "eye_color", "38 112 112")
  503. SpawnSet(NPC, "soga_eye_color", "38 112 112")
  504. end
  505. end