• 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!

Windows Certain outfit for certain vocation.

sestorme

Member
Joined
Dec 9, 2011
Messages
272
Reaction score
6
Location
Birmingham, UK
Is there a chance to set it somehow? Allow poeple to change colors and make them unable to change looktype can be done in config which is done now, however, I'd love to make certain vocations to look in certain way. I've heard of using groups.xml, however, found no further clues, any ideas?
 
You can do so when they log in for the 1st time they get an outfit

add this in ur creaturescripts->scripts->login.lua after function OnLogin:
Code:
local outfit = getCreatureOutfit(cid)
if (getCreatureStorage(cid, 1000) < 1) then
		if (getPlayerVocation(cid) == 1) then
			doPlayerAddOutfit(cid, [COLOR="#FF0000"]1[/COLOR], 0)
			outfit.lookType = [COLOR="#FF0000"]136[/COLOR]
                        doCreatureChangeOutfit(cid, outfit)
		end
doCreatureSetStorage(cid, 1000, 1)
end

1 is the number of outfit in xml->outfits.xml
and looktype is what looktype the outfit is
 
Back
Top