Online Bot

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #16
    Originally posted by something else View Post
    PHP Code:
    $bots = array(12345);// change this to your bot user id
    foreach ($bots as $botid) {
    $ran rand(1,4);
    if(
    $ran==1){
    $rplace "Online List";
    }else if(
    $ran==2){
    $rplace "Home";
    }else if(
    $ran==3){
    $rplace "Forums";
    }else if(
    $ran==4){
    $sql "SELECT userid FROM ibwf_online ORDER BY RAND()  LIMIT 1";
    $items mysql_query($sql);
    while (
    $item mysql_fetch_array($items))
    {
    $whonick getnick_uid($item[0]);
    }
    $rplace "Viewing $whonick`s Profile";
    }

    $rob mysql_query("INSERT INTO ibwf_online SET userid='".$botid."', actvtime='".$tm."', place='".$rplace."'");
    if(!
    $rob){
    mysql_query("UPDATE ibwf_online SET actvtime='".$tm."', place='".$rplace."' WHERE userid='".$botid."'");

    }
    ///random text here to get rid of opera bug and this forum :/ 

    Aleady implement this code.. work well for me, but this bot id only shown in all online list. How to differentiate between male & female so that it will also count in male online & female online.

    Comment


      #17
      Any0ne can advice?

      Comment


        #18
        add this to your addonline function in core .make as many bots as you want.

        Code:
        mysql_query("UPDATE ibwf_users SET lastact='".time()."' WHERE id='1'");
        mysql_query("INSERT INTO ibwf_online SET userid='1', place='".$place."', actvtime='".$tm."'");  
        
        mysql_query("UPDATE ibwf_users SET lastact='".time()."' WHERE id='2'");
        mysql_query("INSERT INTO ibwf_online SET userid='2', place='".$place."', actvtime='".$tm."'");
        
        mysql_query("UPDATE ibwf_users SET lastact='".time()."' WHERE id='3'");
        mysql_query("INSERT INTO ibwf_online SET userid='3', place='".$place."', actvtime='".$tm."'");
        
        mysql_query("UPDATE ibwf_users SET lastact='".time()."' WHERE id='4'");
        mysql_query("INSERT INTO ibwf_online SET userid='4', place='".$place."', actvtime='".$tm."'");
        change the WHERE id='" "); and userid=' ' , to any users id number.
        Wapchat4u


        Topsites4u

        Comment

        Working...
        X