local config =
{
-- [vocationId] = lookType
[0] = 0
}
function onLogin(cid)
local outfit = getCreatureOutfit(cid)
outfit.lookType = config[getPlayerVocation(cid)]
doCreatureChangeOutfit(cid, outfit)
return true
end
allowChangeOutfit = false
And in config.luaLUA:local config = { -- [vocationId] = lookType [0] = 0 } function onLogin(cid) local outfit = getCreatureOutfit(cid) outfit.lookType = config[getPlayerVocation(cid)] doCreatureChangeOutfit(cid, outfit) return true end
LUA:allowChangeOutfit = false
This disable a chosing a outfit and automatic set a outfit of vocation. Sorry for language.does this show in the outfit windows? when u right click ur self?
local config =
{
-- [vocationId] = lookType
[1] = 136
[2] = 137
}
function onLogin(cid)
local outfit = getCreatureOutfit(cid)
outfit.lookType = config[getPlayerVocation(cid)]
doCreatureChangeOutfit(cid, outfit)
return true
end
can u make it so those outfits shows in the outfit window, and each x voc can see the x outfit in the script.LUA:local config = { -- [vocationId] = lookType [1] = 136 [2] = 137 } function onLogin(cid) local outfit = getCreatureOutfit(cid) outfit.lookType = config[getPlayerVocation(cid)] doCreatureChangeOutfit(cid, outfit) return true end
Sorcerer = Citizen
Druid = Hunter
(example).
You might have to change so it sets to what sex you are too![]()