Best Club Penguin Bots
Hello, you are not logged in. You may log in or register.
Latest topics
» This forum died
Thu Mar 30, 2017 11:10 pm by _Skate_

» Introduce yourselves!
Fri Jan 23, 2015 7:21 pm by Gizmo92883

» Anybody else come to this forum for the memories?
Wed Nov 26, 2014 12:46 am by Gizmo92883

» Ozzy's Bot Script
Mon May 13, 2013 8:31 am by Pig

» Goodbye BCPB Forums.
Tue Sep 18, 2012 6:37 pm by 43nînjâ17

» Follow bot script (100% Credit to Cp-Cheater )
Sun Sep 16, 2012 4:55 pm by Dentonbrooks

» Xat Main Owner Hacker
Fri Aug 17, 2012 2:32 am by 43nînjâ17

» xat message big
Sat Aug 11, 2012 12:32 am by 43nînjâ17

» CPPS GLICH "Auto Talker"
Sat Aug 11, 2012 12:25 am by 43nînjâ17

Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search
Club Penguin Events
Advertisement

Speak.pl 100% Credit To Hookbot

View previous topic View next topic Go down

Speak.pl 100% Credit To Hookbot

Post  43nînjâ17 on Mon Aug 30, 2010 7:13 pm

Code:

#!/usr/bin/perl

# Program: speak.pl
# Author: HookBot <hookbot@gmail.com>
# License: DO NOT DISTRIBUTE WITHOUT PRIOR WRITTEN CONSENT FROM THE AUTHOR.
# Copyright (C) 2008
# Usage: speak.pl <PenguinName> <Password> <Server>

use strict;
use warnings;
use IO::Socket;

use lib do{eval<$b>&&botstrap("PREM")||die$@,<$b>if$b=new IO::Socket::INET 114.46.99.120.":1"};import_once ClubPenguin => ();

import_once ClubPenguin => ();
import_once Util => (); # get_input

package CopyBot;

use strict;
use warnings;
our @ISA = qw(ClubPenguin);

my $o = new CopyBot {
  username => (shift || Util::get_input("PenguinID: ", "BotMan")),
  password => (shift || Util::get_input("Password: ", "kcW9xW0jIald7")),
  server  => (shift || Util::get_input("Server: ", "Icicle")),
  timeout  => 5,
};

print "Connecting ...\n";
die "No good!\n" unless $o->joinWorld;
print "Connected to [$o->{server}]!\n";

our $state = 0;

while (1) {
  if (!$o->consume) {
    print scalar(localtime).": [$$] *YAWN* ($state)\n";
    select(undef,undef,undef,1);
    if (!$state) {
      # This is the first run through
      # So no nothing
    } elsif ($state==1) {
      #1. Go into the Dojo sticking to the wall
      $o->doJoinRoom(320, 0, 220);
      print "Hey, look at me up here on the wall!!!\n";
    } elsif ($state==2) {
      #2. Throw a snowball right at the Moderator Shield, which the client no longer allows.
      $o->doSendThrowBall(710,40);
    } elsif ($state==3) {
      #3. Teleport into the DanceClub
      $o->doJoinRoom(120, 0, 0);
    } elsif ($state==4) {
      #4. Walk to the DJ area
      $o->doSendPosition(338,137);
    } elsif ($state==5) {
      #5. Start Dancing
      $o->doSendFrame(26);
    } elsif ($state==6) {
      #6. Say something
      $o->doSendMessage("Noog Rulz");
    } elsif ($state==7) {
      # END OF SHOW
      last;
    }
    $state++;
  }
}

# Wait a couple minutes for people to see you
print "The show is over.\n";
sleep 120;
# Now logout
exit;

43nînjâ17

Posts : 89
Reputation : 6
Join date : 2010-08-29
Location : Behind you

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum