Posta ai o script pra eu dar uma Olhada...
- Fórum
- OTServ
- Suporte
- Resolvidos
- Script Que Funciona No Styller Nao Funciona Tfs.
Script Que Funciona No Styller Nao Funciona Tfs.
Por coyotestark, 12 de mar. de 2012 em Resolvidos
info
Grupo: Herói
Registrado: 12/03/11
Posts: 1.9k
Reputação: +284
Gênero: Masculino
Char no Tibia: Nokte

info
Grupo: Visconde
Registrado: 15/02/11
Posts: 259
Reputação: +25
Char no Tibia: Aias Laf Du

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
info
Grupo: Herói
Registrado: 12/03/11
Posts: 1.9k
Reputação: +284
Gênero: Masculino
Char no Tibia: Nokte

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 Março 12 por Beeki
info
Grupo: Visconde
Registrado: 15/02/11
Posts: 259
Reputação: +25
Char no Tibia: Aias Laf Du

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.
info
Grupo: Herói
Registrado: 12/03/11
Posts: 1.9k
Reputação: +284
Gênero: Masculino
Char no Tibia: Nokte

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.


info
Grupo: Visconde
Registrado: 15/02/11
Posts: 259
Reputação: +25
Char no Tibia: Aias Laf Du
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?
Editado Março 12 por CoyoteStark