Ir para conteúdo

Featured Replies

  • Respostas 12
  • Visualizações 1k
  • Created
  • Última resposta

Top Posters In This Topic

Most Popular Posts

  • Talvez não resolva, mas tente isso, vai no site do seu server, abra o config.php e mude as posições de algo como:   /*Positions to start when creating character*/ $startPos['x'] = x; $st

  • Uma opção é você utilizar esta função no mesmo script que entrega os primeiros items ao primeiro login do jogador no servidor, geralmente, firstitems.lua.   Você pode adicionar isso (caso ut

  • Você declarou errado Não existe possibilidade disso da errado, poste seu arquivo firstitems.lua e creaturescripts.xml

Postado

@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
  • 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.

Visitante
Responder

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.6k

Informação Importante

Confirmação de Termo