Add this to where all the functions are defined:
virtual int OnConnected(char *szSpeaker, u_long uFlags, char *szEventText);
Add this event i.d.:
#define EID_CONNECTED 2000
Then add this to where the bots breaks down the event I.D.:
case EID_CONNECTED:
OnConnected(szSpeaker, uFlags, szEventText);
break;
This Function is used every like 2 minutes:
//============================================================================
inline int BnBot::OnConnected(char *szSpeaker, u_long uFlags, char *szEventText) {
Send("[me=AC_Drkan]WHATEVER YOU WANY HERE\r\n");[/me]
return 1;
}
Hope this helps anyone
P.S. i had a question about this earlier on the forums so i answered my own question :)