• 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 by command.

Aliubask

New Member
Joined
May 1, 2009
Messages
8
Reaction score
0
Hey guys, I would like to know if u could help me with a script, I suppose its a talkaction script.
It consist on spelling a command "!basicoutfit" then, the caster will instantly wear Tibia's basic citizen colors without addons.
If someone could help me I would be very happy xd.

I think it's quite easy, but i dont know how to do it xd.
Any feature u want to add to it, is acceptable.
 
Lua:
local t = { male = 128, female = 136, time = 10, storage = 90002 }

function onSay(cid, words, param)
    if (exhaustion.check(cid, t.storage) == TRUE) then
        return doPlayerSendCancel(cid, "You can change outfit only 1 time per " .. t.time .. " seconds.")
    end
    
    local v = getPlayerSex(cid) == 0 and t.female or t.male
    local tmp = {lookType = v, lookHead = 78, lookBody = 106, lookLegs = 58, lookFeet = 76, lookAddons = 0}
    doCreatureChangeOutfit(cid, tmp)
    exhaustion.set(cid, t.storage, t.time)
    return true
end
 
Back
Top