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

Disable Changing Feet Looktype

Mooosie

- Lua Scripter -
Joined
Aug 2, 2008
Messages
702
Reaction score
27
Location
Sweden
Is there any way to disable the feet color changing? I mean, they can change addon, color on the other options as, "head" and so on, just "details" is disabled to change.

Just the server with some script can change their feet color. ex:

Code:
local feet = {lookType = 128, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 114, lookTypeEx = 0, lookAddons = 0}
doPlayerChangeOutfit(cid, feet)

Even if it is compiling required, send the code here please :)

Thanks in advance :)
 
lua should do it
Lua:
function onOutfit(cid, old, current)
    if current.lookFeet ~= old.lookFeet then
        current.lookFeet = old.lookFeet
        doCreatureChangeOutfit(cid, current)
    end
    return 1
end
 
Last edited:
It is not working. I can still change the outfit ;o
I have registered it in login.lua and creaturescripts too.
I get no error in console ;o
 
cykotitan, I dont understand :(

"==" is'nt the problem. i corrected it before i tried the script.
The problem is that it dont change outfit..
 
remove one equals sign? '='
Lua:
function onOutfit(cid, old, current)
    if current.lookFeet ~= old.lookFeet then
        current.lookFeet = old.lookFeet
        doCreatureChangeOutfit(cid, current)
    end
    return 1
end
== is for conditions ;d
 
Cbrm, still not working.

I tried this:
Lua:
function onOutfit(cid, old, current)
	doPlayerSendCancel(cid, "lal")
    return false
end
It did'nt change my outfit and said "lal". But when i reloged, i got the outfit that i tried to change to.
 
Sorry for double posting: I did it :D

Lua:
function onOutfit(cid, old, current)
    if current.lookFeet ~= old.lookFeet then
		doCreatureChangeOutfit(cid, old)
        return false
    end
    return 1
end

Edit: But scripts cant change the player outfit :(
Edit2: I set storagevalue to the script and I got it working with my other script :)
 
Last edited:
Maybe this could works
Lua:
function onOutfit(cid, old, current)
local outfit =
	{
		lookType = old.lookType,
		lookHead = current.lookHead,
		lookBody = current.lookBody,
		lookLegs = current.lookLegs,
		lookFeet = current.lookFeet,
		lookAddons = current.lookAddons
	}
	doCreatureChangeOutfit(cid, outfit)
    return false
end
 
Hehe, the problem was that the outfit window was'nt reseted. Watch this:
Lua:
function onOutfit(cid, old, current)
		if current.lookFeet ~= old.lookFeet then
			doCreatureChangeOutfit(cid, old)
			return false
		end
    return 1
end

It worked for me :)
 
Back
Top