@King Laker
local t = {
[1] = 151, -- [VocID] = lookTypeID
[2] = 451,
[3] = 351,
[4] = 251,
}
local key = 1234 -- Akatsuki storage
local effect = 345 -- Efeito ao transformar
function onSay(cid, words, param, channel)
local pos = getCreaturePosition(cid)
if t[getPlayerVocation(cid)] then
if getCreatureStorage(cid, key) >= 1 then
local outfit = {lookType = t[getPlayerVocation(cid)]}
doCreatureChangeOutfit(cid, outfit)
doSendMagicEffect(pos, effect)
return true
else
doPlayerSendTextMessage(cid, 27, "Voce não tem a storage da akatsuki")
doSendMagicEffect(pos, 2)
return false
end
else
doPlayerSendTextMessage(cid, 27, "Sua vocation não tem akatsuki transform.")
doSendMagicEffect(pos, 2)
return false
end
return true
end