tem sim é so vc saber o id de cd newtype. e ir em talkactions/script/transformar.xml dae troka la a id pq em tds as vocation e primeira outfit ta essa aew
- Forums
- OTServ
- Suporte
- Tópicos Sem Resposta
- [Encerrado] Ajuda com transforms
[Encerrado] Ajuda com transforms
By sanduba123, 24 de jul. de 2013 in Tópicos Sem Resposta
info
Group: Banidos
Joined: 16/10/12
Posts: 596
Reputation: +31
Tibia Character: Nao Sei

info
Group: Visconde
Joined: 08/10/11
Posts: 444
Reputation: +71
Gender: Feminino
Tibia Character: No Have.

tem sim é so vc saber o id de cd newtype. e ir em talkactions/script/transformar.xml dae troka la a id pq em tds as vocation e primeira outfit ta essa aew
Errado .
baixei um server narutibia offline, e quando fui entrar nele, reparei que em todas as vocações, a primeira transformação e um velhinho e quando transforma lvl 25 ou 50 volta ao normal. mas eu queria saber se tem como tirar esse velhinho chato!
é esse velho ae ^^alguem me responde pf pf
Creditos: Notle2012 ele que passo o script em um topico meu .
Bota isso aqui
Cria um arquivo lua em Creaturescripts
-- config by uotl£local config = {
--[vocation id] = {ID outfit}
[1] = {look=71},
[2] = {look=72},
[3] = {look=73},
[4] = {look=75}}
-- config by uotl£
function onLogin(cid)
local voc = config[getPlayerVocation(cid)]
if voc then
doSetCreatureOutfit(cid, {lookType = voc.look}, -1)
return TRUE
end
end
1 - ID da vocação
71 - LookType
Em CreatureScripts.xml
<event type="login" name="roupa" event="script" value="nomedoarquivo.lua.lua"/>
Va em CreatureScripts na pasta e proucure por LOGIN.LUA.
Adiciona isso
registerCreatureEvent(cid, "roupa")
Edited Julho 26 by DarkHeel
info
Group: Banidos
Joined: 16/10/12
Posts: 596
Reputation: +31
Tibia Character: Nao Sei

Cria um arquivo lua em Creaturescripts
-- config by uotl£
local config = {
--[vocation id] = {ID outfit}
[1] = {look=71},
[2] = {look=72},
[3] = {look=73},
[4] = {look=75}}
-- config by uotl£
function onLogin(cid)
local voc = config[getPlayerVocation(cid)]
if voc then
doSetCreatureOutfit(cid, {lookType = voc.look}, -1)
return TRUE
end
end
1 - ID da vocação
71 - LookType
Em CreatureScripts.xml
<event type="login" name="roupa" event="script" value="nomedoarquivo.lua.lua"/>
Va em CreatureScripts na pasta e proucure por LOGIN.LUA.
Adiciona isso
registerCreatureEvent(cid, "roupa")
eu ja testei esse script ele n funciona. pra q verssao é esse script?
Edited Julho 26 by vinnevinne
info
Group: Campones
Joined: 02/07/13
Posts: 3
Reputation: 0

deu certo vlw DarkHeel ![]()
![]()
~~edit~~
depois que fiz isso o acc manager não loga mais porque?
Edited Julho 27 by sanduba123
info
Group: Visconde
Joined: 08/10/11
Posts: 444
Reputation: +71
Gender: Feminino
Tibia Character: No Have.

deu certo vlw DarkHeel
~~edit~~
depois que fiz isso o acc manager não loga mais porque?
voce deve ter feito algo errado no LOGIN.LUA
info
Group: Grão-Duque
Joined: 28/07/11
Posts: 3.5k
Reputation: +570
Gender: Masculino
Tibia Character: Transloko

Tópico movido para a seção de dúvidas e pedidos resolvidos.
info
Group: Campones
Joined: 02/07/13
Posts: 3
Reputation: 0

deu certo vlw DarkHeel
~~edit~~
depois que fiz isso o acc manager não loga mais porque?
voce deve ter feito algo errado no LOGIN.LUA
ta ae meu login.lua
local config = {
loginMessage = getConfigValue('loginMessage'),useFragHandler = getBooleanFromString(getConfigValue('useFragHandler'))}function onLogin(cid)local loss = getConfigValue('deathLostPercent')if(loss ~= nil) thendoPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, loss * 10)endlocal accountManager = getPlayerAccountManager(cid)if(accountManager == MANAGER_NONE) thenlocal lastLogin, str = getPlayerLastLoginSaved(cid), config.loginMessageif(lastLogin > 0) thendoPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, str)str = "Your last visit was on " .. os.date("%a %b %d %X %Y", lastLogin) .. "."enddoPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, str)elseif(accountManager == MANAGER_NAMELOCK) thendoPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Hello, it appears that your character has been namelocked, what would you like as your new name?")elseif(accountManager == MANAGER_ACCOUNT) thendoPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Hello, type 'account' to manage your account and if you want to start over then type 'cancel'.")elsedoPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Hello, type 'account' to create an account or type 'recover' to recover an account.")endif(not isPlayerGhost(cid)) thendoSendMagicEffect(getCreaturePosition(cid), CONST_ME_TELEPORT)endregisterCreatureEvent(cid, "Mail")registerCreatureEvent(cid, "GuildMotd")registerCreatureEvent(cid, "Idle")if(config.useFragHandler) thenregisterCreatureEvent(cid, "SkullCheck")endregisterCreatureEvent(cid, "ProtDeath")registerCreatureEvent(cid, "Biohazard")registerCreatureEvent(cid, "ZombieAttack")registerCreatureEvent(cid, "WeaponMana")registerCreatureEvent(cid, "showVoc")registerCreatureEvent(cid, "ReportBug")registerCreatureEvent(cid, "AdvanceSave")registerCreatureEvent(cid, "roupa")return trueend
info
Group: Herói
Joined: 28/11/10
Posts: 3.4k
Reputation: +585
Gender: Masculino

+ Caso a dúvida não tenha sido resolvida você poderá criar outro tópico solicitando ajuda.
* Lembre-se que é permitido dar UP no tópico a cada 24 horas para assim o destacar e manter movimentado.





info
Group: Campones
Joined: 02/07/13
Posts: 3
Reputation: 0
baixei um server narutibia offline, e quando fui entrar nele, reparei que em todas as vocações, a primeira transformação e um velhinho e quando transforma lvl 25 ou 50 volta ao normal. mas eu queria saber se tem como tirar esse velhinho chato!
Nova Imagem de Bitmap.bmp
alguem me responde pf pf