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

Change vocation look

henkas

Well-Known Member
Joined
Jul 8, 2015
Messages
1,067
Solutions
5
Reaction score
63
Hi
so i changed Sorcer look in server as male he was 136id now he's 2id but femal sorcer still have 136 look id where can i find female look? Because i found only male in databse but i cant find female.
 
Solution
X
It's been a long while since I've seen the order of the vocations.. so check vocations.xml for what vocation 1-2-3-4 are when setting up the outfits. Don't trust my green text 100%. xP

but yeah try this
LUA:
local outfits = {
   [0] = { -- female
       [1] = {lookType = 0, lookHead = 0 , lookBody = 0, lookLegs = 0, lookFeet = 0, lookTypeEx = 0, lookAddons = 0}, -- sorcerer
       [2] = {lookType = 0, lookHead = 0 , lookBody = 0, lookLegs = 0, lookFeet = 0, lookTypeEx = 0, lookAddons = 0}, -- druid
       [3] = {lookType = 0, lookHead = 0 , lookBody = 0, lookLegs = 0, lookFeet = 0, lookTypeEx = 0, lookAddons = 0}, -- paladin
       [4] = {lookType = 0, lookHead = 0 , lookBody = 0, lookLegs = 0, lookFeet = 0, lookTypeEx = 0, lookAddons =...
Hello Henkas,

let me try to help you...Where are the graphics and everythig regarded to that stored? Right, the .spr and .dat! Why don't you open those files with ObjectBuilder and take a look at their ID's? :)

Kindest Regards,
Okke
 
Hello Henkas,

let me try to help you...Where are the graphics and everythig regarded to that stored? Right, the .spr and .dat! Why don't you open those files with ObjectBuilder and take a look at their ID's? :)

Kindest Regards,
Okke
I did this already but i want change female look in source not dat spr
 
If you did change one already you can change the other. The server holds the .otb data, there is the place you should look for then.
 
If you did change one already you can change the other. The server holds the .otb data, there is the place you should look for then.
I think you dont get me. I already have new look and that shit id is "2" and female look is "136" and i can't find where is created female outfit in database or lua or what ever because all i want is just swoop 136 to 2. Now you get me?
 
Mhmm, maybe, sometimes I read your posts and I can't get the logic behind them, maybe you need to polish a little more your english or better formulate questions and well detailed? :)

Have you ever thought about checking the table "players" on your database and look for "looktype"?
 
Mhmm, maybe, sometimes I read your posts and I can't get the logic behind them, maybe you need to polish a little more your english or better formulate questions and well detailed? :)

Have you ever thought about checking the table "players" on your database and look for "looktype"?
True my English is not the best. I said it already "Because i found only male in databse but i cant find female." I found only male looktype, female looktype doesn't change.
 
Female looktypes are definitelly different, it's a completely different ID. Just change the sex of your character to female, login, change the outfit, logout and re-check the database.
 
Female looktypes are definitelly different, it's a completely different ID. Just change the sex of your character to female, login, change the outfit, logout and re-check the database.
Yea it show up, i see in database but there is no point if i change looktype now to 2, because if new player login he still will get 136 looktype

I have same problem like this dude Start Outfit for female? Gesior
 
Last edited:
Honestly, I think you need to edit the php file.. but I really suck with website + database.

I'd just change the player outfit when they login for the first time. xP

-- edit

haha, the same resolution was thought of in that thread

Start Outfit for female? Gesior
Well i can't find that php file where all outfits are set. Yea i tried it already
Code:
[LIST=1]
[*]local outfits = {
[*]        [0] = {lookType = 266, lookHead = 114 , lookBody = 18, lookLegs = 94, lookFeet = 0, lookTypeEx = 0, lookAddons = 0},
[*]        [1] = {lookType = 75, lookHead = 114 , lookBody = 18, lookLegs = 94, lookFeet = 0, lookTypeEx = 0, lookAddons = 0}
[*]}
[*]

[*]function onLogin(cid)
[*]       local STORAGE = 18292
[*]       if getPlayerStorageValue(cid, STORAGE) ~= 1 then
[*]            doCreatureChangeOutfit(cid, outfits[getPlayerSex(cid)])
[*]            setPlayerStorageValue(cid, STORAGE, 1)
[*]       end
[*]       return true
[*]end
[/LIST]
everything is okay with this but this [0] and [1] is gender: male female, so if i set looktype like example 2 all my chars knight,sorcerer, paladin and etc will be with same looktype. But if you know how can i attach vocation id to, then yea i can use this and everything be okay.
 
It's been a long while since I've seen the order of the vocations.. so check vocations.xml for what vocation 1-2-3-4 are when setting up the outfits. Don't trust my green text 100%. xP

but yeah try this
LUA:
local outfits = {
   [0] = { -- female
       [1] = {lookType = 0, lookHead = 0 , lookBody = 0, lookLegs = 0, lookFeet = 0, lookTypeEx = 0, lookAddons = 0}, -- sorcerer
       [2] = {lookType = 0, lookHead = 0 , lookBody = 0, lookLegs = 0, lookFeet = 0, lookTypeEx = 0, lookAddons = 0}, -- druid
       [3] = {lookType = 0, lookHead = 0 , lookBody = 0, lookLegs = 0, lookFeet = 0, lookTypeEx = 0, lookAddons = 0}, -- paladin
       [4] = {lookType = 0, lookHead = 0 , lookBody = 0, lookLegs = 0, lookFeet = 0, lookTypeEx = 0, lookAddons = 0}  -- knight
   },
   [1] = { -- male
       [1] = {lookType = 0, lookHead = 0 , lookBody = 0, lookLegs = 0, lookFeet = 0, lookTypeEx = 0, lookAddons = 0},
       [2] = {lookType = 0, lookHead = 0 , lookBody = 0, lookLegs = 0, lookFeet = 0, lookTypeEx = 0, lookAddons = 0},
       [3] = {lookType = 0, lookHead = 0 , lookBody = 0, lookLegs = 0, lookFeet = 0, lookTypeEx = 0, lookAddons = 0},
       [4] = {lookType = 0, lookHead = 0 , lookBody = 0, lookLegs = 0, lookFeet = 0, lookTypeEx = 0, lookAddons = 0}
   }
}


function onLogin(cid)
   local STORAGE = 18292
   if getPlayerStorageValue(cid, STORAGE) ~= 1 then
       doCreatureChangeOutfit(cid, outfits[getPlayerSex(cid)][getPlayerVocation(cid)])
       setPlayerStorageValue(cid, STORAGE, 1)
   end
   return true
end
 
Solution
It's been a long while since I've seen the order of the vocations.. so check vocations.xml for what vocation 1-2-3-4 are when setting up the outfits. Don't trust my green text 100%. xP

but yeah try this
LUA:
local outfits = {
   [0] = { -- female
       [1] = {lookType = 0, lookHead = 0 , lookBody = 0, lookLegs = 0, lookFeet = 0, lookTypeEx = 0, lookAddons = 0}, -- sorcerer
       [2] = {lookType = 0, lookHead = 0 , lookBody = 0, lookLegs = 0, lookFeet = 0, lookTypeEx = 0, lookAddons = 0}, -- druid
       [3] = {lookType = 0, lookHead = 0 , lookBody = 0, lookLegs = 0, lookFeet = 0, lookTypeEx = 0, lookAddons = 0}, -- paladin
       [4] = {lookType = 0, lookHead = 0 , lookBody = 0, lookLegs = 0, lookFeet = 0, lookTypeEx = 0, lookAddons = 0}  -- knight
   },
   [1] = { -- male
       [1] = {lookType = 0, lookHead = 0 , lookBody = 0, lookLegs = 0, lookFeet = 0, lookTypeEx = 0, lookAddons = 0},
       [2] = {lookType = 0, lookHead = 0 , lookBody = 0, lookLegs = 0, lookFeet = 0, lookTypeEx = 0, lookAddons = 0},
       [3] = {lookType = 0, lookHead = 0 , lookBody = 0, lookLegs = 0, lookFeet = 0, lookTypeEx = 0, lookAddons = 0},
       [4] = {lookType = 0, lookHead = 0 , lookBody = 0, lookLegs = 0, lookFeet = 0, lookTypeEx = 0, lookAddons = 0}
   }
}


function onLogin(cid)
   local STORAGE = 18292
   if getPlayerStorageValue(cid, STORAGE) ~= 1 then
       doCreatureChangeOutfit(cid, outfits[getPlayerSex(cid)][getPlayerVocation(cid)])
       setPlayerStorageValue(cid, STORAGE, 1)
   end
   return true
end
Very nice (y) work perfect.
 
Back
Top