Ir para conteúdo

Featured Replies

Postado

Talkactions/scripts crie um arquivo chama transformar e cole isso dentro dele =

local config = {

--[vocation id] = { level, nova voc, looktype, efeito}
[1] = { 25, 2, 310, 13},
[2] = { 50, 3, 21, 13}
}
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(getPlayerPosition(cid), voc[4])
else
doPlayerSendTextMessage(cid, MESSAGE_STATUS_WARNING, "Você precisa estar no level " .. voc[1] .. " para transformar.")
end
else
doPlayerSendCancel(cid, "Você está na ultima transformação!!")
end
return true
end
 
E Em talkactions poem esta tag =
<talkaction words="transformar" event="script" value="transformar.lua"/>
 
Ali ja ta auto explicativo , basta adicionar estas linhas [1] = { 25, 2, 310, 13}, .... Na ultima tag nunca pode ter virgula.
Postado
  • Autor

 

Talkactions/scripts crie um arquivo chama transformar e cole isso dentro dele =

local config = {

--[vocation id] = { level, nova voc, looktype, efeito}
[1] = { 25, 2, 310, 13},
[2] = { 50, 3, 21, 13}
}
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(getPlayerPosition(cid), voc[4])
else
doPlayerSendTextMessage(cid, MESSAGE_STATUS_WARNING, "Você precisa estar no level " .. voc[1] .. " para transformar.")
end
else
doPlayerSendCancel(cid, "Você está na ultima transformação!!")
end
return true
end
 
E Em talkactions poem esta tag =
<talkaction words="transformar" event="script" value="transformar.lua"/>
 
Ali ja ta auto explicativo , basta adicionar estas linhas [1] = { 25, 2, 310, 13}, .... Na ultima tag nunca pode ter virgula.

 

funciona em 8.0 ?

5nJc23M.png

Participe da conversa

Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.

Visitante
Responder

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.7k

Informação Importante

Confirmação de Termo