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
- Fórum
- OTServ
- Suporte
- Tópicos Sem Resposta
- [Encerrado] Ajuda com transforms
[Encerrado] Ajuda com transforms
Por sanduba123, 24 de jul. de 2013 em Tópicos Sem Resposta
info
Grupo: Banidos
Registrado: 16/10/12
Posts: 596
Reputação: +31
Char no Tibia: Nao Sei

info
Grupo: Visconde
Registrado: 08/10/11
Posts: 444
Reputação: +71
Gênero: Feminino
Char no Tibia: 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")
Editado Julho 26 por DarkHeel
info
Grupo: Banidos
Registrado: 16/10/12
Posts: 596
Reputação: +31
Char no Tibia: 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?
Editado Julho 26 por vinnevinne
info
Grupo: Campones
Registrado: 02/07/13
Posts: 3
Reputação: 0

deu certo vlw DarkHeel ![]()
![]()
~~edit~~
depois que fiz isso o acc manager não loga mais porque?
Editado Julho 27 por sanduba123
info
Grupo: Visconde
Registrado: 08/10/11
Posts: 444
Reputação: +71
Gênero: Feminino
Char no Tibia: 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
Grupo: Grão-Duque
Registrado: 28/07/11
Posts: 3.5k
Reputação: +570
Gênero: Masculino
Char no Tibia: Transloko

Tópico movido para a seção de dúvidas e pedidos resolvidos.
info
Grupo: Campones
Registrado: 02/07/13
Posts: 3
Reputação: 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
Grupo: Herói
Registrado: 28/11/10
Posts: 3.4k
Reputação: +585
Gênero: 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
Grupo: Campones
Registrado: 02/07/13
Posts: 3
Reputação: 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