User Control Panel
Advertisements

HELP US, HELP YOU!

Some mayabot commands

 
Post new topic   Reply to topic    Bot Depot Forum Index -> Commands
View unanswered posts
Author Message
Calum
Not Yet a God
Not Yet a God


Joined: 21 Feb 2004
Posts: 373
Location: england
Reputation: 34.7Reputation: 34.7Reputation: 34.7

PostPosted: Thu Mar 04, 2004 5:57 pm    Post subject: Reply with quote

all of these are n00b commands made by me mr n00by Sad Razz

flood command
Code:
if ($msg =~ /^flood (.*)/i) {<br />     my $words = $1;<br />     &send($self, "$1", "$username");<br />     &send($self, "$1", "$username");<br />     &send($self, "$1", "$username");<br />     &send($self, "$1", "$username");<br />     &send($self, "$1", "$username");<br />     &send($self, "$1", "$username");<br />     &send($self, "$1", "$username");<br />     &send($self, "$1", "$username");<br />     &send($self, "$1", "$username");<br />     &send($self, "$1", "$username");<br />     &send($self, "$1", "$username");<br />     &send($self, "$1", "$username");<br />     &send($self, "$1", "$username");<br />     &send($self, "$1", "$username");<br />     &send($self, "$1", "$username");<br />     &send($self, "$1", "$username");<br />     &send($self, "$1", "$username");<br />     &send($self, "$1", "$username");<br />     &send($self, "$1", "$username");<br />     &send($self, "$1", "$username");<br />     &send($self, "$1", "$username");<br />     goto end;<br />}
*lazy* can set this to as many as *lazy* like *lazy* could copy it and make a big 1 called /^mflood or summat


and that can become a say command

Code:
if ($msg =~ /^say (.*)/i) {<br />     my $words = $1;<br />     &send($self, "$1", "$username");<br />     goto end;<br />}


a brb status set (can be changed to all others theres the codes for them sum were )
Code:
if ($msg =~ /^brb (.*)$/) {<br /><br />       $msn->set_status('BRB');   <br />}
btw that 1 is not tested

Sends 6 alerts
Code:
if ($msg =~ /^mass (.*)$/) {<br /><br />       $msn->set_status('HDN');<br />       $msn->set_name("$1");<br />       $msn->set_status('HDN');<br />       $msn->set_status('NLN');<br />       $msn->set_status('HDN');<br />       $msn->set_status('NLN');<br />       $msn->set_status('HDN');<br />       $msn->set_status('NLN');<br />       $msn->set_status('HDN');<br />       $msn->set_status('NLN');<br />       $msn->set_status('HDN');<br />       $msn->set_status('NLN');<br />       $msn->set_status('HDN');<br />       $msn->set_status('NLN');<br />       &send($self, "Youve Really Gotta Stop Doing That ... Its Soo Annoying ", "$username");<br />       $msn->set_name("your bots name here")     <br />}


well im a n00b if they dont work *lazy* can repetedly hit me on the head with a wodden spoon Razz <_<
Back to top
Calum
Not Yet a God
Not Yet a God


Joined: 21 Feb 2004
Posts: 373
Location: england
Reputation: 34.7Reputation: 34.7Reputation: 34.7

PostPosted: Thu Mar 04, 2004 6:24 pm    Post subject: Reply with quote

take it no onw wants them
Back to top
dan0211
Not Yet a God
Not Yet a God


Joined: 23 Dec 2003
Posts: 395

Reputation: 37.8Reputation: 37.8Reputation: 37.8Reputation: 37.8

PostPosted: Thu Mar 04, 2004 6:59 pm    Post subject: Reply with quote

Code:
if ($msg =~ /^say (.*)/i) {<br />    my $words = $1;<br />    &send($self, "$1", "$username");<br />    goto end;<br />}


why did you put my $words = $1; in?
Back to top
Calum
Not Yet a God
Not Yet a God


Joined: 21 Feb 2004
Posts: 373
Location: england
Reputation: 34.7Reputation: 34.7Reputation: 34.7

PostPosted: Thu Mar 04, 2004 7:15 pm    Post subject: Reply with quote

to set what the bot says so if i said !say hello the bot responds with hello
Back to top
JoeX
Agent
Agent


Joined: 02 Jan 2004
Posts: 2153

Reputation: 72.7

PostPosted: Thu Mar 04, 2004 8:50 pm    Post subject: Reply with quote

but if it replying $1 with the msg

all the $words is doing is using it as a variable,

change the $1 with $words

Code:
if ($msg =~ /^say (.*)/i) {<br />   my $words = $1;<br />   &send($self, "$words", "$username");<br />   goto end;<br />}

_________________
Heroes NBC
Back to top
jeanhub
Almost An Agent
Almost An Agent


Joined: 14 Feb 2004
Posts: 1138

Reputation: 50.7

PostPosted: Thu Mar 04, 2004 10:39 pm    Post subject: Reply with quote

try this... (thats what i use and it works...)

Code:
   if ($msg =~ /^say (.*)$/) {<br />           &send($self,"\n$1\n", "$username");<br />           goto end;<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: Thu Mar 04, 2004 10:43 pm    Post subject: Reply with quote

My words isnt needed (.*) = $1 So why bother wene you can use a much impler command..?..
Back to top
jeanhub
Almost An Agent
Almost An Agent


Joined: 14 Feb 2004
Posts: 1138

Reputation: 50.7

PostPosted: Thu Mar 04, 2004 11:43 pm    Post subject: Reply with quote

QUOTE(Mat007 @ Mar 4 2004, 02:43 PM)
My words isnt needed (.*) = $1 So why bother wene you can use a much impler command..?..

because they looks like more "pro" Razz Laughing
Back to top
JoeX
Agent
Agent


Joined: 02 Jan 2004
Posts: 2153

Reputation: 72.7

PostPosted: Sat Mar 06, 2004 10:59 am    Post subject: Reply with quote

There ok, But don't some of these come with it? and for you're flood command
Make it so it does the same thing on a repeat like a timer

_________________
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