• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Outfits for vocs

Wutang

Banned User
Joined
Jan 10, 2012
Messages
156
Reaction score
3
Hello otlanders, I need some help on making some outfits for certain vocs, any help?

Thanks!:ninja:
 
LUA:
local config = 
{
	-- [vocationId] = lookType
	[0] = 0
}

function onLogin(cid)
	local outfit = getCreatureOutfit(cid)
	outfit.lookType = config[getPlayerVocation(cid)]
	
	doCreatureChangeOutfit(cid, outfit)
	return true
end
And in config.lua
LUA:
allowChangeOutfit = false
 
LUA:
local config = 
{
	-- [vocationId] = lookType
	[0] = 0
}

function onLogin(cid)
	local outfit = getCreatureOutfit(cid)
	outfit.lookType = config[getPlayerVocation(cid)]
	
	doCreatureChangeOutfit(cid, outfit)
	return true
end
And in config.lua
LUA:
allowChangeOutfit = false

does this show in the outfit windows? when u right click ur self?
 
So allowChangeOutfit = false
Disable's all the Outfit's for all voc's?
Could you Tell me How to Make a Certain Voc a Outfit?
 
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 :p
 
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 :p
can u make it so those outfits shows in the outfit window, and each x voc can see the x outfit in the script.

ex.: voc 1,2,3 can chose outfit 100,200,300
and voc 4,5,6 can chose outfit 10,20,30
and those outfits shows in the outfit window!

Thanks
 
Back
Top