Jump to content
  • 0
Draswor

Programação Como editar as outfits das contas de God?

Question

Draswor    0
Draswor

 

Spoiler

Olá, pessoal!

 

Preciso saber como posso adicionar uma outfit na lista de outfits dos Gods. Quando abro o outfit.xml  só encontro os outfits normais, mas quando faço o logins na conta de God eu tenho os outfits especiais. Nas versões antigas todos os outfits ficavam nesse xml, mas nessa versão não estou encontrando.

Nesse caso, estou testando adicionar o outfit com ID 12 (Kraknaknork's Demon) na lista dos outfits de God. Estou rodando o Otxserver.

 

Obrigado!

 

Você tem alguma imagem que possa auxiliar no problema? Se sim, anexe-a dentro do spoiler abaixo:

Spoiler

 

 

Share this post


Link to post
Share on other sites

1 answer to this question

Recommended Posts

  • 0
Majesty    1,761
Majesty

src/protocolgame.cpp, adicionar em:

std::vector<ProtocolOutfit> protocolOutfits;
	if (player->isAccessPlayer()) {
		static const std::string gamemasterOutfitName = "Game Master";
		protocolOutfits.emplace_back(gamemasterOutfitName, 75, 0);		

		static const std::string gmCustomerSupport = "Customer Support";
		protocolOutfits.emplace_back(gmCustomerSupport, 266, 0);

		static const std::string communityManager = "Community Manager";
		protocolOutfits.emplace_back(communityManager, 302, 0);
	}

O seguinte código:

protocolOutfits.emplace_back(gamemasterOutfitName, 12, 0);

Ficando assim:

std::vector<ProtocolOutfit> protocolOutfits;
	if (player->isAccessPlayer()) {
		static const std::string gamemasterOutfitName = "Game Master";
		protocolOutfits.emplace_back(gamemasterOutfitName, 75, 0);
		protocolOutfits.emplace_back(gamemasterOutfitName, 12, 0);

		static const std::string gmCustomerSupport = "Customer Support";
		protocolOutfits.emplace_back(gmCustomerSupport, 266, 0);

		static const std::string communityManager = "Community Manager";
		protocolOutfits.emplace_back(communityManager, 302, 0);
	}

Depois compila as sources e gera um novo executável.

Obs: não testado.

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.

  • Recently Browsing   0 members

    No registered users viewing this page.

×