MA

Player Online Spoof

Por MatheusEnjoy, 21 de abr. de 2014 em Linguagens de Programação

otserv
5
1.1k
MatheusEnjoyM
21 de abril de 2014 às 14:32

Nome: Player Online Spoof
Versão: 2.0
Suportada: Tfs 0.3 e 0.4
Descrição: Coloque quantos players quiser em seu otserv.
Eu estava vendo o utilitário de player spoof e resolvi dar uma extraia no code e fazer com que você adicione quantos quiser em seu servidor.

Em configmanager.cpp procure:

m_confNumber[MAX_PLAYERS] = getGlobalNumber("maxPlayers", 1000);

Abaixo adicione:

m_confNumber[SPOOF_PLAYERS] = getGlobalNumber("spoofPlayers", 0);

Em configmanager.h procure:

MAX_PLAYERS,

Abaixo adicione:

SPOOF_PLAYERS,

Em status.cpp procure:

p = xmlNewNode(NULL,(const xmlChar*)"players");
sprintf(buffer, "%d", g_game.getPlayersOnline());
xmlSetProp(p, (const xmlChar*)"online", (const xmlChar*)buffer);
sprintf(buffer, "%d", (int32_t)g_config.getNumber(ConfigManager::MAX_PLAYERS));
xmlSetProp(p, (const xmlChar*)"max", (const xmlChar*)buffer);
sprintf(buffer, "%d", g_game.getPlayersRecord());
xmlSetProp(p, (const xmlChar*)"peak", (const xmlChar*)buffer);

Modifique para:

p = xmlNewNode(NULL,(const xmlChar*)"players");
sprintf(buffer, "%d", g_game.getPlayersOnline()+(int32_t)g_config.getNumber(ConfigManager::SPOOF_PLAYERS));
xmlSetProp(p, (const xmlChar*)"online", (const xmlChar*)buffer);
sprintf(buffer, "%d", (int32_t)g_config.getNumber(ConfigManager::MAX_PLAYERS)+(int32_t)g_config.getNumber(ConfigManager::SPOOF_PLAYERS));
xmlSetProp(p, (const xmlChar*)"max", (const xmlChar*)buffer);
sprintf(buffer, "%d", g_game.getPlayersRecord()+(int32_t)g_config.getNumber(ConfigManager::SPOOF_PLAYERS));
xmlSetProp(p, (const xmlChar*)"peak", (const xmlChar*)buffer);

Em config.lua procure:

maxPlayers =

Abaixo adicione:

spoofPlayers = 0

Configurando:
No config.lua onde tem spoofPlayers = 0 substitua o valor 0 para o valor de players spoof que você deseja ter.

Recomendações:
Remova o comando /online de seu servidor ou modifique para somente gm+ pode utiliza-lo.
Modifique no site o total de players e adicione +(a quantidade que você colocou).

Créditos:
Comedinha

21 de abril de 2014 às 15:01

Ai depois se toma ban otservlist eahehaj

TechrlzT
21 de abril de 2014 às 15:33

Ja tinha este topico aqui na comunidade porem obrigado por compartilhar.

MaenilseM
21 de abril de 2014 às 16:12

Ai depois se toma ban otservlist eahehaj

aqui n é o barzinho pra vc fazer esses tipos de comentarios nao fi, fica dica ai.

 

comedinha sempre inovando nos codes kkkkkkkkkkkkkkkkkkkkkk, esse dai ele tinha postado no outro forum, ano passado ou retrasado, n lembro mt bem.

MatheusEnjoyM
21 de abril de 2014 às 16:32

Ai depois se toma ban otservlist eahehaj

 

A ideia não e só o código implementado e sim como se faz isso... Trazendo conteúdo desse nivel pode ajudar membros que estão interessados em aprender C++.