Best Club Penguin Bots
Hello, you are not logged in. You may log in or register.

Join the forum, it's quick and easy

Best Club Penguin Bots
Hello, you are not logged in. You may log in or register.
Best Club Penguin Bots
Would you like to react to this message? Create an account in a few clicks or log in to continue.
Latest topics
» Add me on discord if you want to catch up!
Speak.pl 100% Credit To Hookbot EmptyTue Feb 05, 2019 5:36 am by Gizmo92883

» Anybody else come to this forum for the memories?
Speak.pl 100% Credit To Hookbot EmptyTue Jun 12, 2018 12:07 am by Cooldude21

» This forum died
Speak.pl 100% Credit To Hookbot EmptyThu Mar 30, 2017 11:10 pm by _Skate_

» Introduce yourselves!
Speak.pl 100% Credit To Hookbot EmptyFri Jan 23, 2015 7:21 pm by Gizmo92883

» Ozzy's Bot Script
Speak.pl 100% Credit To Hookbot EmptyMon May 13, 2013 8:31 am by Pig

» Goodbye BCPB Forums.
Speak.pl 100% Credit To Hookbot EmptyTue Sep 18, 2012 6:37 pm by 43nînjâ17

» Follow bot script (100% Credit to Cp-Cheater )
Speak.pl 100% Credit To Hookbot EmptySun Sep 16, 2012 4:55 pm by Dentonbrooks

» Xat Main Owner Hacker
Speak.pl 100% Credit To Hookbot EmptyFri Aug 17, 2012 2:32 am by 43nînjâ17

» xat message big
Speak.pl 100% Credit To Hookbot EmptySat Aug 11, 2012 12:32 am by 43nînjâ17

Navigation
 Portal
 Index
 Memberlist
 Profile
 FAQ
 Search
Club Penguin Events
Advertisement

Speak.pl 100% Credit To Hookbot

Go down

Speak.pl 100% Credit To Hookbot Empty Speak.pl 100% Credit To Hookbot

Post  43nînjâ17 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

Back to top

- Similar topics

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