Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $pclkey = "betas";
- require "library.php";
- require "tasks.php";
- $Username = "48ghg";
- $Password = "bedbed";
- $Server = 100;
- $i = 0;
- $p = new Pickle;
- $e_servs = array(171, 215, 315, 411);
- $p->connect($Username, $Password, $Server);
- if ($p->run) {
- $handle = fopen("info.txt", "a");
- echo "Penguin info getter started\n";
- echo "What room is the penguin in: (ID)\n";
- $room = trim(fgets(STDIN));
- if (is_numeric($room)) {
- echo "What is the penguin's name:\n";
- $peng = trim(fgets(STDIN));
- if ($peng) {
- $packet = $p->grabRoom($roomID);
- if (stripos($packet, $name)) {
- $penguins = explode("%", $packet);
- foreach ($penguins as $data) {
- if (stripos($data, $name)) {
- $info = explode("|", $data);
- $id = $info[0];
- $name = $info[1];
- $color = $info[3];
- $head = $info[4];
- $face = $info[5];
- $neck = $info[6];
- $body = $info[7];
- $hand = $info[8];
- $feet = $info[9];
- $pin = $info[10];
- }
- }
- echo "ID: ". $id ."\n Name: ". $name."\n Color: ". $color."\n Head: ". $head
- ."\n Face: ". $face."\n Neck: ". $neck."\n Body: ". $body."\n Hand: ". $hand
- ."\n Feet: ". $feet."\n Pin: ". $pin ."\n";
- fwrite($handle, "ID: $id
- Name: $name
- Color: $color
- Head: $head
- Face: $face
- Neck: $neck
- Body: $body
- Hand: $hand
- Feet: $feet
- Pin: $pin");
- fclose($handle);
- while(true) {}
- }
- }
- }
- } else {
- echo "room must be a number, closing due to you not listening\n";
- sleep(5);
- die();
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement