l2-unlegits/l2ooghelper/L2Client_BotIPC.cpp
2012-02-01 05:25:08 +00:00

23 lines
431 B
C++

#include "stdafx.h"
#include "Resource.h"
#include "Logger.h"
#include "L2Client.h"
void L2Client::L2ClientThread_Game_BotIPC( class L2Client *pcls )
{
BOT_INFO bi;
BotIPC *ipc = BotIPC::getInstance();
ipc->getBotInfo( pcls->botipc_index, &bi );
if( bi.isSlave )
{
if( bi.followEnable )
{
pcls->m_ai->setFollow( true, bi.oidFollow );
}
else
{
pcls->m_ai->setFollow( false, 0 );
}
}
}