heartbeatptr = add_timer(0, 25000, heartbeat_timer); storyptr = add_timer(0, 1000, story_timer); guildmapptr = add_timer(0, 2500, guildmap_timer); pf_moveptr = add_timer(0, 2500, timed_pf_move);
int init_bot(){  #ifdef LINUX  chdir(ROOTDIR);#endif  int err, i;    // Init  for(i=0;i<max_actors;i++)			actors_list[i]=NULL;     if (!read_info (fname)) {    log_error ("Unable to read input file %s%s\n", ROOTDIR, "elbot.dat");    exit (57);  }    load_list(&admin, "admin.lst");  load_list(&A_player, "players.lst");  load_list(&A_guild, "guilds.lst");    load_map_config("map.ini");    err = init_connection (hostname, port);  if (err) {    exit_connection (err);    exit (2);  }  if (!login (my_name, my_password)) {    log_error ("Unable to log in as %s\n", my_name);    exit (35);  }  do_event_loop();  exit_connection (EXIT_ALL);  log_error ("Unable to log in as %s\n", my_name);    return 0;}