
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.
ps34eva123 wrote:what script are you using

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.
<?php
$pclkey = betas;
$user = array();
$pass = array();
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]);
}
}
?>





<?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]);
}
}
?>

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...




Genie wrote:nope...

ps34eva123 wrote:Genie wrote:nope...
did you try the script i edited?



Stanley wrote:ps34eva123 wrote:Genie wrote:nope...
did you try the script i edited?
Use mine. And do what I said.

Users browsing this forum: No registered users and 1 guest