mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Feb 2006
Posts: 47
F
Ameglian cow
OP Offline
Ameglian cow
F
Joined: Feb 2006
Posts: 47
Like:

/describe $chan *Takes something* /msg $chan Thanks!

?

Joined: Feb 2005
Posts: 681
M
Fjord artisan
Offline
Fjord artisan
M
Joined: Feb 2005
Posts: 681
//describe $chan *Takes something* | msg $chan Thanks!

..or put it on the next line in the script

Code:
{
  describe $chan *Takes something*
  msg $chan Thanks!
}


~ Edit ~
If the command is in a script, it doesn't need the /

Last edited by mIRCManiac; 24/03/06 08:11 PM.
Joined: Feb 2006
Posts: 47
F
Ameglian cow
OP Offline
Ameglian cow
F
Joined: Feb 2006
Posts: 47
That makes it go to the next line, how do you make it to where it stays in the same line?

Joined: Feb 2005
Posts: 681
M
Fjord artisan
Offline
Fjord artisan
M
Joined: Feb 2005
Posts: 681
If you look again at the first line of my last post you will see

//describe $chan *Takes something* | msg $chan Thanks!

..all on one line with the | separating the commands.

Joined: Feb 2006
Posts: 47
F
Ameglian cow
OP Offline
Ameglian cow
F
Joined: Feb 2006
Posts: 47
Well I am using that in this:

if ($4- == cookie) { //describe $chan $+(*,Takes $4-,*) | msg $chan Thanks for the cookie! }

and the result is:

* StupBot *Takes cookie*
<StupBot> Thanks for the cookie!

Which is two lines.

Joined: Feb 2005
Posts: 681
M
Fjord artisan
Offline
Fjord artisan
M
Joined: Feb 2005
Posts: 681
How do you want it to turn out?

* StupBot *Takes cookie* <StupBot> Thanks for the cookie!

??

if ($4- == cookie) describe $chan *Takes cookie* $+(<,$me,>) Thanks for the cookie!

Last edited by mIRCManiac; 24/03/06 08:31 PM.
Joined: Feb 2006
Posts: 47
F
Ameglian cow
OP Offline
Ameglian cow
F
Joined: Feb 2006
Posts: 47
No!

That caused:
* StupBot *Takes cookie* <StupBot> Thanks for the cookie

I don't want StupBot to be put in the middle of the sentence, I want the "Thanks for the cookie" to be on the same line, but be a msg instead of a describe.

Joined: Feb 2005
Posts: 681
M
Fjord artisan
Offline
Fjord artisan
M
Joined: Feb 2005
Posts: 681
Try this

/describe $chan thinks his master is on his own.

Joined: Feb 2006
Posts: 47
F
Ameglian cow
OP Offline
Ameglian cow
F
Joined: Feb 2006
Posts: 47
haha. Funny.

Joined: Dec 2002
Posts: 1,245
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Dec 2002
Posts: 1,245
are you talking about the Color of the text?
where action text is maybe dark green and you want the "thanks" to be normal text color?

Joined: Feb 2006
Posts: 47
F
Ameglian cow
OP Offline
Ameglian cow
F
Joined: Feb 2006
Posts: 47
Yeah.

Joined: Dec 2002
Posts: 1,245
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Dec 2002
Posts: 1,245
as far as I know there is no other way than to color the text the same as you have your normal text and background.
this will look fine to you, but if anyone else has different colors it wont match theirs.
using ctrl+o ($chr(15)) or ctrl+k ($chr(3)) will not stop the color, as its not colored in the same way to the program.

so here is some
Code:
on *:ACTION:Give*:#:{
  if ($me == StupBot) {
  if ($4- == cookie ) { describe $chan $+(*,Takes $4-,*) 1,0SNARF! }
  else if ($4- == pepsi) { describe $chan $+(*,Takes $4-,*) 1,0Thanks! }
  else if ($4- == coke) { describe $chan $+(*,Takes $4-,*) 01,1I like Pepsi better... Unless it's Vanilla Coke! }
  else /msg $chan No thanks!
  }
}

Joined: Aug 2005
Posts: 525
S
Fjord artisan
Offline
Fjord artisan
S
Joined: Aug 2005
Posts: 525
This does basically the same thing, but just put to control k's (with no color value) after *takes cookie*.

Joined: Dec 2002
Posts: 1,245
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Dec 2002
Posts: 1,245
go ahead and test it, I did and it doesnt do anything.
quote from my earlier post in this thread
Quote:

using ctrl+o ($chr(15)) or ctrl+k ($chr(3)) will not stop the color, as its not colored in the same way to the program.


Link Copied to Clipboard