Tente,este aqui amigo.
local config = {
--[vocation id] = { level, nova voc, looktype, efeito}
[9] = { 30, 10, 30, 32},
[10] = { 40, 11, 261, 32},
[11] = { 50, 15, 261, 33},
[12] = { 75, 15, 261, 33},
[13] = { 100, 15, 261, 33},
[14] = { 150, 15, 261, 33},
[15] = { 180, 15, 261, 33},
[16] = { 200, 15, 261, 33},
[17] = { 40, 15, 261, 33},
[18] = { 40, 15, 261, 33},
[19] = { 40, 15, 261, 33},
[20] = { 40, 15, 261, 33},
[21] = { 40, 15, 261, 33},
[22] = { 40, 15, 261, 33},
[23] = { 40, 15, 261, 33}
}
function onSay(cid, words, param, channel)
doPlayerSay(cid, "transformar")
local voc = config[getPlayerVocation(cid)]
if voc then
if getPlayerLevel(cid) >= voc[1] then
doPlayerSetVocation(cid, voc[2])
doPlayerSendTextMessage(cid, MESSAGE_STATUS_WARNING, "Você Transformou!")
local outfit = {lookType = voc[3]}
doCreatureChangeOutfit(cid, outfit)
doSendMagicEffect(getCreaturePosition(cid), voc[4])
else
doPlayerSendTextMessage(cid, MESSAGE_STATUS_WARNING, "Você precisa estar no level " .. voc[1] .. " para transformar.")
end
else
doPlayerSendCancel(cid, "Você não pode se Transformar!")
end
return true
end
em talkactions .xml adicione isto.
<talkaction words="transformar;Transformar" event="script" value="transform.lua"/>[/font][/color] [color=#282828][font=helvetica, arial, sans-serif]
Créditos-Beeki pelo script.









info
Grupo: Campones
Registrado: 29/09/10
Posts: 16
Reputação: +1
Olá galera,
Bom eu queria saber um sistema funcional de transformação com os seguintes caracteres:
Bom espero que alguém me ajude por favor.