123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684 |
- --[[
- Script Name : SpawnScripts/qeynos_combined02/aGraystoneGuildbruiserDojoBarbarian133772275.lua
- Script Author : Rylec
- Script Date : 2021.03.07 06:03:16
- Script Purpose :
- :
- --]]
- function spawn(NPC)
- local model = MakeRandomInt(1,6)
- if model == 1 then
- SetModelType(NPC, "132") -- human female
- SpawnSet(NPC, "soga_model_type", "132")
- SpawnSet(NPC, "chest_type", "5529")
- SpawnSet(NPC, "legs_type", "5530")
- HumanCosmetics(NPC)
- elseif model == 2 then
- SetModelType(NPC, "134") -- human male
- SpawnSet(NPC, "soga_model_type", "134")
- SpawnSet(NPC, "chest_type", "5533")
- SpawnSet(NPC, "legs_type", "5534")
- HumanCosmetics(NPC)
- elseif model == 3 then
- SetModelType(NPC, "109") -- dwarf female
- SpawnSet(NPC, "soga_model_type", "109")
- SpawnSet(NPC, "chest_type", "5473")
- SpawnSet(NPC, "legs_type", "5474")
- DwarfCosmetics(NPC)
- elseif model == 4 then
- SetModelType(NPC, "110") -- dwarf male
- SpawnSet(NPC, "soga_model_type", "110")
- SpawnSet(NPC, "chest_type", "5477")
- SpawnSet(NPC, "legs_type", "5478")
- DwarfCosmetics(NPC)
- elseif model == 5 then
- SetModelType(NPC, "111") -- barbarian female
- SpawnSet(NPC, "soga_model_type", "111")
- SpawnSet(NPC, "chest_type", "5457")
- SpawnSet(NPC, "legs_type", "5458")
- BarbarianCosmetics(NPC)
- else
- SetModelType(NPC, "112") -- barbarian male
- SpawnSet(NPC, "soga_model_type", "112")
- SpawnSet(NPC, "chest_type", "5461")
- SpawnSet(NPC, "legs_type", "5462")
- BarbarianCosmetics(NPC)
- end
-
- SetEquipment(NPC, 3, 991, 255, 255, 255, 255, 255, 255)
- SetEquipment(NPC, 7, 4570, 255, 255, 255, 255, 255, 255)
- SetEquipment(NPC, 8, 992, 255, 255, 255, 255, 255, 255)
- local Forearms_chance = MakeRandomInt(1,100)
- if Forearms_chance < 51 then
- SetEquipment(NPC, 5, 1009, 255, 255, 255, 255, 255, 255)
- else
- SetEquipment(NPC, 5, 0)
- end
-
- AddTimer(NPC, 6000, "EmoteLoop")
- end
- function hailed(NPC, Spawn)
- FaceTarget(NPC, Spawn)
- local Type = GetModelType(NPC)
- local choice = MakeRandomInt(1,2)
-
- if Type == 132 then
- if choice == 1 then
- 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)
- else
- 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)
- end
- elseif Type == 134 then
- if choice == 1 then
- PlayFlavor(NPC, "", "Almost time to stop and have an ale, isn't it?", "", 0, 0, Spawn)
- else
- PlayFlavor(NPC, "", "Oh, my aching back! As good a time to stop and chat as any, I say.", "yawn", 0, 0, Spawn)
- end
- elseif Type == 109 then
- if choice == 1 then
- 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)
- else
- 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)
- end
- elseif Type == 110 then
- if choice == 1 then
- PlayFlavor(NPC, "", "A hard day of adventuring makes one long for home, don't it?", "", 0, 0, Spawn)
- else
- PlayFlavor(NPC, "", "Ah, what I wouldn't give to be cradling a mug of good dwarven ale.", "", 0, 0, Spawn)
- end
- elseif Type == 111 then
- if choice == 1 then
- PlayFlavor(NPC, "", "I'm not used to this weather, but my people can adapt to any change in order to survive.", "", 0, 0, Spawn)
- else
- PlayFlavor(NPC, "", "Treasures from the past can be found throughout the lands, for those who care to look.", "", 0, 0, Spawn)
- end
- elseif Type == 112 then
- if choice == 1 then
- 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)
- else
- 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)
- end
- end
- end
- function respawn(NPC)
- spawn(NPC)
- end
- function BarbarianCosmetics(NPC)
- local Type = GetModelType(NPC)
- local HairType = 0
- if Type == 111 then
- HairType = MakeRandomInt(1136,1140)
- SpawnSet(NPC, "hair_type", HairType)
- SpawnSet(NPC, "soga_hair_type", HairType)
- else
- HairType = MakeRandomInt(1133,1140)
- SpawnSet(NPC, "hair_type", HairType)
- SpawnSet(NPC, "soga_hair_type", HairType)
- end
- local FaceHairType = MakeRandomInt(1185,1189)
- SpawnSet(NPC, "facial_hair_type", FaceHairType)
- SpawnSet(NPC, "soga_facial_hair_type", FaceHairType)
- local overall_look = MakeRandomInt(1,6)
- if overall_look == 1 then -- Light chestnut (yellowish)
- SpawnSet(NPC, "skin_color", "206 162 137")
- SpawnSet(NPC, "soga_skin_color", "206 162 137")
- SpawnSet(NPC, "eye_color", "47 100 102")
- SpawnSet(NPC, "soga_eye_color", "47 100 102")
- SpawnSet(NPC, "hair_type_color", "37 22 5")
- SpawnSet(NPC, "soga_hair_type_color", "37 22 5")
- SpawnSet(NPC, "hair_face_color", "37 22 5")
- SpawnSet(NPC, "soga_hair_face_color", "37 22 5")
- SpawnSet(NPC, "hair_type_highlight_color", "27 15 35")
- SpawnSet(NPC, "soga_hair_type_highlight_color", "27 15 35")
- SpawnSet(NPC, "hair_face_highlight_color", "27 15 35")
- SpawnSet(NPC, "soga_hair_face_highlight_color", "27 15 35")
- SpawnSet(NPC, "hair_color1", "79 28 15")
- SpawnSet(NPC, "soga_hair_color1", "79 28 15")
- SpawnSet(NPC, "hair_color2", "111 64 0")
- SpawnSet(NPC, "soga_hair_color2", "111 64 0")
- SpawnSet(NPC, "hair_highlight", "29 21 28")
- SpawnSet(NPC, "soga_hair_highlight", "29 21 28")
- elseif overall_look == 2 then -- White
- SpawnSet(NPC, "skin_color", "229 215 216")
- SpawnSet(NPC, "soga_skin_color", "229 215 216")
- SpawnSet(NPC, "eye_color", "47 95 110")
- SpawnSet(NPC, "soga_eye_color", "47 95 110")
- SpawnSet(NPC, "hair_type_color", "119 147 147")
- SpawnSet(NPC, "soga_hair_type_color", "119 147 147")
- SpawnSet(NPC, "hair_face_color", "119 147 147")
- SpawnSet(NPC, "soga_hair_face_color", "119 147 147")
- SpawnSet(NPC, "hair_type_highlight_color", "193 100 45")
- SpawnSet(NPC, "soga_hair_type_highlight_color", "193 100 45")
- SpawnSet(NPC, "hair_face_highlight_color", "193 100 45")
- SpawnSet(NPC, "soga_hair_face_highlight_color", "193 100 45")
- SpawnSet(NPC, "hair_color1", "114 112 142")
- SpawnSet(NPC, "soga_hair_color1", "114 112 142")
- SpawnSet(NPC, "hair_color2", "152 138 129")
- SpawnSet(NPC, "soga_hair_color2", "152 138 129")
- SpawnSet(NPC, "hair_highlight", "105 26 26")
- SpawnSet(NPC, "soga_hair_highlight", "105 26 26")
- elseif overall_look == 3 then -- Bright yellow
- SpawnSet(NPC, "skin_color", "191 197 197")
- SpawnSet(NPC, "soga_skin_color", "191 197 197")
- SpawnSet(NPC, "eye_color", "38 78 71")
- SpawnSet(NPC, "soga_eye_color", "38 78 71")
- SpawnSet(NPC, "hair_type_color", "190 133 13")
- SpawnSet(NPC, "soga_hair_type_color", "190 133 13")
- SpawnSet(NPC, "hair_face_color", "190 133 13")
- SpawnSet(NPC, "soga_hair_face_color", "190 133 13")
- SpawnSet(NPC, "hair_type_highlight_color", "233 184 31")
- SpawnSet(NPC, "soga_hair_type_highlight_color", "233 184 31")
- SpawnSet(NPC, "hair_face_highlight_color", "233 184 31")
- SpawnSet(NPC, "soga_hair_face_highlight_color", "233 184 31")
- SpawnSet(NPC, "hair_color1", "209 131 22")
- SpawnSet(NPC, "soga_hair_color1", "209 131 22")
- SpawnSet(NPC, "hair_color2", "199 150 48")
- SpawnSet(NPC, "soga_hair_color2", "199 150 48")
- SpawnSet(NPC, "hair_highlight", "246 219 114")
- SpawnSet(NPC, "soga_hair_highlight", "246 219 114")
- elseif overall_look == 4 then -- Chestnut
- SpawnSet(NPC, "skin_color", "166 167 167")
- SpawnSet(NPC, "soga_skin_color", "166 167 167")
- SpawnSet(NPC, "eye_color", "52 104 87")
- SpawnSet(NPC, "soga_eye_color", "52 104 87")
- SpawnSet(NPC, "hair_type_color", "0 0 0")
- SpawnSet(NPC, "soga_hair_type_color", "0 0 0")
- SpawnSet(NPC, "hair_face_color", "0 0 0")
- SpawnSet(NPC, "soga_hair_face_color", "0 0 0")
- SpawnSet(NPC, "hair_type_highlight_color", "0 0 0")
- SpawnSet(NPC, "soga_hair_type_highlight_color", "0 0 0")
- SpawnSet(NPC, "hair_face_highlight_color", "0 0 0")
- SpawnSet(NPC, "soga_hair_face_highlight_color", "0 0 0")
- SpawnSet(NPC, "hair_color1", "38 22 21")
- SpawnSet(NPC, "soga_hair_color1", "38 22 21")
- SpawnSet(NPC, "hair_color2", "120 50 0")
- SpawnSet(NPC, "soga_hair_color2", "120 50 0")
- SpawnSet(NPC, "hair_highlight", "54 45 28")
- SpawnSet(NPC, "soga_hair_highlight", "54 45 28")
- elseif overall_look == 5 then -- Dark yellow
- SpawnSet(NPC, "skin_color", "191 197 197")
- SpawnSet(NPC, "soga_skin_color", "191 197 197")
- SpawnSet(NPC, "eye_color", "35 75 76")
- SpawnSet(NPC, "soga_eye_color", "35 75 76")
- SpawnSet(NPC, "hair_type_color", "97 67 10")
- SpawnSet(NPC, "soga_hair_type_color", "97 67 10")
- SpawnSet(NPC, "hair_face_color", "97 67 10")
- SpawnSet(NPC, "soga_hair_face_color", "97 67 10")
- SpawnSet(NPC, "hair_type_highlight_color", "139 47 30")
- SpawnSet(NPC, "soga_hair_type_highlight_color", "139 47 30")
- SpawnSet(NPC, "hair_face_highlight_color", "139 47 30")
- SpawnSet(NPC, "soga_hair_face_highlight_color", "139 47 30")
- SpawnSet(NPC, "hair_color1", "56 33 26")
- SpawnSet(NPC, "soga_hair_color1", "56 33 26")
- SpawnSet(NPC, "hair_color2", "94 59 11")
- SpawnSet(NPC, "soga_hair_color2", "94 59 11")
- SpawnSet(NPC, "hair_highlight", "91 21 51")
- SpawnSet(NPC, "soga_hair_highlight", "91 21 51")
- elseif overall_look == 6 then -- Dark yellow NY
- SpawnSet(NPC, "skin_color", "191 197 197")
- SpawnSet(NPC, "soga_skin_color", "191 197 197")
- SpawnSet(NPC, "eye_color", "38 78 71")
- SpawnSet(NPC, "soga_eye_color", "38 78 71")
- SpawnSet(NPC, "hair_type_color", "190 133 13")
- SpawnSet(NPC, "soga_hair_type_color", "190 133 13")
- SpawnSet(NPC, "hair_face_color", "190 133 13")
- SpawnSet(NPC, "soga_hair_face_color", "190 133 13")
- SpawnSet(NPC, "hair_type_highlight_color", "233 184 31")
- SpawnSet(NPC, "soga_hair_type_highlight_color", "233 184 31")
- SpawnSet(NPC, "hair_face_highlight_color", "233 184 31")
- SpawnSet(NPC, "soga_hair_face_highlight_color", "233 184 31")
- SpawnSet(NPC, "hair_color1", "209 131 22")
- SpawnSet(NPC, "soga_hair_color1", "209 131 22")
- SpawnSet(NPC, "hair_color2", "199 150 48")
- SpawnSet(NPC, "soga_hair_color2", "199 150 48")
- SpawnSet(NPC, "hair_highlight", "246 219 114")
- SpawnSet(NPC, "soga_hair_highlight", "246 219 114")
- end
- end
- function DwarfCosmetics(NPC)
- local Type = GetModelType(NPC)
- local HairType = 0
- if Type == 109 then
- HairType = MakeRandomInt(1135,1140)
- SpawnSet(NPC, "hair_type", HairType)
- SpawnSet(NPC, "soga_hair_type", HairType)
- else
- HairType = MakeRandomInt(1136,1140)
- local bald_chance = MakeRandomInt(1,100)
- if bald_chance < 11 then
- SpawnSet(NPC, "hair_type", "0")
- SpawnSet(NPC, "soga_hair_type", "0")
- else
- SpawnSet(NPC, "hair_type", HairType)
- SpawnSet(NPC, "soga_hair_type", HairType)
- end
- end
- local FaceHairType = MakeRandomInt(1164,1191)
- if Type == 109 then
- local beard_chance = MakeRandomInt(1,100)
- if beard_chance < 11 then
- SpawnSet(NPC, "facial_hair_type", FaceHairType)
- SpawnSet(NPC, "soga_facial_hair_type", FaceHairType)
- else
- SpawnSet(NPC, "facial_hair_type", "0")
- SpawnSet(NPC, "soga_facial_hair_type", "0")
- end
- else
- SpawnSet(NPC, "facial_hair_type", FaceHairType)
- SpawnSet(NPC, "soga_facial_hair_type", FaceHairType)
- end
- local overall_look = MakeRandomInt(1,7)
- if overall_look == 1 then -- Dark beige
- SpawnSet(NPC, "skin_color", "225 171 169")
- SpawnSet(NPC, "soga_skin_color", "225 171 169")
- SpawnSet(NPC, "eye_color", "70 59 31")
- SpawnSet(NPC, "soga_eye_color", "70 59 31")
- SpawnSet(NPC, "hair_type_color", "83 77 59")
- SpawnSet(NPC, "soga_hair_type_color", "83 77 59")
- SpawnSet(NPC, "hair_face_color", "83 77 59")
- SpawnSet(NPC, "soga_hair_face_color", "83 77 59")
- SpawnSet(NPC, "hair_type_highlight_color", "75 47 0")
- SpawnSet(NPC, "soga_hair_type_highlight_color", "75 47 0")
- SpawnSet(NPC, "hair_face_highlight_color", "75 47 0")
- SpawnSet(NPC, "soga_hair_face_highlight_color", "75 47 0")
- elseif overall_look == 2 then -- Light reddish beige
- SpawnSet(NPC, "skin_color", "224 178 171")
- SpawnSet(NPC, "soga_skin_color", "224 178 171")
- SpawnSet(NPC, "eye_color", "59 119 134")
- SpawnSet(NPC, "soga_eye_color", "59 119 134")
- SpawnSet(NPC, "hair_type_color", "213 133 99")
- SpawnSet(NPC, "soga_hair_type_color", "213 133 99")
- SpawnSet(NPC, "hair_face_color", "213 133 99")
- SpawnSet(NPC, "soga_hair_face_color", "213 133 99")
- SpawnSet(NPC, "hair_type_highlight_color", "93 33 15")
- SpawnSet(NPC, "soga_hair_type_highlight_color", "93 33 15")
- SpawnSet(NPC, "hair_face_highlight_color", "93 33 15")
- SpawnSet(NPC, "soga_hair_face_highlight_color", "93 33 15")
- elseif overall_look == 3 then -- Dark brown
- SpawnSet(NPC, "skin_color", "213 189 156")
- SpawnSet(NPC, "soga_skin_color", "213 189 156")
- SpawnSet(NPC, "eye_color", "50 62 34")
- SpawnSet(NPC, "soga_eye_color", "50 62 34")
- SpawnSet(NPC, "hair_type_color", "61 52 29")
- SpawnSet(NPC, "soga_hair_type_color", "61 52 29")
- SpawnSet(NPC, "hair_face_color", "61 52 29")
- SpawnSet(NPC, "soga_hair_face_color", "61 52 29")
- SpawnSet(NPC, "hair_type_highlight_color", "56 47 2")
- SpawnSet(NPC, "soga_hair_type_highlight_color", "56 47 2")
- SpawnSet(NPC, "hair_face_highlight_color", "56 47 2")
- SpawnSet(NPC, "soga_hair_face_highlight_color", "56 47 2")
- elseif overall_look == 4 then -- Dark Chestnut
- SpawnSet(NPC, "skin_color", "200 198 174")
- SpawnSet(NPC, "soga_skin_color", "200 198 174")
- SpawnSet(NPC, "eye_color", "34 70 78")
- SpawnSet(NPC, "soga_eye_color", "34 70 78")
- SpawnSet(NPC, "hair_type_color", "36 22 6")
- SpawnSet(NPC, "soga_hair_type_color", "36 22 6")
- SpawnSet(NPC, "hair_face_color", "36 22 6")
- SpawnSet(NPC, "soga_hair_face_color", "36 22 6")
- SpawnSet(NPC, "hair_type_highlight_color", "50 41 28")
- SpawnSet(NPC, "soga_hair_type_highlight_color", "50 41 28")
- SpawnSet(NPC, "hair_face_highlight_color", "50 41 28")
- SpawnSet(NPC, "soga_hair_face_highlight_color", "50 41 28")
- elseif overall_look == 5 then -- Dark orange
- SpawnSet(NPC, "skin_color", "196 146 123")
- SpawnSet(NPC, "soga_skin_color", "196 146 123")
- SpawnSet(NPC, "eye_color", "121 176 192")
- SpawnSet(NPC, "soga_eye_color", "121 176 192")
- SpawnSet(NPC, "hair_type_color", "119 43 9")
- SpawnSet(NPC, "soga_hair_type_color", "119 43 9")
- SpawnSet(NPC, "hair_face_color", "119 43 9")
- SpawnSet(NPC, "soga_hair_face_color", "119 43 9")
- SpawnSet(NPC, "hair_type_highlight_color", "66 28 9")
- SpawnSet(NPC, "soga_hair_type_highlight_color", "66 28 9")
- SpawnSet(NPC, "hair_face_highlight_color", "66 28 9")
- SpawnSet(NPC, "soga_hair_face_highlight_color", "66 28 9")
- elseif overall_look == 6 then -- White (light grey/yellowish)
- SpawnSet(NPC, "skin_color", "245 248 246")
- SpawnSet(NPC, "soga_skin_color", "245 248 246")
- SpawnSet(NPC, "eye_color", "131 163 133")
- SpawnSet(NPC, "soga_eye_color", "131 163 133")
- SpawnSet(NPC, "hair_type_color", "247 239 212")
- SpawnSet(NPC, "soga_hair_type_color", "247 239 212")
- SpawnSet(NPC, "hair_face_color", "247 239 212")
- SpawnSet(NPC, "soga_hair_face_color", "247 239 212")
- SpawnSet(NPC, "hair_type_highlight_color", "54 47 3")
- SpawnSet(NPC, "soga_hair_type_highlight_color", "54 47 3")
- SpawnSet(NPC, "hair_face_highlight_color", "54 47 3")
- SpawnSet(NPC, "soga_hair_face_highlight_color", "54 47 3")
- elseif overall_look == 7 then -- Light beige
- SpawnSet(NPC, "skin_color", "209 217 217")
- SpawnSet(NPC, "soga_skin_color", "209 217 217")
- SpawnSet(NPC, "eye_color", "97 105 57")
- SpawnSet(NPC, "soga_eye_color", "97 105 57")
- SpawnSet(NPC, "hair_type_color", "159 155 143")
- SpawnSet(NPC, "soga_hair_type_color", "159 155 143")
- SpawnSet(NPC, "hair_face_color", "159 155 143")
- SpawnSet(NPC, "soga_hair_face_color", "159 155 143")
- SpawnSet(NPC, "hair_type_highlight_color", "165 155 144")
- SpawnSet(NPC, "soga_hair_type_highlight_color", "165 155 144")
- SpawnSet(NPC, "hair_face_highlight_color", "165 155 144")
- SpawnSet(NPC, "soga_hair_face_highlight_color", "165 155 144")
- end
- end
- function HumanCosmetics(NPC)
- local hair = MakeRandomInt(1121,1140)
- SpawnSet(NPC, "hair_type", hair)
- SpawnSet(NPC, "soga_hair_type", hair)
- local beard = MakeRandomInt(1164,1191)
- local beard_chance = MakeRandomInt(1,100)
- if beard_chance < 51 then
- SpawnSet(NPC, "facial_hair_type", "0")
- SpawnSet(NPC, "soga_facial_hair_type", "0")
- else
- SpawnSet(NPC, "facial_hair_type", beard)
- SpawnSet(NPC, "soga_facial_hair_type", beard)
- end
- local overall_look = MakeRandomInt(1,14)
-
- if overall_look == 1 then -- Bright yellow
- SpawnSet(NPC, "skin_color", "206 162 137")
- SpawnSet(NPC, "soga_skin_color", "206 162 137")
- SpawnSet(NPC, "eye_color", "47 100 102")
- SpawnSet(NPC, "soga_eye_color", "47 100 102")
- SpawnSet(NPC, "hair_type_color", "194 164 6")
- SpawnSet(NPC, "soga_hair_type_color", "194 164 6")
- SpawnSet(NPC, "hair_face_color", "194 164 6")
- SpawnSet(NPC, "soga_hair_face_color", "194 164 6")
- SpawnSet(NPC, "hair_type_highlight_color", "188 168 37")
- SpawnSet(NPC, "soga_hair_type_highlight_color", "188 168 37")
- SpawnSet(NPC, "hair_face_highlight_color", "188 168 37")
- SpawnSet(NPC, "soga_hair_face_highlight_color", "188 168 37")
- elseif overall_look == 2 then -- Extra light chestnut (towards yellow)
- SpawnSet(NPC, "skin_color", "241 245 221")
- SpawnSet(NPC, "soga_skin_color", "241 245 221")
- SpawnSet(NPC, "eye_color", "38 65 40")
- SpawnSet(NPC, "soga_eye_color", "38 65 40")
- SpawnSet(NPC, "hair_type_color", "100 70 10")
- SpawnSet(NPC, "soga_hair_type_color", "100 70 10")
- SpawnSet(NPC, "hair_face_color", "100 70 10")
- SpawnSet(NPC, "soga_hair_face_color", "100 70 10")
- SpawnSet(NPC, "hair_type_highlight_color", "231 170 26")
- SpawnSet(NPC, "soga_hair_type_highlight_color", "231 170 26")
- SpawnSet(NPC, "hair_face_highlight_color", "231 170 26")
- SpawnSet(NPC, "soga_hair_face_highlight_color", "231 170 26")
- SpawnSet(NPC, "hair_color1", "56 33 26")
- SpawnSet(NPC, "soga_hair_color1", "56 33 26")
- SpawnSet(NPC, "hair_color2", "94 59 11")
- SpawnSet(NPC, "soga_hair_color2", "94 59 11")
- SpawnSet(NPC, "hair_highlight", "200 165 96")
- SpawnSet(NPC, "soga_hair_highlight", "200 165 96")
- elseif overall_look == 3 then -- Light orange
- SpawnSet(NPC, "skin_color", "210 188 159")
- SpawnSet(NPC, "soga_skin_color", "210 188 159")
- SpawnSet(NPC, "eye_color", "74 130 98")
- SpawnSet(NPC, "soga_eye_color", "74 130 98")
- SpawnSet(NPC, "hair_type_color", "184 128 10")
- SpawnSet(NPC, "soga_hair_type_color", "184 128 10")
- SpawnSet(NPC, "hair_face_color", "184 128 10")
- SpawnSet(NPC, "soga_hair_face_color", "184 128 10")
- SpawnSet(NPC, "hair_type_highlight_color", "37 10 14")
- SpawnSet(NPC, "soga_hair_type_highlight_color", "37 10 14")
- SpawnSet(NPC, "hair_face_highlight_color", "37 10 14")
- SpawnSet(NPC, "soga_hair_face_highlight_color", "37 10 14")
- SpawnSet(NPC, "hair_color1", "213 84 34")
- SpawnSet(NPC, "soga_hair_color1", "213 84 34")
- SpawnSet(NPC, "hair_color2", "2 0 0")
- SpawnSet(NPC, "soga_hair_color2", "2 0 0")
- elseif overall_look == 4 then -- Orange with bright highlights
- SpawnSet(NPC, "skin_color", "234 244 244")
- SpawnSet(NPC, "soga_skin_color", "234 244 244")
- SpawnSet(NPC, "eye_color", "37 76 88")
- SpawnSet(NPC, "soga_eye_color", "37 76 88")
- SpawnSet(NPC, "hair_type_color", "121 38 35")
- SpawnSet(NPC, "soga_hair_type_color", "121 38 35")
- SpawnSet(NPC, "hair_face_color", "121 38 35")
- SpawnSet(NPC, "soga_hair_face_color", "121 38 35")
- SpawnSet(NPC, "hair_type_highlight_color", "233 184 31")
- SpawnSet(NPC, "soga_hair_type_highlight_color", "233 184 31")
- SpawnSet(NPC, "hair_face_highlight_color", "233 184 31")
- SpawnSet(NPC, "soga_hair_face_highlight_color", "233 184 31")
- SpawnSet(NPC, "hair_color1", "91 21 51")
- SpawnSet(NPC, "soga_hair_color1", "91 21 51")
- SpawnSet(NPC, "hair_color2", "159 88 0")
- SpawnSet(NPC, "soga_hair_color2", "159 88 0")
- SpawnSet(NPC, "hair_highlight", "246 219 114")
- SpawnSet(NPC, "soga_hair_highlight", "246 219 114")
- elseif overall_look == 5 then -- Light chestnut
- SpawnSet(NPC, "skin_color", "245 249 245")
- SpawnSet(NPC, "soga_skin_color", "245 249 245")
- SpawnSet(NPC, "eye_color", "43 70 43")
- SpawnSet(NPC, "soga_eye_color", "43 70 43")
- SpawnSet(NPC, "hair_type_color", "37 22 5")
- SpawnSet(NPC, "soga_hair_type_color", "37 22 5")
- SpawnSet(NPC, "hair_face_color", "37 22 5")
- SpawnSet(NPC, "soga_hair_face_color", "37 22 5")
- SpawnSet(NPC, "hair_type_highlight_color", "121 38 35")
- SpawnSet(NPC, "soga_hair_type_highlight_color", "121 38 35")
- SpawnSet(NPC, "hair_face_highlight_color", "121 38 35")
- SpawnSet(NPC, "soga_hair_face_highlight_color", "121 38 35")
- SpawnSet(NPC, "hair_color1", "79 28 15")
- SpawnSet(NPC, "soga_hair_color1", "79 28 15")
- SpawnSet(NPC, "hair_color2", "111 64 0")
- SpawnSet(NPC, "soga_hair_color2", "111 64 0")
- SpawnSet(NPC, "hair_highlight", "91 21 51")
- SpawnSet(NPC, "soga_hair_highlight", "91 21 51")
- elseif overall_look == 6 then -- Chestnut
- SpawnSet(NPC, "skin_color", "241 245 221")
- SpawnSet(NPC, "soga_skin_color", "241 245 221")
- SpawnSet(NPC, "eye_color", "102 154 140")
- SpawnSet(NPC, "soga_eye_color", "102 154 140")
- SpawnSet(NPC, "hair_type_color", "0 0 0")
- SpawnSet(NPC, "soga_hair_type_color", "0 0 0")
- SpawnSet(NPC, "hair_face_color", "0 0 0")
- SpawnSet(NPC, "soga_hair_face_color", "0 0 0")
- SpawnSet(NPC, "hair_type_highlight_color", "15 1 21")
- SpawnSet(NPC, "soga_hair_type_highlight_color", "15 1 21")
- SpawnSet(NPC, "hair_face_highlight_color", "15 1 21")
- SpawnSet(NPC, "soga_hair_face_highlight_color", "15 1 21")
- SpawnSet(NPC, "hair_color1", "38 22 21")
- SpawnSet(NPC, "soga_hair_color1", "38 22 21")
- SpawnSet(NPC, "hair_color2", "120 50 0")
- SpawnSet(NPC, "soga_hair_color2", "120 50 0")
- SpawnSet(NPC, "hair_highlight", "29 21 28")
- SpawnSet(NPC, "soga_hair_highlight", "29 21 28")
- elseif overall_look == 7 then -- Chestnut and brown skin
- SpawnSet(NPC, "skin_color", "46 35 12")
- SpawnSet(NPC, "soga_skin_color", "46 35 12")
- SpawnSet(NPC, "eye_color", "105 85 44")
- SpawnSet(NPC, "soga_eye_color", "105 85 44")
- SpawnSet(NPC, "hair_type_color", "40 20 7")
- SpawnSet(NPC, "soga_hair_type_color", "40 20 7")
- SpawnSet(NPC, "hair_face_color", "40 20 7")
- SpawnSet(NPC, "soga_hair_face_color", "40 20 7")
- SpawnSet(NPC, "hair_type_highlight_color", "47 42 59")
- SpawnSet(NPC, "soga_hair_type_highlight_color", "47 42 59")
- SpawnSet(NPC, "hair_face_highlight_color", "47 42 59")
- SpawnSet(NPC, "soga_hair_face_highlight_color", "47 42 59")
- elseif overall_look == 8 then -- Dark brown
- SpawnSet(NPC, "skin_color", "176 156 105")
- SpawnSet(NPC, "soga_skin_color", "176 156 105")
- SpawnSet(NPC, "eye_color", "67 132 116")
- SpawnSet(NPC, "soga_eye_color", "67 132 116")
- SpawnSet(NPC, "hair_type_color", "33 24 12")
- SpawnSet(NPC, "soga_hair_type_color", "33 24 12")
- SpawnSet(NPC, "hair_face_color", "33 24 12")
- SpawnSet(NPC, "soga_hair_face_color", "33 24 12")
- SpawnSet(NPC, "hair_type_highlight_color", "11 6 1")
- SpawnSet(NPC, "soga_hair_type_highlight_color", "11 6 1")
- SpawnSet(NPC, "hair_face_highlight_color", "11 6 1")
- SpawnSet(NPC, "soga_hair_face_highlight_color", "11 6 1")
- elseif overall_look == 9 then -- Dark brown and brown skin
- SpawnSet(NPC, "skin_color", "46 35 12")
- SpawnSet(NPC, "soga_skin_color", "46 35 12")
- SpawnSet(NPC, "eye_color", "105 85 44")
- SpawnSet(NPC, "soga_eye_color", "105 85 44")
- SpawnSet(NPC, "hair_type_color", "33 24 12")
- SpawnSet(NPC, "soga_hair_type_color", "33 24 12")
- SpawnSet(NPC, "hair_face_color", "33 24 12")
- SpawnSet(NPC, "soga_hair_face_color", "33 24 12")
- SpawnSet(NPC, "hair_type_highlight_color", "11 6 1")
- SpawnSet(NPC, "soga_hair_type_highlight_color", "11 6 1")
- SpawnSet(NPC, "hair_face_highlight_color", "11 6 1")
- SpawnSet(NPC, "soga_hair_face_highlight_color", "11 6 1")
- elseif overall_look == 10 then -- Lige grey towards white
- SpawnSet(NPC, "skin_color", "181 132 94")
- SpawnSet(NPC, "soga_skin_color", "181 132 94")
- SpawnSet(NPC, "eye_color", "31 68 69")
- SpawnSet(NPC, "soga_eye_color", "31 68 69")
- SpawnSet(NPC, "hair_type_color", "213 209 159")
- SpawnSet(NPC, "soga_hair_type_color", "213 209 159")
- SpawnSet(NPC, "hair_face_color", "213 209 159")
- SpawnSet(NPC, "soga_hair_face_color", "213 209 159")
- SpawnSet(NPC, "hair_type_highlight_color", "56 40 19")
- SpawnSet(NPC, "soga_hair_type_highlight_color", "56 40 19")
- SpawnSet(NPC, "hair_face_highlight_color", "56 40 19")
- SpawnSet(NPC, "soga_hair_face_highlight_color", "56 40 19")
- elseif overall_look == 11 then -- Dark grey
- SpawnSet(NPC, "skin_color", "186 191 170")
- SpawnSet(NPC, "soga_skin_color", "186 191 170")
- SpawnSet(NPC, "eye_color", "38 77 88")
- SpawnSet(NPC, "soga_eye_color", "38 77 88")
- SpawnSet(NPC, "hair_type_color", "59 58 73")
- SpawnSet(NPC, "soga_hair_type_color", "59 58 73")
- SpawnSet(NPC, "hair_face_color", "59 58 73")
- SpawnSet(NPC, "soga_hair_face_color", "59 58 73")
- SpawnSet(NPC, "hair_type_highlight_color", "119 147 147")
- SpawnSet(NPC, "soga_hair_type_highlight_color", "119 147 147")
- SpawnSet(NPC, "hair_face_highlight_color", "119 147 147")
- SpawnSet(NPC, "soga_hair_face_highlight_color", "119 147 147")
- SpawnSet(NPC, "hair_color1", "43 36 70")
- SpawnSet(NPC, "soga_hair_color1", "43 36 70")
- SpawnSet(NPC, "hair_color2", "64 76 74")
- SpawnSet(NPC, "soga_hair_color2", "64 76 74")
- SpawnSet(NPC, "hair_highlight", "114 112 142")
- SpawnSet(NPC, "soga_hair_highlight", "114 112 142")
- elseif overall_look == 12 then -- Dark grey and brown skin
- SpawnSet(NPC, "skin_color", "46 35 12")
- SpawnSet(NPC, "soga_skin_color", "46 35 12")
- SpawnSet(NPC, "eye_color", "105 85 44")
- SpawnSet(NPC, "soga_eye_color", "105 85 44")
- SpawnSet(NPC, "hair_type_color", "59 58 73")
- SpawnSet(NPC, "soga_hair_type_color", "59 58 73")
- SpawnSet(NPC, "hair_face_color", "59 58 73")
- SpawnSet(NPC, "soga_hair_face_color", "59 58 73")
- SpawnSet(NPC, "hair_type_highlight_color", "119 147 147")
- SpawnSet(NPC, "soga_hair_type_highlight_color", "119 147 147")
- SpawnSet(NPC, "hair_face_highlight_color", "119 147 147")
- SpawnSet(NPC, "soga_hair_face_highlight_color", "119 147 147")
- SpawnSet(NPC, "hair_color1", "43 36 70")
- SpawnSet(NPC, "soga_hair_color1", "43 36 70")
- SpawnSet(NPC, "hair_color2", "64 76 74")
- SpawnSet(NPC, "soga_hair_color2", "64 76 74")
- SpawnSet(NPC, "hair_highlight", "114 112 142")
- SpawnSet(NPC, "soga_hair_highlight", "114 112 142")
- elseif overall_look == 13 then -- Black with white highlights
- SpawnSet(NPC, "skin_color", "179 188 188")
- SpawnSet(NPC, "soga_skin_color", "179 188 188")
- SpawnSet(NPC, "eye_color", "105 165 179")
- SpawnSet(NPC, "soga_eye_color", "105 165 179")
- SpawnSet(NPC, "hair_type_color", "15 1 21")
- SpawnSet(NPC, "soga_hair_type_color", "15 1 21")
- SpawnSet(NPC, "hair_face_color", "15 1 21")
- SpawnSet(NPC, "soga_hair_face_color", "15 1 21")
- SpawnSet(NPC, "hair_type_highlight_color", "211 220 220")
- SpawnSet(NPC, "soga_hair_type_highlight_color", "211 220 220")
- SpawnSet(NPC, "hair_face_highlight_color", "211 220 220")
- SpawnSet(NPC, "soga_hair_face_highlight_color", "211 220 220")
- SpawnSet(NPC, "hair_color1", "29 21 28")
- SpawnSet(NPC, "soga_hair_color1", "29 21 28")
- SpawnSet(NPC, "hair_color2", "39 32 39")
- SpawnSet(NPC, "soga_hair_color2", "39 32 39")
- SpawnSet(NPC, "hair_highlight", "161 165 168")
- SpawnSet(NPC, "soga_hair_highlight", "161 165 168")
- else -- Light black
- SpawnSet(NPC, "skin_color", "176 156 105")
- SpawnSet(NPC, "soga_skin_color", "176 156 105")
- SpawnSet(NPC, "eye_color", "67 132 116")
- SpawnSet(NPC, "soga_eye_color", "67 132 116")
- SpawnSet(NPC, "hair_type_color", "39 50 50")
- SpawnSet(NPC, "soga_hair_type_color", "39 50 50")
- SpawnSet(NPC, "hair_face_color", "39 50 50")
- SpawnSet(NPC, "soga_hair_face_color", "39 50 50")
- SpawnSet(NPC, "hair_type_highlight_color", "18 11 0")
- SpawnSet(NPC, "soga_hair_type_highlight_color", "18 11 0")
- SpawnSet(NPC, "hair_face_highlight_color", "18 11 0")
- SpawnSet(NPC, "soga_hair_face_highlight_color", "18 11 0")
- end
- end
- function EmoteLoop(NPC)
- local choice = MakeRandomInt(1,14)
- local timer = math.random(5000,10000)
- if choice == 1 then -- cackle
- PlayAnimation(NPC, 125)
- AddTimer(NPC, timer, "EmoteLoop")
- elseif choice == 2 then -- converse_male04
- PlayAnimation(NPC, 2983)
- AddTimer(NPC, timer, "EmoteLoop")
- elseif choice == 3 then -- confused
- PlayAnimation(NPC, 11214)
- AddTimer(NPC, timer, "EmoteLoop")
- elseif choice == 4 then -- converse_male05
- PlayAnimation(NPC, 11236)
- AddTimer(NPC, timer, "EmoteLoop")
- elseif choice == 5 then -- converse_male06
- PlayAnimation(NPC, 11237)
- AddTimer(NPC, timer, "EmoteLoop")
- elseif choice == 6 then -- converse_male07
- PlayAnimation(NPC, 11238)
- AddTimer(NPC, timer, "EmoteLoop")
- elseif choice == 7 then -- converse_male10
- PlayAnimation(NPC, 11241)
- AddTimer(NPC, timer, "EmoteLoop")
- elseif choice == 8 then -- converse_male11
- PlayAnimation(NPC, 11242)
- AddTimer(NPC, timer, "EmoteLoop")
- elseif choice == 9 then -- doubletake
- PlayAnimation(NPC, 11415)
- AddTimer(NPC, timer, "EmoteLoop")
- elseif choice == 10 then -- happy
- PlayAnimation(NPC, 11668)
- AddTimer(NPC, timer, "EmoteLoop")
- elseif choice == 11 then -- heckno
- PlayAnimation(NPC, 11680)
- AddTimer(NPC, timer, "EmoteLoop")
- elseif choice == 12 then -- howl
- PlayAnimation(NPC, 11718)
- AddTimer(NPC, timer, "EmoteLoop")
- elseif choice == 13 then -- smile
- PlayAnimation(NPC, 12285)
- AddTimer(NPC, timer, "EmoteLoop")
- else -- wink
- PlayAnimation(NPC, 13304)
- AddTimer(NPC, timer, "EmoteLoop")
- end
- end
|