mIRC Home    About    Download    Register    News    Help

Print Thread
How would I seperate Action and Text ina response? #145552 24/03/06 07:58 PM
Joined: Feb 2006
Posts: 47
F
FireDivine Offline OP
Ameglian cow
OP Offline
Ameglian cow
F
Joined: Feb 2006
Posts: 47
Like:

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

?

Re: How would I seperate Action and Text ina response? #145553 24/03/06 08:05 PM
Joined: Feb 2005
Posts: 681
M
mIRCManiac Offline
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.
Re: How would I seperate Action and Text ina respo #145554 24/03/06 08:15 PM
Joined: Feb 2006
Posts: 47
F
FireDivine Offline OP
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?

Re: How would I seperate Action and Text ina respo #145555 24/03/06 08:20 PM
Joined: Feb 2005
Posts: 681
M
mIRCManiac Offline
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.

Re: How would I seperate Action and Text ina respo #145556 24/03/06 08:23 PM
Joined: Feb 2006
Posts: 47
F
FireDivine Offline OP
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.

Re: How would I seperate Action and Text ina respo #145557 24/03/06 08:27 PM
Joined: Feb 2005
Posts: 681
M
mIRCManiac Offline
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.
Re: How would I seperate Action and Text ina respo #145558 24/03/06 08:33 PM
Joined: Feb 2006
Posts: 47
F
FireDivine Offline OP
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.

Re: How would I seperate Action and Text ina respo #145559 24/03/06 08:35 PM
Joined: Feb 2005
Posts: 681
M
mIRCManiac Offline
Fjord artisan
Offline
Fjord artisan
M
Joined: Feb 2005
Posts: 681
Try this

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

Re: How would I seperate Action and Text ina respo #145560 24/03/06 08:35 PM
Joined: Feb 2006
Posts: 47
F
FireDivine Offline OP
Ameglian cow
OP Offline
Ameglian cow
F
Joined: Feb 2006
Posts: 47
haha. Funny.

Re: How would I seperate Action and Text ina respo #145561 24/03/06 08:41 PM
Joined: Dec 2002
Posts: 1,245
M
MikeChat Offline
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?

Re: How would I seperate Action and Text ina respo #145562 24/03/06 08:43 PM
Joined: Feb 2006
Posts: 47
F
FireDivine Offline OP
Ameglian cow
OP Offline
Ameglian cow
F
Joined: Feb 2006
Posts: 47
Yeah.

Re: How would I seperate Action and Text ina respo #145563 24/03/06 09:04 PM
Joined: Dec 2002
Posts: 1,245
M
MikeChat Offline
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!
  }
}

Re: How would I seperate Action and Text ina respo #145564 24/03/06 10:19 PM
Joined: Aug 2005
Posts: 525
S
schaefer31 Offline
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*.

Re: How would I seperate Action and Text ina respo #145565 24/03/06 11:41 PM
Joined: Dec 2002
Posts: 1,245
M
MikeChat Offline
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.