User Control Panel
Advertisements

HELP US, HELP YOU!

Police

 
Post new topic   Reply to topic    Bot Depot Forum Index -> Commands
View unanswered posts
Author Message
purcelly
God Like
God Like


Joined: 10 Jun 2004
Posts: 560
Location: North West, England
Reputation: 35.1Reputation: 35.1Reputation: 35.1Reputation: 35.1

PostPosted: Fri Dec 31, 2004 7:22 pm    Post subject: Reply with quote

in elsif

Code:
#Made By Purcelly <br />#For Innington<br /><br />if($msg =~ /^!Police/)<br />{<br />&send($self,"Here Is One Excuse To Get Rid Of The Police:");<br /> my @quotes = ("OOOOhh your a policeman?!?!? I thought you were just another speeder!!! I was trying to get away so you didnt hit me!",<br /> ""I'm sorry officer but dunken donuts is right ahead not here." ",<br /> "Sorry officer, I was trying to kill a bug under my gas pedal (For speeding tickets)",<br /> "If I was speeding, you probably where speeding to catch me, so how bout we forget abut the whole thing!",<br /> "I'm sorry I was speeding officer but I have diarrhea. ",<br /> "So that’s what those signs are there for. ",<br /> "(Running a stop sign) I’m sorry officer; I thought the sign said POTS. (Dyslexic)",<br /> "I'm sorry, Officer, but my child has to use the bathroom",<br /> "My wife is pregnant, I'm trying to get to the hospital ASAP! (great for speeding tickets)");<br /> $result = $quotes[int(rand(scalar(@quotes)))];<br /> $self->sendmsg("$result", Font => "Arial",Color => '017151',Effect => "B");}<br />}
Back to top
mat007
Almost An Agent
Almost An Agent


Joined: 12 Jan 2004
Posts: 1375

Reputation: 15.8Reputation: 15.8
votes: 2

PostPosted: Fri Dec 31, 2004 7:41 pm    Post subject: Reply with quote

Weres the elsif statement?
Back to top
Cer
Upgraded Agent
Upgraded Agent


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

PostPosted: Fri Dec 31, 2004 7:42 pm    Post subject: Reply with quote

QUOTE(purcelly-tech @ Dec 31 2004, 02:22 PM)
in elsif

Code:
#Made By Purcelly <br />#For Innington<br /><br />if($msg =~ /^!Police/)<br />{<br />&send($self,"Here Is One Excuse To Get Rid Of The Police:");<br /> my @quotes = ("OOOOhh your a policeman?!?!? I thought you were just another speeder!!! I was trying to get away so you didnt hit me!",<br /> ""I'm sorry officer but dunken donuts is right ahead not here." ",<br /> "Sorry officer, I was trying to kill a bug under my gas pedal (For speeding tickets)",<br /> "If I was speeding, you probably where speeding to catch me, so how bout we forget abut the whole thing!",<br /> "I'm sorry I was speeding officer but I have diarrhea. ",<br /> "So that’s what those signs are there for. ",<br /> "(Running a stop sign) I’m sorry officer; I thought the sign said POTS. (Dyslexic)",<br /> "I'm sorry, Officer, but my child has to use the bathroom",<br /> "My wife is pregnant, I'm trying to get to the hospital ASAP! (great for speeding tickets)");<br /> $result = $quotes[int(rand(scalar(@quotes)))];<br /> $self->sendmsg("$result", Font => "Arial",Color => '017151',Effect => "B");}<br />}

Did you even test that?

Quote:
""I'm sorry officer but dunken donuts is right ahead not here." ",


Quote:
""I'm sorry officer but dunken donuts is right ahead not here." ",


(blue = quoted strings, red = Perl "codes").

That wouldn't work. Test things before you post them. Razz

_________________
Current Site (2008) http://www.cuvou.com/
Back to top
mattaustin
Sentinel
Sentinel


Joined: 19 Jul 2004
Posts: 556
Location: Los Angeles, CA
Reputation: 50.7
votes: 1

PostPosted: Sat Jan 01, 2005 4:24 am    Post subject: Reply with quote

instead of posting the same code (that dosnt work) over and over again with diffrent lists......why not make one post with the sample code (working) and all your lists. and just update that post with your lists.....
_________________
[ matt ]
Back to top
Addict
Not Yet a God
Not Yet a God


Joined: 21 Jan 2004
Posts: 473

Reputation: 34.4Reputation: 34.4Reputation: 34.4

PostPosted: Sat Jan 01, 2005 5:21 am    Post subject: Reply with quote

Alright, i'll help here.

Code:
if($message =~ /^!Police/){<br />$self->sendMessage("Here Is One Excuse To Get Rid Of The Police:");<br /><br />my @quotes = ("OOOOhh your a policeman?!?!? I thought you were just another speeder!!! I was trying to get away so you didn\'t hit me!",<br />"\"I\'m sorry officer but dunken donuts is right ahead not here.\" ",<br />"Sorry officer, I was trying to kill a bug under my gas pedal (For speeding tickets)",<br />"If I was speeding, you probably where speeding to catch me, so how about we forget abut the whole thing!",<br />"I\'m sorry I was speeding officer but I have diarrhea. ",<br />"So that\’s what those signs are there for. ",<br />"(Running a stop sign) I\’m sorry officer; I thought the sign said POTS. (Dyslexic)",<br />"I\'m sorry, Officer, but my child has to use the bathroom",<br />"My wife is pregnant, I\'m trying to get to the hospital ASAP! (great for speeding tickets)",<br />);<br /><br />my $result = $quotes[int(rand(scalar(@quotes)))];<br />$self->sendmsg("$result", Font => "Arial",Color => '017151',Effect => "B");<br />}


This code works. Smile
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