SA
resolvido

[Encerrado] Ajuda com transforms

Por sanduba123, 24 de jul. de 2013 em Tópicos Sem Resposta

tibia
otserv
9
1k
sanduba123S
26 de julho de 2013 às 10:32

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

é esse velho ae ^^

alguem me responde pf pf

vinnevinneV
26 de julho de 2013 às 11:26

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

HeelNoxH
26 de julho de 2013 às 11:32

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!

attachicon.gifNova Imagem de Bitmap.bmp

é 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

vinnevinneV
26 de julho de 2013 às 12:37

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

sanduba123S
27 de julho de 2013 às 09:57

deu certo vlw DarkHeel mdr.gifmdr.gif

 

~~edit~~

 

depois que fiz isso o acc manager não loga mais porque?

Editado Julho 27 por sanduba123

HeelNoxH
27 de julho de 2013 às 19:40

deu certo vlw DarkHeel mdr.gifmdr.gif

 

~~edit~~

 

depois que fiz isso o acc manager não loga mais porque?

 

voce deve ter feito algo errado no LOGIN.LUA

vital900V
28 de julho de 2013 às 21:29

Tópico movido para a seção de dúvidas e pedidos resolvidos.

sanduba123S
29 de julho de 2013 às 13:11

 

deu certo vlw DarkHeel mdr.gifmdr.gif

 

~~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) then
doPlayerSetLossPercent(cid, PLAYERLOSS_EXPERIENCE, loss * 10)
end
local accountManager = getPlayerAccountManager(cid)
if(accountManager == MANAGER_NONE) then
local lastLogin, str = getPlayerLastLoginSaved(cid), config.loginMessage
if(lastLogin > 0) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, str)
str = "Your last visit was on " .. os.date("%a %b %d %X %Y", lastLogin) .. "."
end
doPlayerSendTextMessage(cid, MESSAGE_STATUS_DEFAULT, str)
elseif(accountManager == MANAGER_NAMELOCK) then
doPlayerSendTextMessage(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) then
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Hello, type 'account' to manage your account and if you want to start over then type 'cancel'.")
else
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Hello, type 'account' to create an account or type 'recover' to recover an account.")
end
if(not isPlayerGhost(cid)) then
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_TELEPORT)
end
registerCreatureEvent(cid, "Mail")
registerCreatureEvent(cid, "GuildMotd")
registerCreatureEvent(cid, "Idle")
if(config.useFragHandler) then
registerCreatureEvent(cid, "SkullCheck")
end
registerCreatureEvent(cid, "ProtDeath")
registerCreatureEvent(cid, "Biohazard")
registerCreatureEvent(cid, "ZombieAttack")
registerCreatureEvent(cid, "WeaponMana")
registerCreatureEvent(cid, "showVoc")
registerCreatureEvent(cid, "ReportBug")
registerCreatureEvent(cid, "AdvanceSave")
registerCreatureEvent(cid, "roupa")
return true
end

 

4 anos depois...
StigalS
21 de abril de 2018 às 02:55
A questão neste tópico de suporte foi encerrada por falta de respostas. Este tópico está fechado e foi movido para Suporte - Tópicos Sem Resposta.

+ 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.