2010-11-13, 11:24:01
Did i get you right? Do you want to continue with the hostcounter after restarting the bot? You don't want it to start at 1 again?
Depends on the version of the bot you have. On my bots i've written a command to set the hostcounter to whatever value i want to. But as far as i know there are also bots which have this functionality built-in.
This is the small command i've written:
Depends on the version of the bot you have. On my bots i've written a command to set the hostcounter to whatever value i want to. But as far as i know there are also bots which have this functionality built-in.
This is the small command i've written:
Code:
//
// !HOSTCOUNTER
//
if( Command == "hc" || Command == "hostcounter" )
{
if( Payload.empty( ) )
QueueChatCommand( "HostCounter is [" + UTIL_ToString( m_GHost->m_HostCounter ) + "].", User, Whisper );
else
{
m_GHost->m_HostCounter = UTIL_ToUInt32( Payload );
QueueChatCommand( "HostCounter set to [" + UTIL_ToString( m_GHost->m_HostCounter ) + "].", User, Whisper );
}
}