User Control Panel
Advertisements

HELP US, HELP YOU!

set color

 
Post new topic   Reply to topic    Bot Depot Forum Index -> Ideas
View unanswered posts
Author Message
mathieu2005
Young One
Young One


Joined: 23 Dec 2004
Posts: 76

Reputation: 18.4Reputation: 18.4

PostPosted: Mon Feb 21, 2005 12:56 am    Post subject: Reply with quote

i put all my command like this example (, Color...)
if ($msg eq'!say (.*)'){
$self->sendmsg("$1", Color => '$color');
}

how i do for set $color with a command like
if ($msg eq'!set color (.*)'){
...... plz can someone help me
Back to top
Cer
Upgraded Agent
Upgraded Agent


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

PostPosted: Mon Feb 21, 2005 1:17 am    Post subject: Reply with quote

QUOTE(mathieu2005 @ Feb 20 2005, 07:56 PM)
i put all my command like this example (, Color...)
if ($msg eq'!say (.*)'){
$self->sendmsg("$1", Color => '$color');
}

how i do for set $color with a command like
if ($msg eq'!set color (.*)'){
...... plz can someone help me

Your last post said "do it for me plz" and this post is exactly the same except you changed it to "plz can someone help me"

Here is help: If the command is to set a global color throughout the entire bot, use a global variable $color, and then set that variable to any color with a command. If it's for per-user things, use a hash.

There. That's help. I didn't even have to give you any codes. See if you can figure it out on your own.

_________________
Current Site (2008) http://www.cuvou.com/
Back to top
mathieu2005
Young One
Young One


Joined: 23 Dec 2004
Posts: 76

Reputation: 18.4Reputation: 18.4

PostPosted: Mon Feb 21, 2005 1:19 am    Post subject: Reply with quote

oh sorry im a newb and everybody know that just close and delete this topic
Back to top
eric256
The Keymaker
The Keymaker


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

PostPosted: Mon Feb 21, 2005 3:58 am    Post subject: Reply with quote

QUOTE(mathieu2005 @ Feb 20 2005, 05:19 PM)
oh sorry im a newb and everybody know that just close and delete this topic

A few tips.
1. Use code tags so that your code is formated nice. Its that code button in the post window.
2. Read your posts after writing them. If they aren't readable then stop and rewrite them. I've never even read your posts because they are such a mess. If you can't take the time to make them look nice, why should I take the time to help?

_________________
Eric256
Proud previous owner and current admin of Bot-depot.com
Back to top
mathieu2005
Young One
Young One


Joined: 23 Dec 2004
Posts: 76

Reputation: 18.4Reputation: 18.4

PostPosted: Mon Feb 21, 2005 11:19 pm    Post subject: Reply with quote

ok i want to put all my command like (this example)with , Color => '$color'
if ($msg eq'!say (.*)'){
$self->sendmsg("Your Message:$1", Color => '$color');
}
but i want to set $color by a commands can someone help me to do this.
Back to top
draget
Not Yet a God
Not Yet a God


Joined: 29 Dec 2004
Posts: 367
Location: Australia
Reputation: 32.2Reputation: 32.2Reputation: 32.2

PostPosted: Mon Feb 21, 2005 11:43 pm    Post subject: Reply with quote

download maya, it includes a set colour command.

you can also set the style permanently, download the eecho bot that comes with msn.pm to see this
Back to top
mathieu2005
Young One
Young One


Joined: 23 Dec 2004
Posts: 76

Reputation: 18.4Reputation: 18.4

PostPosted: Mon Feb 21, 2005 11:59 pm    Post subject: Reply with quote

nothing apear just say the command because i try but doesn work
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: Tue Feb 22, 2005 2:10 am    Post subject: Reply with quote

You have to set your $color variable.

Like this:
Code:
if($message=~/^!say (.*) - (.*)$/i){<br />my $1 = $msg;<br />my $2 = $color;<br />$self->sendMessage("Your message: $msg",Color => $color);<br />}


Simple. Wink
Back to top
alienz
Almost An Agent
Almost An Agent


Joined: 22 Mar 2004
Posts: 1436
Location: Mars
Reputation: 55.7

PostPosted: Tue Feb 22, 2005 6:28 am    Post subject: Reply with quote

He means "Just give me the code , because I can't do it"
_________________
Check out Botworld! A dev resource for things bot.
Downloads, articles, news, fourm and more.
http://botworld.marzopolis.com
Back to top
draget
Not Yet a God
Not Yet a God


Joined: 29 Dec 2004
Posts: 367
Location: Australia
Reputation: 32.2Reputation: 32.2Reputation: 32.2

PostPosted: Tue Feb 22, 2005 10:26 am    Post subject: Reply with quote

Was me above as 'Guest'.

Please don't demand things.

Something like 'Any Ideas?' is much nicer.


good luck in future!
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Bot Depot Forum Index -> Ideas 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