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

[Request] Feet Looktype

Diamond

New Member
Joined
Mar 7, 2009
Messages
99
Reaction score
0
Okay, I need a script heres what I want it to do, if anyone can take the time and help me, very much appreciated .. Rep++ 200x.

I need a script if you use a certain ID (EG//Lever) [1945] it changes your feet looktype to something is that possible? [For a War Server].

So if your a certain vocation, you can click it and it'll change your looktype:

Code:
function onUse(cid)
        local voc_id = getPlayerVocation(cid)
        if getPlayerVocation(cid) > 1 or 5 or 9 then
                doSetCreatureLookFeet(cid) (1))
        end
        return TRUE
end
 
not tested but should work.

Lua:
outfit = 
{
[1] = {feetColor = 1}, 
[2] = {feetColor = 1},
[3] = {feetColor = 1},
[4] = {feetColor = 1},
[5] = {feetColor = 1},
[6] = {feetColor = 1},
[7] = {feetColor = 1},
[8] = {feetColor = 1}
}
-- [1] = vocation id, change the id to the vocation which shall have the feet color.
-- feetColor = 1, change the "1" to whatever color you like to.

function onUse(cid)
	if outfit[getPlayerVocation(cid)] then
		local color = outfit[getPlayerVocation(cid)].feetColor
		local newFeet = getCreatureOutfit(cid)
		newFeet.lookFeet = color
		doSetCreatureOutfit(cid, newFeet, -1)
	end
	return TRUE
end


kind regards, Evil Hero
 
Last edited:
Testing Now..

[11/09/2009 16:25:33] data/actions/scripts/other/orb1.lua:24: attempt to call global 'setCreatureOutfit' (a nil value)
[11/09/2009 16:25:33] stack traceback:
[11/09/2009 16:25:33] data/actions/scripts/other/orb1.lua:24: in function <data/actions/scripts/other/orb1.lua:19>

Small problem.. :p

btw I use:

[11/09/2009 16:24:12] The Forgotten Server, version 0.3.5 (Crying Damson)
 
Last edited:
[12/09/2009 21:51:23] Lua Script Error: [Action Interface]
[12/09/2009 21:51:23] data/actions/scripts/outfit.lua:eek:nUse

[12/09/2009 21:51:23] data/actions/scripts/outfit.lua:20: attempt to call global 'doPlayerSetOutfit' (a nil value)
[12/09/2009 21:51:23] stack traceback:
[12/09/2009 21:51:23] data/actions/scripts/outfit.lua:20: in function <data/actions/scripts/outfit.lua:15>


Dont works :S
 
Back
Top