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

Outfit For 1 Vocation

Teddy

SweStream.se
Joined
Oct 2, 2008
Messages
3,797
Reaction score
10
Location
Sweden 172
can i make like some outfit are only for some vocation like if i make a new vocation "skeleton" so they only can use skeleton outfits?
 
go to outfits.xml set the outfits u want to use for certain vocations with default="0".then make an onuse action script. if isdruid==true then doPlayerAddOutfit(cid, 329, 0) change the right to the outfit id that u want the player to have
 
Last edited:
LUA:
function onLogin(cid)
local tmp = getCreatureOutfit(cid)
        tmp.lookType = 33   --creature looktype
local voc = 4  -- vocation number
    if getPlayerVocation(cid) == voc then
    doCreatureChangeOutfit(cid, tmp)
  
    end
return true
end
 
LUA:
 local outfit = {[4] = {look = 33},[2] = {look = 32},[1] = {look = 23}}
function onLogin(cid)
local out = outfit[getPlayerVocation(cid)]
   if (not out)then
      return true
   end
local tmp = getCreatureOutfit(cid)
        tmp.lookType = out.look
doCreatureChangeOutfit(cid, tmp)
return true
end
 
Back
Top