Ir para conteúdo

Featured Replies

  • Respostas 9
  • Visualizações 1.1k
  • Created
  • Última resposta

Top Posters In This Topic

Postado


function onLogin(cid)

	if getPlayerGroupId(cid) == 1 and getPlayerStorageValue(cid, 50000) == -1 then

		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)


   	 elseif isNone(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

Desculpe-me, eu hávia feito errado ;x foi erro meu!

--

Leia esse tutorial como juntar um mapa ao outro... http://tibiaking.com...-mapa-ao-outro/ Como seu pc não deverá aguentar 2 Global... Faça o seguinte: Abra o map global Clique em FILE>NEW ... Ou CTRL + N Copie a Gm island do map global, CTRL + Botão direito do mouse para marca o local (nesse caso, a ilha), logo em seguida CTRL + C, vá ao new map (que nesse caso deve se chamar de Untitled-1.OTBM) e clique CTRL +V Agora você fecha o map global que possui a Gm island e abre o map global que não possui... Escolha o local aonde você quer deixar a Gm island, volte para o Untitled-1.OTBM (que no caso é o new map - aonde você deixou o Gm island) copie-a e coloque-a no map global. Salve o global map, feche o Untitled-1.OTBM...

--

Como eu falei:

$config['site']['newchar_towns'][0] = array(4);

$config['site']['newchar_towns'][1] = array(4);

// sample, if all players should spawn in one city (city with ID 4): uncoment!!

//$config['site']['newchar_towns'] = array(4);

// list of towns on ots

$towns_list[0] = array(1 => 'Venore', 2 => 'Thais', 4 => 'Carlin', 5 => 'Ab'Dendriel'); // list of towns, id => 'name', $towns_list[0] - for world id 0

$towns_list[1] = array(1 => 'Venore', 2 => 'Thais', 4 => 'Carlin', 5 => 'Ab'Dendriel'); // list of towns, id => 'name', $towns_list[1] - for world id 1

Não pegou?

PS: eu já arrumei o Codigo acima, basta copiar e colar lá no seu CONFIG.PHP

Era um erro que estava passando despercebido, nem tinha visto ele, mais agora já está arrumado ;x

--

Me passa a parte dos characters em config.php...

E me passa as vocation.xml do seu servidor...

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

Informação Importante

Confirmação de Termo