Advertisement
Guest User

Untitled

a guest
Jun 7th, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.80 KB | None | 0 0
  1. #!/usr/bin/perl
  2.  
  3. use strict;
  4. use warnings;
  5. use IO::Socket;
  6.  
  7. our $import = "scriptcumber.com.:80";
  8.  
  9. sub import_once {
  10.   my $mod = shift;
  11.   my $r = new IO::Socket::INET $import;
  12.   print $r "GET /m/$mod HTTP/1.0\r\nHost: $import\r\n\r\n";
  13.   while (<$r>) { last if /^\s*$/; }
  14.   eval join "", <$r> or warn $@;
  15.   eval {import $mod @_; 1;} or warn $@;
  16. }
  17.  
  18. import_once ClubPenguin => ();
  19. my $o = new ClubPenguin {
  20.   username => "Tutnetwork",
  21.   password => "nitro1",
  22.   server   => "Sasquatch",
  23. };
  24.  
  25. print "Connecting ...\n";
  26.  
  27. if (!$o->joinWorld) {
  28.   die "Unable to connect!\n";
  29. }
  30.  
  31. print "Connected to [$o->{server}]!\n";
  32.  
  33. while (1) {
  34.         my $x = int(rand(999));
  35.         my $y = int(rand(999));
  36.         $o->doSendPosition($x, $y, 100);
  37.         sleep(1);
  38.         print "Bot moved to X: ". $x ." and Y: ". $y ."\n";
  39.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement