User Control Panel
Advertisements

HELP US, HELP YOU!

Keep an Idiot Occupied

 
Post new topic   Reply to topic    Bot Depot Forum Index -> Commands
View unanswered posts
Author Message
Cer
Upgraded Agent
Upgraded Agent


Joined: 03 Feb 2004
Posts: 3776
Location: Michigan
Reputation: 146.9
votes: 4

PostPosted: Mon Apr 12, 2004 5:02 pm    Post subject: Reply with quote

This is a pointless command to keep an idiot occupied.

This is how it goes...
Quote:
AiChaos: !idiot
CodyCKS: Are you sure you want to learn how to keep an idiot occupied?
AiChaos: Yes.
CodyCKS: Are you absolutely positive?
AiChaos: Yes.
CodyCKS: I'm about to tell you. Do you really want to know?
AiChaos: YES!
CodyCKS: If you really want to know, say so now.
AiChaos: "So"
CodyCKS: Alright, give the word one more time and I'll reveal the secret.
AiChaos: TELL ME!
CodyCKS: Congratulations, you now know the secret to keeping an idiot occupied.


Anyhow, here it is.
Code:
# COMMAND NAME:<br />#   IDIOT<br /># DESCRIPTION:<br />#   Keep an idiot occupied.<br /># COMPATIBILITY:<br />#   FULLY COMPATIBLE<br /><br />sub idiot {<br />   # Get variables from the shift.<br />   my ($self,$client,$msg,$listener) = @_;<br /><br />   # See what number they're on.<br />   if ($chaos->{_users}->{$client}->{_idiot}->{step} == 1) {<br />  $chaos->{_users}->{$client}->{_idiot}->{step} = 2;<br />  return "Are you absolutely positive?";<br />   }<br />   elsif ($chaos->{_users}->{$client}->{_idiot}->{step} == 2) {<br />  $chaos->{_users}->{$client}->{_idiot}->{step} = 3;<br />  return "I'm about to tell you. Do you really want to know?";<br />   }<br />   elsif ($chaos->{_users}->{$client}->{_idiot}->{step} == 3) {<br />  $chaos->{_users}->{$client}->{_idiot}->{step} = 4;<br />  return "If you really want to know, say so now.";<br />   }<br />   elsif ($chaos->{_users}->{$client}->{_idiot}->{step} == 4) {<br />  $chaos->{_users}->{$client}->{_idiot}->{step} = 5;<br />  return "Alright, give the word one more time and I'll reveal the secret.";<br />   }<br />   elsif ($chaos->{_users}->{$client}->{_idiot}->{step} == 5) {<br />  # Delete the variables.<br />  delete $chaos->{_users}->{$client}->{callback};<br />  delete $chaos->{_users}->{$client}->{_idiot}->{step};<br /><br />  return "Congratulations, you now know the secret to keeping an idiot occupied.";<br />   }<br />   else {<br />  # Set the callback.<br />  $chaos->{_users}->{$client}->{callback} = "idiot";<br /><br />  # Set the step to #1.<br />  $chaos->{_users}->{$client}->{_idiot}->{step} = 1;<br /><br />  # Return the reply.<br />  return "Are you sure you want to learn how to keep an idiot occupied?";<br />   }<br />}<br />1;

_________________
Current Site (2008) http://www.cuvou.com/
Back to top
..::BIGmouth( )::..
God Like
God Like


Joined: 05 Feb 2004
Posts: 801

Reputation: 44.1Reputation: 44.1Reputation: 44.1Reputation: 44.1

PostPosted: Mon Apr 12, 2004 5:11 pm    Post subject: Reply with quote

lol, Nice command cer, can I convert it to andromeda. Very Happy
Back to top
Cer
Upgraded Agent
Upgraded Agent


Joined: 03 Feb 2004
Posts: 3776
Location: Michigan
Reputation: 146.9
votes: 4

PostPosted: Mon Apr 12, 2004 5:18 pm    Post subject: Reply with quote

Sure, go ahead.
_________________
Current Site (2008) http://www.cuvou.com/
Back to top
Lord Sephiroth
Member
Member


Joined: 02 Jan 2004
Posts: 111

Reputation: 30.8Reputation: 30.8Reputation: 30.8

PostPosted: Mon Apr 12, 2004 5:25 pm    Post subject: Reply with quote

that is soo cool
Back to top
..::BIGmouth( )::..
God Like
God Like


Joined: 05 Feb 2004
Posts: 801

Reputation: 44.1Reputation: 44.1Reputation: 44.1Reputation: 44.1

PostPosted: Mon Apr 12, 2004 5:29 pm    Post subject: Reply with quote

Here it is for andromeda. Smile
Code:
sub idiot<br />{<br /><br /># Get variables from the shift.<br /><br />my ($bot, $self, $user, $msg) = @_;<br /><br />if ($bot->{users}->{$user}->{_idiot}->{step} == 1) {<br /> $bot->{users}->{$user}->{_idiot}->{step} = 2;<br /> return "Are you absolutely positive?";<br />}<br />elsif ($bot->{users}->{$user}->{_idiot}->{step} == 2) {<br /> $bot->{users}->{$user}->{_idiot}->{step} = 3;<br /> return "I'm about to tell you. Do you really want to know?";<br />}<br />elsif ($bot->{users}->{$user}->{_idiot}->{step} == 3) {<br /> $bot->{users}->{$user}->{_idiot}->{step} = 4;<br /> return "If you really want to know, say so now.";<br />}<br />elsif ($bot->{users}->{$user}->{_idiot}->{step} == 4) {<br /> $bot->{users}->{$user}->{_idiot}->{step} = 5;<br /> return "Alright, give the word one more time and I'll reveal the secret.";<br />}<br />elsif ($bot->{users}->{$user}->{_idiot}->{step} == 5) {<br /> # Delete the variables.<br /> delete $bot->{users}->{$user}->{callback};<br /> delete $bot->{users}->{$user}->{_idiot}->{step};<br /><br /> return "Congratulations, you now know the secret to keeping an idiot occupied.";<br />}<br />else {<br /> # Set the callback.<br /> $bot->{users}->{$user}->{callback} = "idiot";<br /> # Set the step to #1.<br /> $bot->{users}->{$user}->{_idiot}->{step} = 1;<br /><br /> # Return the reply.<br /> return "Are you sure you want to learn how to keep an idiot occupied?";<br />}<br /><br />}<br /><br />{<br />   <br />};
Back to top
jeanhub
Almost An Agent
Almost An Agent


Joined: 14 Feb 2004
Posts: 1138

Reputation: 50.7

PostPosted: Mon Apr 12, 2004 5:37 pm    Post subject: Reply with quote

LMAO Cer its a nice command Very Happy good work
Back to top
eric256
The Keymaker
The Keymaker


Joined: 03 May 2006
Posts: 2292
Location: Colorado
Reputation: 47Reputation: 47Reputation: 47Reputation: 47Reputation: 47

PostPosted: Mon Apr 12, 2004 6:11 pm    Post subject: Reply with quote

Slightly better version. Switched to an array of answers so that you can add more easily. Just add them in there and they work. No need to change the numbers at all. Oh and i indented the code! that makes it look all nice and tidy.
Code:
sub idiot<br />{<br />    my ($bot, $self, $user, $msg) = @_;<br />    $bot->{users}->{$user}->{_idiot}->{step} ||= 0;<br />    $bot->{users}->{$user}->{_idiot}->{step}++;<br />    $bot->{users}->{$user}->{callback} = "idiot";<br />    <br />    my @steps = (<br />                  "Are you sure you want to learn how to keep an idiot occupied?",<br />                  "Are you absolutely positive?",<br />                  "I'm about to tell you. Do you really want to know?",                <br />                  "If you really want to know, say so now.",<br />                  "Alright, give the word one more time and I'll reveal the secret.",<br />                  "Congratulations, you now know the secret to keeping an idiot occupied.",<br />                  );<br />    my $msg = @steps[$bot->{users}->{$user}->{_idiot}->{step} - 1];<br />    if ($bot->{users}->{$user}->{_idiot}->{step} > scalar(@steps)) {<br />       # Delete the variables.<br />       delete $bot->{users}->{$user}->{callback};<br />       delete $bot->{users}->{$user}->{_idiot}->{step}; <br />    }<br />    return $msg;<br />}

_________________
Eric256
Proud previous owner and current admin of Bot-depot.com
Back to top
mojo
Newbie
Newbie


Joined: 10 Apr 2004
Posts: 16
Location: England ;o
Reputation: 25.6Reputation: 25.6Reputation: 25.6

PostPosted: Mon Apr 12, 2004 7:59 pm    Post subject: Reply with quote

Nice command cer! Now just to find and idiot to test it *wonders off...*

Dan.
Back to top
JoeX
Agent
Agent


Joined: 02 Jan 2004
Posts: 2153

Reputation: 72.7

PostPosted: Wed Apr 14, 2004 3:55 pm    Post subject: Reply with quote

QUOTE(..::BIGmouth( )::.. @ Apr 12 2004, 09:11 AM)
lol, Nice command cer, can I convert it to andromeda. Very Happy

Why does everyone say converting it:s all it is is changing the top bits not really converting is it:S

_________________
Heroes NBC
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Bot Depot Forum Index -> Commands All times are GMT
Page 1 of 1

 



Protected by phpBB Security phpBB-TweakS
phpBB Security Has Blocked 9 Exploit Attempts.
Antispam Captcha Mod by phpbb-security.com
Powered by phpBB © 2001, 2005 phpBB Group