Probabil multi nu au functiile astea si vor zice ca este stricat
adaugati in char_state.cpp:
void CHARACTER::SetNoMove()
{
SET_BIT(m_pointsInstant.dwAIFlag, AIFLAG_NOMOVE);
}
bool CHARACTER::IsNoMove() const
{
return IS_SET(m_pointsInstant.dwAIFlag, AIFLAG_NOMOVE);
}
in char.h:
public:
void SetNoMove();
bool IsNoMove() const;
De IsNoMove probabil nu aveti nevoie.
Sistemul este facut sa mearga pentru serverul de teste. Ca sa va mearga indiferent pe ce mod este doar comentati in cmd_gm.cpp:
ACMD(do_fake_character)
{
static const int MAX_SPAWN_COUNT = 500;
static const int MAX_TOTAL_COUNT = 2000;
static const int DEFAULT_RADIUS = 1000;
static const int MIN_RADIUS = 100;
static const int MAX_RADIUS = 10000;
// if (!test_server)
// {
// ch->ChatPacket(CHAT_TYPE_INFO, "The fake character command is only available on a test server.");
// return;
// }
....
si in char_manager.cpp:
FlushPendingDestroy();
#if defined(__FAKE_CHARACTER_SYSTEM__)
//if (test_server)
CFakeCharacterManager::instance().Update(iPulse);
#endif
}