Postado Janeiro 9, 2015 10 anos Eu queria um script de transform para meu wodbo, se alguém puder ajudar fico infinitamente agradecido ! abraços. Rep+
Postado Janeiro 9, 2015 10 anos 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 Janeiro 10, 2015 10 anos 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 ?
Postado Janeiro 10, 2015 10 anos funciona em 8.0 ? Teste e veja você mesmo se funciona. Caso haja erros, mencione-os aqui. The corrupt fear us. The honest support us. The heroic join us.
Postado Janeiro 11, 2015 10 anos Autor Teste e veja você mesmo se funciona. Caso haja erros, mencione-os aqui. não funcionou !
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.