Advertisement
Guest User

Parefgr3

a guest
May 24th, 2010
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.80 KB | None | 0 0
  1.             <?php
  2.  
  3.             require("pickle.php");
  4.            
  5.            
  6.  
  7.             $Username = ""; // Put Username Here
  8.             $Password = ""; // Put Password Here
  9.             $Server = trim(fgets(STDIN));
  10.  
  11.             $rooms_array = array("100", "110", "111", "120", "121", "130", "200", "210", "220", "221", "230", "300", "310", "320", "330", "340", "400", "410", "411", "800", "801", "802", "803", "804", "805", "806", "807", "808", "809", "421", "422", "423");
  12.             $peng_array = array();
  13.             $peng_array['ID'] = array();
  14.             $PID = 0;
  15.             $room_i = 1;
  16.             $pid_c = 0;
  17.  
  18.             $p = new Pickle;
  19.             $p->connect($Username, $Password, $Server);
  20.             $p->joinRoom(320, 0, 0);
  21.             psleep(3);
  22.             while($room_i <= 32){
  23.             $p->joinRoom($roons_array[$room_i], 0, 0);
  24.             while($PID <= 50){
  25.             psleep(3);
  26.             $RawPack = $p->readRawPacket();
  27.             if(strpos($pack, "xt%sp")){
  28.             $ID = $p->stribet($RawPack, "%xt%sp%" . $p->intRoomID . "%", "%");
  29.             for($p_x=1;$p_x<=count($peng_array['ID']);$p_x++){
  30.             if($ID === $peng_array['ID'][$p_x]){
  31.             echo("\n" . $peng_array['ID'][$p_x] . " is now already been listed to the database. Skipping P" . $peng_array['ID'][$p_x] . "....\n");
  32.             psleep(3);
  33.             break;
  34.             } else {
  35.             $peng_array['ID'][$pid_c] = $ID;
  36.             echo("\nServer:" . $p->servername . "\nRoomID($i):" . $p->extRoomID . "\nPengID($i):$ID\n");
  37.             $wri = fopen("peng_database.txt", "w+");
  38.             fwrite($wri, "\r\nServer:" . $p->servername . "\r\nRoomID($i):" . $p->extRoomID . "\r\nPengID($i):$ID\r\n");
  39.             fclose($wri);
  40.             psleep(3);
  41.             $pid_c++;
  42.             $PID++;
  43.             }
  44.             }
  45.             } else {
  46.             psleep(3);
  47.             }
  48.             $PID = 0;
  49.             }      
  50.             $room_i++;
  51.             }
  52.  
  53.             ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement