• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Lua Outfit Vocation

Discovery

Developing myself
Joined
Apr 16, 2010
Messages
562
Solutions
11
Reaction score
261
Location
Neverland
There is only one way to use only certain vocation Outfits?


example:

Sorcerer - Mage Addon
Druid - Mage Addon

Knight dont use Mage addon.

Knight use only, knight addon..


Use 0.2+ rev.
 
Last edited:
LUA:
local config =
{
    -- [vocation id] = name of outfit
    [0] = "demonhunter"
}


function onLogin(cid)
    local outfit = config[getPlayerVocation(cid)]
    if outfit then
        doPlayerAddOutfit(cid, looktypes[outfit].looktypeMale, 0)
        doPlayerAddOutfit(cid, looktypes[outfit].looktypeFemale, 0)
    end
    return true
end
 
=/ no work.. @sn3ejk

Using 0.2+

Start this script, configuration to vocation = 1;

My player vocation[1] dont gain outfits or disable outfits ;/
 
Last edited:
LUA:
local sorcerer_outfit = createConditionObject(CONDITION_OUTFIT)
setConditionParam(sorcerer_outfit, CONDITION_PARAM_TICKS, -1)
addOutfitCondition(sorcerer_outfit, 0, 138, 0, 0, 0, 0)

local knight_outfit = createConditionObject(CONDITION_OUTFIT)
setConditionParam(knight_outfit, CONDITION_PARAM_TICKS, -1)
addOutfitCondition(knight_outfit, 0, 139, 0, 0, 0, 0)

function onLogin(cid)
	if isSorcerer(cid) then
		doAddCondition(cid, sorcerer_outfit)
	elseif isKnight(cid) then
		doAddCondition(cid, knight_outfit)
	end
end
 
Back
Top