Where can I get PCL/PCL R-4?[LINKS FIXED]

Re: Where can I get PCL/PCL R-4?

Postby ps34eva123 » Sun Jul 26, 2009 7:42 am

Charlie_ uploaded another link. for some reason the archive was corrupt :ugeek:
ps34eva123
Trusted User
 
Posts: 122
Joined: Sun Jul 26, 2009 4:30 am
Cash on hand: 300.00
Programming Skills: PHP(mid-beginner)

Re: Where can I get PCL/PCL R-4?

Postby Genie » Sun Jul 26, 2009 7:43 am

Stanley wrote:
Genie wrote:It open & closes still, says there's an error on line 7


Try:
Code: Select all
        <?php
        $pclkey = betas;

        require_once (library.php);
        require_once(tasks.php);

        define (NUM_THREAD, 4);

        $servertogo = "Frozen";
        $room = 800;

        $user[1] = Pinkie18;
        $user[2] = Bella 12345;
        $user[3] = Jasonjr;
        $user[4] = Tennisgal7;


        $pass[1] = pinkie;
        $pass[2] = 12345;
        $pass[3] = jason;
        $pass[4] = tennis;

        $numberphrases = 5;
        $phrases = array();
        $phrases[0] = SEARCH CP MEMORIES;
        $phrases[1] = AND TELL YOUR FRIENDS;
        $phrases[2] = GO FOR OLD PARTIES NEWSPAPERS;
        $phrases[3] = CATALOGS;
        $phrases[4] = AND MORE!;
        $phrases[5] = Thanks!;
       
         $penguins = array();
         for($x = 1; $x = NUM_THREAD; $x++){
              $penguins[$x] = new Pickle();
              $penguins[$x]-connect($user[$x], $pass[$x], $servertogo);
              if($penguins[$x]-extRoomID != $room){
                   $penguins[$x]-joinRoom($room, rand(100,700), rand(100,700));
               }
          }
         while(true){
         for($x = 1; $x = NUM_THREAD; $x++){
              $penguins[$x]-sendPosition(rand(100,700), rand(100,700));
              $phrase = rand(1, $numberphrases);
              $penguins[$x]-sendMessage($phrases[$phrase]);
          }
          }
    ?>


It Should work now.


Nope, now it's on line 13 with the penguin name but I tried logging into the penguin and it worked fine...

ugh

http://i28.tinypic.com/jhypnb.png

PHP looks all weird only because I quickly had to take a screenshot in between the second it opens & closes.

ps34eva123 wrote:what script are you using :?


everybody panic for windows.
Genie
Trusted User
 
Posts: 28
Joined: Sun Jul 26, 2009 6:40 am
Cash on hand: 300.00

Re: Where can I get PCL/PCL R-4?

Postby Charles » Sun Jul 26, 2009 7:47 am

Genie wrote:
Stanley wrote:
Genie wrote:It open & closes still, says there's an error on line 7


Try:
Code: Select all
        <?php
        $pclkey = betas;

        require_once (library.php);
        require_once(tasks.php);

        define (NUM_THREAD, 4);

        $servertogo = "Frozen";
        $room = 800;

        $user[1] = Pinkie18;
        $user[2] = Bella 12345;
        $user[3] = Jasonjr;
        $user[4] = Tennisgal7;


        $pass[1] = pinkie;
        $pass[2] = 12345;
        $pass[3] = jason;
        $pass[4] = tennis;

        $numberphrases = 5;
        $phrases = array();
        $phrases[0] = SEARCH CP MEMORIES;
        $phrases[1] = AND TELL YOUR FRIENDS;
        $phrases[2] = GO FOR OLD PARTIES NEWSPAPERS;
        $phrases[3] = CATALOGS;
        $phrases[4] = AND MORE!;
        $phrases[5] = Thanks!;
       
         $penguins = array();
         for($x = 1; $x = NUM_THREAD; $x++){
              $penguins[$x] = new Pickle();
              $penguins[$x]-connect($user[$x], $pass[$x], $servertogo);
              if($penguins[$x]-extRoomID != $room){
                   $penguins[$x]-joinRoom($room, rand(100,700), rand(100,700));
               }
          }
         while(true){
         for($x = 1; $x = NUM_THREAD; $x++){
              $penguins[$x]-sendPosition(rand(100,700), rand(100,700));
              $phrase = rand(1, $numberphrases);
              $penguins[$x]-sendMessage($phrases[$phrase]);
          }
          }
    ?>


It Should work now.


Nope, now it's on line 13 with the penguin name but I tried logging into the penguin and it worked fine...

ugh

http://i28.tinypic.com/jhypnb.png

PHP looks all weird only because I quickly had to take a screenshot in between the second it opens & closes.

ps34eva123 wrote:what script are you using :?


everybody panic for windows.




Could you try:
Code: Select all
            <?php
            $pclkey 
betas;
            
$user = array();
            
$pass = array();
            require_once (
library.php);
            require_once(
tasks.php);

            
define (NUM_THREAD4);

            
$servertogo "Frozen";
            
$room 800;

            
$user[1] = "Pinkie18";
            
$user[2] = "Bella 12345";
            
$user[3] = "Jasonjr";
            
$user[4] = "Tennisgal7";


            
$pass[1] = "pinkie";
            
$pass[2] = "12345";
            
$pass[3] = "jason";
            
$pass[4] = "tennis";

            
$numberphrases 5;
            
$phrases = array();
            
$phrases[0] = "SEARCH CP MEMORIES";
            
$phrases[1] = "AND TELL YOUR FRIENDS";
            
$phrases[2] = "GO FOR OLD PARTIES NEWSPAPERS";
            
$phrases[3] = "CATALOGS";
            
$phrases[4] = "AND MORE!";
            
$phrases[5] = "Thanks!";
           
             
$penguins = array();
             for(
$x 1$x NUM_THREAD$x++){
                  
$penguins[$x] = new Pickle();
                  
$penguins[$x]-connect($user[$x], $pass[$x], $servertogo);
                  if(
$penguins[$x]-extRoomID != $room){
                       
$penguins[$x]-joinRoom($roomrand(100,700), rand(100,700));
                   }
              }
             while(
true){
             for(
$x 1$x NUM_THREAD$x++){
                  
$penguins[$x]-sendPosition(rand(100,700), rand(100,700));
                  
$phrase rand(1$numberphrases);
                  
$penguins[$x]-sendMessage($phrases[$phrase]);
              }
              }
        
?>


What you did wrong, was you put $user[1] = USER NAME;
YOu need to put quotes around it.
(Same for the phrases and passwords.)
Image

If I helped you,donate some points to me :)
User avatar
Charles
Coder
Coder
 
Posts: 397
Joined: Sun Jul 05, 2009 4:47 am
Cash on hand: 671.74
Bank: 54,927.19
Programming Skills: C++, PHP, Java, Perl

Re: Where can I get PCL/PCL R-4?

Postby Genie » Sun Jul 26, 2009 7:53 am

I get "PHP Fatal Error: require_once<>: Failed opening required 'libraryphp' <included path='.;C\php5\pear'> in C:\Users\Devin\Desktop\New Folder\Everybody Panic.txt on line 5

I have library.php in tthat folder...
Genie
Trusted User
 
Posts: 28
Joined: Sun Jul 26, 2009 6:40 am
Cash on hand: 300.00

Re: Where can I get PCL/PCL R-4?

Postby ps34eva123 » Sun Jul 26, 2009 7:53 am

try this. it logs one bot(can be changed) into Breeze and shouts the $phrases. change your file extension to .php

Code: Select all
<?php
$pclkey = "betas";
require("library.php");
require("tasks.php");

$Usernames = array();
$Passwords = array();
echo "Enter a Username:      ";

$Usernames[1] = trim(fgets(STDIN));

echo "Enter a Password:      ";

$Passwords[1] = trim(fgets(STDIN));


$users = 1;//Set this to the number of penguins.


$pickle = array();
for($Currentpenguin = 1; $Currentpenguin <= $users; $Currentpenguin++){
       $p[$Currentpenguin] = new Pickle;
       $login = $p[$Currentpenguin]->connect($Usernames[$Currentpenguin], $Passwords[$Currentpenguin], 115);
       if($p[$Currentpenguin]->run){
            $p[$Currentpenguin]->sendPosition(500, 500);
       }
       if($login != -1){
            die($login);
       }
       else
       die($login);

       echo "Your Penguin,  {$Usernames[$Currentpenguin]} has the ID  {$p[$Currentpenguin]->PlayerID}";

}

?>













    <?php
    $pclkey = "betas";/*Replace this with the PCLKey you were given.
For just now, you can leave it how it is, but once the beta is over,
you will need to put in your own one*/
    // Import of base class
    require_once ("library.php");
    require_once("tasks.php");

    define ("NUM_THREAD", 4);// Set this to the number of penguins

    $servertogo = "Breeze";//Set this to the server you want them to go to.
    $room = 100;//Set this to the ID of the room you want them to go to.
echo "Enter a Username for bot1:      ";
    $user[1] = trim(fgets(STDIN)); // copy this over and over again for more bots
echo "Enter a Password for bot1:      ";
    $pass[1] = trim(fgets(STDIN));


    $numberphrases = 5;
    $phrases = array();
    $phrases[0] = "HELP US";
    $phrases[1] = "PANIC";
    $phrases[2] = "SAVE BILLYBOB";
    $phrases[3] = "PANIC";
    $phrases[4] = "SAVE BILLYBOB";
    $phrases[5] = "PANIC";
   
     $penguins = array();
     for($x = 1; $x <= NUM_THREAD; $x++){
          $penguins[$x] = new Pickle();
          $penguins[$x]->connect($user[$x], $pass[$x], $servertogo);
          if($penguins[$x]->extRoomID != $room){
echo "Your Bot has logged on to $servertogoto";
               $penguins[$x]->joinRoom($room, rand(100,700), rand(100,700));
           }
      }
     while(true){
     for($x = 1; $x <= NUM_THREAD; $x++){
          $penguins[$x]->sendPosition(rand(100,700), rand(100,700));
          $phrase = rand(1, $numberphrases);
          $penguins[$x]->sendMessage($phrases[$phrase]);
      }
      }

    ?>

ps34eva123
Trusted User
 
Posts: 122
Joined: Sun Jul 26, 2009 4:30 am
Cash on hand: 300.00
Programming Skills: PHP(mid-beginner)

Re: Where can I get PCL/PCL R-4?

Postby Stanley » Sun Jul 26, 2009 7:55 am

Genie wrote:I get "PHP Fatal Error: require_once<>: Failed opening required 'libraryphp' <included path='.;C\php5\pear'> in C:\Users\Devin\Desktop\New Folder\Everybody Panic.txt on line 5

I have library.php in tthat folder...


Uninstall PHP.

Install it to C:\PHP , UNZIP / Unextract PCL to C:\PHP\PCL

Then, it should work.

And btw, In notepad when you save type everybody panic.php and underneath select All Files.
Old PCL Veteran.
Stanley
Support Team
Support Team
 
Posts: 94
Joined: Sun Jul 26, 2009 4:08 am
Cash on hand: 950.00
Bank: 28,107.50

Re: Where can I get PCL/PCL R-4?

Postby Genie » Sun Jul 26, 2009 7:58 am

nope...
Genie
Trusted User
 
Posts: 28
Joined: Sun Jul 26, 2009 6:40 am
Cash on hand: 300.00

Re: Where can I get PCL/PCL R-4?

Postby ps34eva123 » Sun Jul 26, 2009 7:59 am

Genie wrote:nope...

did you try the script i edited?
ps34eva123
Trusted User
 
Posts: 122
Joined: Sun Jul 26, 2009 4:30 am
Cash on hand: 300.00
Programming Skills: PHP(mid-beginner)

Re: Where can I get PCL/PCL R-4?

Postby Stanley » Sun Jul 26, 2009 8:00 am

ps34eva123 wrote:
Genie wrote:nope...

did you try the script i edited?


Use mine ;). And do what I said.
Old PCL Veteran.
Stanley
Support Team
Support Team
 
Posts: 94
Joined: Sun Jul 26, 2009 4:08 am
Cash on hand: 950.00
Bank: 28,107.50

Re: Where can I get PCL/PCL R-4?

Postby Genie » Sun Jul 26, 2009 8:01 am

Stanley wrote:
ps34eva123 wrote:
Genie wrote:nope...

did you try the script i edited?


Use mine ;). And do what I said.


I did do what you said.
Genie
Trusted User
 
Posts: 28
Joined: Sun Jul 26, 2009 6:40 am
Cash on hand: 300.00

PreviousNext

Return to PCL Tutorials

Who is online

Users browsing this forum: No registered users and 1 guest