• Welcome to Valhalla Legends Archive.
 

Easy Anti-idles For a Greet Bot

Started by AC_Drkan, June 02, 2004, 04:51 AM

Previous topic - Next topic

AC_Drkan

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 :)
"The Arguments of Today Result in the Wars of Tomorrow" - Quote By Muah.
<@Logan> I spent a minute looking at my own code by accident.
<@Logan> I was thinking "What the hell is this guy doing?"

<kow`> "There are 10 types of people in the world... those who understand binary and those who don't."
<SpaceRain> That's only 2 types of people, kow.
<SpaceRain> STUPID


<[TN]FBMachine> i got kicked out of barnes and noble once for moving all the bibles into the fiction section

God i love Bash.org.