local T = {
[{1, 20, 1}] = {lookTypi = 1, eff = 1},
[{21, 30, 2}] = {lookTypi = 1, eff = 1},
[{31, 50, 3}] = {lookTypi = 1, eff = 1},
[{51, 60, 4}] = {lookTypi = 1, eff = 1},
[{61, 70, 5}] = {lookTypi = 1, eff = 1},
[{71, 80, 6}] = {lookTypi = 1, eff = 1},
[{81, 100, 7}] = {lookTypi = 1, eff = 1}
}
function onSay(cid, words, param)
for k, v in pairs(T) do
if getPlayerLevel(cid) >= k[1] and getPlayerLevel(cid) <= k[2] and getPlayerVocation(cid) == k[3] then
doCreatureChangeOutfit(cid, v.lookTypi)
doSendMagicEffect(getThingPos(cid), k.eff)
else
doPlayerSendCancel(cid, "You need a min level " .. getPlayerVocation(cid).. " and a max level " .. getPlayerVocation(cid) .. " to transform.")
end
end
return true
end