Best Club Penguin Bots
Hello, you are not logged in. You may log in or register.
Latest topics
» Anybody else come to this forum for the memories?
Tue Aug 29, 2017 11:47 am by sudhi578

» This forum died
Thu Mar 30, 2017 11:10 pm by _Skate_

» Introduce yourselves!
Fri Jan 23, 2015 7:21 pm 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

Improve Command Bot

View previous topic View next topic Go down

Improve Command Bot

Post  _Skate_ on Thu Mar 03, 2011 12:51 am

Heres some simple things that could easly be added to the command bot script to improve it.
if($said =~ /left/i) {
Code:
$self->doSendFrame(19);
}
Code:
if($said =~ /forward/i) {
$self->doSendFrame(21);
}

Code:
if($said =~ /right/i) {
$self->doSendFrame(23);
}

Simply what it does is when you say left the bot will sit left, and when you say right it will sit right, and last if you say forward it will sit looking up. Just add this anywhere in a command bot script thats next to the the ifsaid:do script parts. Make sure to leave a space at the top and bottom.


Last edited by 43nînjâ17 on Mon Sep 17, 2012 12:22 am; edited 1 time in total (Reason for editing : You forgot the code command)

_Skate_

Posts : 4
Reputation : 0
Join date : 2011-03-03

Back to top Go down

Re: Improve Command Bot

Post  Ozzyozborn13 on Thu Mar 03, 2011 4:45 pm

_Skate_ wrote:Heres some simple things that could easly be added to the command bot script to improve it.
if($said =~ /left/i) {
$self->doSendFrame(19);
}

if($said =~ /forward/i) {
$self->doSendFrame(21);
}

if($said =~ /right/i) {
$self->doSendFrame(23);
}

Simply what it does is when you say left the bot will sit left, and when you say right it will sit right, and last if you say forward it will sit looking up. Just add this anywhere in a command bot script thats next to the the ifsaid:do script parts. Make sure to leave a space at the top and bottom.
This is already in my script and i think a few other scripts.

_________________
[You must be registered and logged in to see this image.]



[You must be registered and logged in to see this link.]

[You must be registered and logged in to see this link.]



[You must be registered and logged in to see this link.]
avatar
Ozzyozborn13
Admin

Posts : 211
Reputation : 19
Join date : 2010-08-28

http://www.youtube.com/ozzyozborn13

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