Postado Julho 18, 2017 8 anos Algo que não entendi. baixei uma base de naruto, a partir de uma alteração tudo 'bugou' ! Erro : [18/07/2017 13:53:33] Naruto Uzu has logged in. [18/07/2017 13:53:33] [Error - CreatureScript Interface] [18/07/2017 13:53:33] data/creaturescripts/scripts/looktypes.lua:onLogin [18/07/2017 13:53:33] Description: [18/07/2017 13:53:33] attempt to index a nil value [18/07/2017 13:53:33] stack traceback: [18/07/2017 13:53:33] [C]: in function 'doSetCreatureOutfit' [18/07/2017 13:53:33] data/creaturescripts/scripts/looktypes.lua:17: in function <data/creaturescripts/scripts/looktypes.lua:1> [18/07/2017 13:53:33] Naruto Uzu has logged out. Script function onLogin(cid) local outfits = { --LookType Vocations Iniciais [1] = {lookType = 2}, [2] = {lookType = 3}, [3] = {lookType = 4}, [4] = {lookType = 5}, [5] = {lookType = 6}, [6] = {lookType = 7}, [7] = {lookType = 389}, } local voc_id = getPlayerVocation(cid) if getPlayerVocation(cid) > 0 then doSetCreatureOutfit(cid, outfits[voc_id], -1) end return TRUE end Editado Julho 18, 2017 8 anos por BangBang (veja o histórico de edições)
Postado Julho 19, 2017 8 anos @BangBang Spoiler local outfits = { --LookType Vocations Iniciais [1] = 2, [2] = 3, [3] = 4, [4] = 5, [5] = 6, [6] = 7, [7] = 389 } function onSay(cid, words, param, channel) local vocs = outfits[getPlayerVocation(cid)] local roupa = {lookType = vocs} if getPlayerVocation(cid) > 0 then doCreatureChangeOutfit(cid, roupa) end return true end
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.