Ir para conteúdo

Pergunta

eu baixei aki um TFS aberto compilei sei fazer ediçoes so pra testar, entao tentei usar um script de transformaçao que funciona em um new styller yourots e nao aceita, como fazer funcionar?

post-302635-0-72938300-1331596436_thumb.png

Editado por CoyoteStark
Link para o comentário
https://xtibia.com/forum/topic/182424-script-que-funciona-no-styller-nao-funciona-tfs/
Compartilhar em outros sites

5 respostass a esta questão

Posts Recomendados

  • 0

bom eh +- isto, eu dei uma resumida.

 

 

 

local combat = createCombatObject()

setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_GREEN)

setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 0)

local condition = createConditionObject(CONDITION_OUTFIT)

setConditionParam(condition, CONDITION_PARAM_TICKS, 86400000)

addOutfitCondition(condition, 0, 71, 0, 0, 0, 0)

setCombatCondition(combat, condition)

ichigo1 = {lookType=56}

ichigo2 = {lookType=62}

ichigo3 = {lookType=83}

ichigo4 = {lookType=8}

ichigo5 = {lookType=59}

ichigo6 = {lookType=21}

ichigo7 = {lookType=52}

ichigo8 = {lookType=192}

ichigo9 = {lookType=133}

ext = 1000

 

function onCastSpell(cid, var)

 

---Ichigo---

 

if getPlayerVocation(cid) == 13 then

if getPlayerLevel(cid) >= 50 then

doPlayerSetVocation(cid, 14)

doCreatureChangeOutfit(cid, ichigo1)

 

doSendMagicEffect(getPlayerPosition(cid), 233)

else

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

doSendMagicEffect(getPlayerPosition(cid), 2)

end

elseif getPlayerVocation(cid) == 14 then

if getPlayerLevel(cid) >= 100 then

doPlayerSetVocation(cid, 15)

doCreatureChangeOutfit(cid, ichigo2)

 

doSendMagicEffect(getPlayerPosition(cid), 233)

else

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

doSendMagicEffect(getPlayerPosition(cid), 2)

end

elseif getPlayerVocation(cid) == 15 then

if getPlayerLevel(cid) >= 150 then

doPlayerSetVocation(cid, 16)

doCreatureChangeOutfit(cid, ichigo3)

 

doSendMagicEffect(getPlayerPosition(cid), 233)

else

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

doSendMagicEffect(getPlayerPosition(cid), 2)

end

elseif getPlayerVocation(cid) == 16 then

if getPlayerLevel(cid) >= 200 then

doPlayerSetVocation(cid, 17)

doCreatureChangeOutfit(cid, ichigo4)

 

doSendMagicEffect(getPlayerPosition(cid), 233)

else

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

doSendMagicEffect(getPlayerPosition(cid), 2)

end

 

else

doPlayerSendCancel(cid, "You cannot transform.")

doSendMagicEffect(getPlayerPosition(cid), 2)

end

end

 

 

  • 0

Faz assim, toma o meu o script de Transformar, igual do DBO Brasil, já tem uma Mini tabela ali encinando como configurar é facil.

 

transform.lua

 

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

 

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

 

@edit, se ajudei agradece aê

 

tenho vários scripts aqui que podem ser usado em Wodbo/Bleach, qualquer coisa só postar pedindo.

Editado por Beeki
  • 0

um colega ja havia me dado este sistema so que eu tinha que aprender a mecher nele e iria atrasar meu projeto, alem de ter que refazer toads as transforms.

a parte chata eh pq esta versao ao que vi no dbobr tem muito elfbot, e eu nao queria elf em meu ot, NG ate que da pra levar.

sera que tem como baixar a versao para 852? pq ta 854.

  • 0

o meu script é muito facil de ser configurado, alem de pesar menos e dá para fazer todas as transforms em um script só, assim ficando mais organizado o seu servidor... é meio dificil fazer downgred no tfs, da versão 8.54 para 8.52 por que muda alguns offsets e eu não sei quais são, malz =/, espero ter ajudado.

Visitante
Este tópico está impedido de receber novos posts.
×
×
  • Criar Novo...