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 =...
I did this already but i want change female look in source not dat sprHello 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 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?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.
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.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"?
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 looktypeFemale 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.
Well i can't find that php file where all outfits are set. Yea i tried it alreadyHonestly, 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
[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
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.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