Postado Fevereiro 14, 2017 8 anos @vbdbghdbhgh Da próxima vez que for postar um código aqui no tk... por favor utilize a ferramente de CÓDIGOS que existe. Troque todo seu firstitems.lua por este: function onLogin(cid) if getPlayerGroupId(cid) == 1 and getPlayerStorageValue(cid, 50000) == -1 then doTeleportThing(cid, {x = 160, y = 54, z = 7}) if isSorcerer(cid) then local bag = doPlayerAddItem(cid, 1988, 1) doAddContainerItem(bag, 2120, 1) doAddContainerItem(bag, 2554, 1) doAddContainerItem(bag, 2160, 2) doAddContainerItem(bag, 2789, 25) doAddContainerItem(bag, 7618, 1) doAddContainerItem(bag, 7620, 1) doPlayerAddItem(cid, 2173, 1) doPlayerAddItem(cid, 2525, 1) doPlayerAddItem(cid, 2190, 1) doPlayerAddItem(cid, 2463, 1) doPlayerAddItem(cid, 2457, 1) doPlayerAddItem(cid, 2647, 1) doPlayerAddItem(cid, 2643, 1) doPlayerAddItem(cid, 2124, 1) setPlayerStorageValue(cid, 50000, 1) elseif isDruid(cid) then local bag = doPlayerAddItem(cid, 1988, 1) doAddContainerItem(bag, 2120, 1) doAddContainerItem(bag, 2554, 1) doAddContainerItem(bag, 2160, 2) doAddContainerItem(bag, 2789, 25) doAddContainerItem(bag, 7618, 1) doAddContainerItem(bag, 7620, 1) doPlayerAddItem(cid, 2173, 1) doPlayerAddItem(cid, 2525, 1) doPlayerAddItem(cid, 2182, 1) doPlayerAddItem(cid, 2463, 1) doPlayerAddItem(cid, 2457, 1) doPlayerAddItem(cid, 2647, 1) doPlayerAddItem(cid, 2643, 1) doPlayerAddItem(cid, 2124, 1) setPlayerStorageValue(cid, 50000, 1) elseif isPaladin(cid) then local bag = doPlayerAddItem(cid, 1988, 1) doAddContainerItem(bag, 2120, 1) doAddContainerItem(bag, 2554, 1) doAddContainerItem(bag, 2160, 2) doAddContainerItem(bag, 2789, 25) doAddContainerItem(bag, 7618, 1) doAddContainerItem(bag, 7620, 1) doPlayerAddItem(cid, 2173, 1) doPlayerAddItem(cid, 2525, 1) doPlayerAddItem(cid, 2389, 1) doPlayerAddItem(cid, 2463, 1) doPlayerAddItem(cid, 2457, 1) doPlayerAddItem(cid, 2647, 1) doPlayerAddItem(cid, 2643, 1) doPlayerAddItem(cid, 2124, 1) setPlayerStorageValue(cid, 50000, 1) elseif isKnight(cid) then local bag = doPlayerAddItem(cid, 1988, 1) doAddContainerItem(bag, 2120, 1) doAddContainerItem(bag, 2554, 1) doAddContainerItem(bag, 2160, 2) doAddContainerItem(bag, 2789, 25) doAddContainerItem(bag, 7618, 1) doAddContainerItem(bag, 7620, 1) doAddContainerItem(bag, 2428, 1) doAddContainerItem(bag, 2394, 1) doPlayerAddItem(cid, 2173, 1) doPlayerAddItem(cid, 2525, 1) doPlayerAddItem(cid, 2383, 1) doPlayerAddItem(cid, 2463, 1) doPlayerAddItem(cid, 2457, 1) doPlayerAddItem(cid, 2647, 1) doPlayerAddItem(cid, 2643, 1) doPlayerAddItem(cid, 2124, 1) setPlayerStorageValue(cid, 50000, 1) end end return TRUE end Na linha: doTeleportThing(cid, {x = 160, y = 54, z = 7}) Coloque a posição que você quer que o jogador venha a nascer. Reinicie o servidor, crie um novo personagem e teste. @Wartunder 2 minutos atrás, Wartunder disse: alguem me ajuda aqui: Estarei apenas te alertando. Não peça ajuda de outros assunto nos tópicos alheios é contra as regras do fórum.
Postado Fevereiro 14, 2017 8 anos Autor 1 minuto atrás, login12 disse: @vbdbghdbhgh Da próxima vez que for postar um código aqui no tk... por favor utilize a ferramente de CÓDIGOS que existe. Troque todo seu firstitems.lua por este: function onLogin(cid) if getPlayerGroupId(cid) == 1 and getPlayerStorageValue(cid, 50000) == -1 then doTeleportThing(cid, {x = 160, y = 54, z = 7}) if isSorcerer(cid) then local bag = doPlayerAddItem(cid, 1988, 1) doAddContainerItem(bag, 2120, 1) doAddContainerItem(bag, 2554, 1) doAddContainerItem(bag, 2160, 2) doAddContainerItem(bag, 2789, 25) doAddContainerItem(bag, 7618, 1) doAddContainerItem(bag, 7620, 1) doPlayerAddItem(cid, 2173, 1) doPlayerAddItem(cid, 2525, 1) doPlayerAddItem(cid, 2190, 1) doPlayerAddItem(cid, 2463, 1) doPlayerAddItem(cid, 2457, 1) doPlayerAddItem(cid, 2647, 1) doPlayerAddItem(cid, 2643, 1) doPlayerAddItem(cid, 2124, 1) setPlayerStorageValue(cid, 50000, 1) elseif isDruid(cid) then local bag = doPlayerAddItem(cid, 1988, 1) doAddContainerItem(bag, 2120, 1) doAddContainerItem(bag, 2554, 1) doAddContainerItem(bag, 2160, 2) doAddContainerItem(bag, 2789, 25) doAddContainerItem(bag, 7618, 1) doAddContainerItem(bag, 7620, 1) doPlayerAddItem(cid, 2173, 1) doPlayerAddItem(cid, 2525, 1) doPlayerAddItem(cid, 2182, 1) doPlayerAddItem(cid, 2463, 1) doPlayerAddItem(cid, 2457, 1) doPlayerAddItem(cid, 2647, 1) doPlayerAddItem(cid, 2643, 1) doPlayerAddItem(cid, 2124, 1) setPlayerStorageValue(cid, 50000, 1) elseif isPaladin(cid) then local bag = doPlayerAddItem(cid, 1988, 1) doAddContainerItem(bag, 2120, 1) doAddContainerItem(bag, 2554, 1) doAddContainerItem(bag, 2160, 2) doAddContainerItem(bag, 2789, 25) doAddContainerItem(bag, 7618, 1) doAddContainerItem(bag, 7620, 1) doPlayerAddItem(cid, 2173, 1) doPlayerAddItem(cid, 2525, 1) doPlayerAddItem(cid, 2389, 1) doPlayerAddItem(cid, 2463, 1) doPlayerAddItem(cid, 2457, 1) doPlayerAddItem(cid, 2647, 1) doPlayerAddItem(cid, 2643, 1) doPlayerAddItem(cid, 2124, 1) setPlayerStorageValue(cid, 50000, 1) elseif isKnight(cid) then local bag = doPlayerAddItem(cid, 1988, 1) doAddContainerItem(bag, 2120, 1) doAddContainerItem(bag, 2554, 1) doAddContainerItem(bag, 2160, 2) doAddContainerItem(bag, 2789, 25) doAddContainerItem(bag, 7618, 1) doAddContainerItem(bag, 7620, 1) doAddContainerItem(bag, 2428, 1) doAddContainerItem(bag, 2394, 1) doPlayerAddItem(cid, 2173, 1) doPlayerAddItem(cid, 2525, 1) doPlayerAddItem(cid, 2383, 1) doPlayerAddItem(cid, 2463, 1) doPlayerAddItem(cid, 2457, 1) doPlayerAddItem(cid, 2647, 1) doPlayerAddItem(cid, 2643, 1) doPlayerAddItem(cid, 2124, 1) setPlayerStorageValue(cid, 50000, 1) end end return TRUE end Na linha: doTeleportThing(cid, {x = 160, y = 54, z = 7}) Coloque a posição que você quer que o jogador venha a nascer. Reinicie o servidor, crie um novo personagem e teste. foi mal nao sabia desse code nao funcionou meu tfs é 0.4 e to usando com site só pra relembrar AEEEEEEEEEE EM CONFIG/CONFIG.PHP EDITE ISSO $config[‘site’][‘newchar_towns’][0] = array(2); Para servidores Global use “array(2)“; Para servidores Baiak use “array(1)“;
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.