Ir para conteúdo
  • Cadastre-se

[Duvida] talkation Valendo rep+ Pergunta super esplicada!


Posts Recomendados

Eae galera tou mostrando um problema na transformarçao system Da uma olha quem souber

1ºvou mostrar a config dela C:\Users\Joao Victor\Desktop\Bleach UP - By Status\data\talkactions\scripts

---Transform Version 1.0 By Aragorn

function onSay(cid, words, param)

if getPlayerVocation(cid) == 2 and getPlayerLevel(cid) >= 50 then

doPlayerSetVocation(cid, 17)

local outfit = {lookType = 30 , lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0}

doSetCreatureOutfit(cid, outfit, -1)

doSendMagicEffect(getCreaturePosition(cid), 12)

doPlayerSendCancel(cid, "You transform!")

elseif getPlayerLevel(cid) <= 50 then

doPlayerSendCancel(cid, "You need 50 level to transform!")

end

if getPlayerVocation(cid) == 17 then

doPlayerSetVocation(cid, 18)

local outfit = { lookType = 31 , lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0}

doSetCreatureOutfit(cid, outfit, -1)

doSendMagicEffect(getCreaturePosition(cid), 13)

doPlayerSendCancel(cid, "You transform!")

elseif getPlayerVocation(cid) == 18 then

doPlayerSetVocation(cid, 19)

local outfit = { lookType = 32 , lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0}

doSetCreatureOutfit(cid, outfit, -1)

doSendMagicEffect(getCreaturePosition(cid), 13)

doPlayerSendCancel(cid, "You transform!")

else

doPlayerSendCancel(cid, "It is your last transform.")

end

return true

end

2ºAgora talkation! C:\Users\Joao Victor\Desktop\Bleach UP - By Status\data\talkactions

<!-- Players -->

<talkaction words="!createguild" event="function" value="guildCreate"/>

<talkaction words="!joinguild" event="function" value="guildJoin"/>

<talkaction words="!frags" event="script" value="frags.lua"/>

<talkaction words="!online" event="script" value="online.lua"/>

<talkaction words="!uptime" event="script" value="uptime.lua"/>

<talkaction words="!deathlist" event="script" value="deathlist.lua"/>

<talkaction words="!pvp" event="script" value="pvp.lua"/>

<talkaction words="!q" event="script" value="money.lua"/>

<talkaction words="!rank;/rank" script="rank.lua"/>

<talkaction words="!serverinfo" event="script" value="serverinfo.lua"/>

<talkaction words="/commands" event="script" value="commands.lua"/>

<!-- <talkaction words="!saga" event="script" value="saga.lua"/> -->

<!-- Transform -->

Como eu arrumo esse system na talkation Valendo Rep+

Editado por zamurai (veja o histórico de edições)
Link para o post
Compartilhar em outros sites

Nao funfa

Eu falo Transformar ele nao transfoma

taligado??vou mandar um print

Link para o post
Compartilhar em outros sites

\data\talkactions\scripts\trans.lua

function onSay(cid, words, param)


local config = {

level = 50,

outfit1 = {lookType = 30 , lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0},

outfit2 = { lookType = 31 , lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0},

outfit3 = { lookType = 32 , lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0},

}


if getPlayerVocation(cid) == 2 and getPlayerLevel(cid) >= 50 then

doPlayerSetVocation(cid, 17)

doSetCreatureOutfit(cid, config.outfit1, -1)

doSendMagicEffect(getCreaturePosition(cid), 12)

doPlayerSendCancel(cid, "You transform!")

elseif getPlayerLevel(cid) < 50 then

doPlayerSendCancel(cid, "You need 50 level to transform!")

end


if getPlayerVocation(cid) == 17 then

doPlayerSetVocation(cid, 18)

doSetCreatureOutfit(cid, config.outfit2, -1)

doSendMagicEffect(getCreaturePosition(cid), 13)

doPlayerSendCancel(cid, "You transform!")


elseif getPlayerVocation(cid) == 18 then

doPlayerSetVocation(cid, 19)

doSetCreatureOutfit(cid, config.outfit3, -1)

doSendMagicEffect(getCreaturePosition(cid), 13)

doPlayerSendCancel(cid, "You transform!")

else

doPlayerSendCancel(cid, "It is your last transform.")

end


return true

end
\data\talkactions\talkactions.xml
<talkaction words="!transform" event="script" value="trans.lua"/>

Certifique-se que o seu ot possui as vocações 17, 18, 19

Link para o post
Compartilhar em outros sites
  • 2 weeks later...

Mano va em data\talkactions\scripts copie um arquivo e renomeie para transformar dentro cole :

---Transform Version 1.0 By Aragorn

function onSay(cid, words, param)

if getPlayerVocation(cid) == 2 and getPlayerLevel(cid) >= 50 then

doPlayerSetVocation(cid, 17)

local outfit = {lookType = 30 , lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0}

doSetCreatureOutfit(cid, outfit, -1)

doSendMagicEffect(getCreaturePosition(cid), 12)

doPlayerSendCancel(cid, "You transform!")

elseif getPlayerLevel(cid) <= 50 then

doPlayerSendCancel(cid, "You need 50 level to transform!")

end

if getPlayerVocation(cid) == 17 then

doPlayerSetVocation(cid, 18)

local outfit = { lookType = 31 , lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0}

doSetCreatureOutfit(cid, outfit, -1)

doSendMagicEffect(getCreaturePosition(cid), 13)

doPlayerSendCancel(cid, "You transform!")

elseif getPlayerVocation(cid) == 18 then

doPlayerSetVocation(cid, 19)

local outfit = { lookType = 32 , lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookAddons = 0}

doSetCreatureOutfit(cid, outfit, -1)

doSendMagicEffect(getCreaturePosition(cid), 13)

doPlayerSendCancel(cid, "You transform!")

else

doPlayerSendCancel(cid, "It is your last transform.")

end

return true

end

Apos faser isso va em \data\talkactions\talkactions.xml

e cole o seguite

<talkaction words="!transform" event="script" value="transformar.lua"/>

CASO NO DATA/XML/VOCATIONS nao tenha as vocations 17, 18, 19 dadas no script nao ira funcionar

Editado por dionatan99 (veja o histórico de edições)
Link para o post
Compartilhar em outros sites

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

×   Você colou conteúdo com formatação.   Remover formatação

  Apenas 75 emojis são permitidos.

×   Seu link foi automaticamente incorporado.   Mostrar como link

×   Seu conteúdo anterior foi restaurado.   Limpar o editor

×   Não é possível colar imagens diretamente. Carregar ou inserir imagens do URL.

  • Quem Está Navegando   0 membros estão online

    Nenhum usuário registrado visualizando esta página.

×
×
  • Criar Novo...

Informação Importante

Confirmação de Termo