mIRC Home    About    Download    Register    News    Help

Print Thread
#38824 29/07/03 06:57 AM
Joined: Jul 2003
Posts: 16
M
Pikka bird
OP Offline
Pikka bird
M
Joined: Jul 2003
Posts: 16
on 1:TEXT:*:*hello*:#: {

echo -s hellows

}

can help me ,to fix

thnx

#38825 29/07/03 07:42 AM
Joined: May 2003
Posts: 21
X
Ameglian cow
Offline
Ameglian cow
X
Joined: May 2003
Posts: 21
ON *:TEXT:{
if ($1- == Hello) {
echo -s Hellows


-
Xc0n
#38826 29/07/03 08:24 AM
Joined: May 2003
Posts: 215
Fjord artisan
Offline
Fjord artisan
Joined: May 2003
Posts: 215
That won't work..

Code:
on *:TEXT:*:#: {
  if ($1 ==  Hello) { .msg $chan Hello $nick }
}


- Jason
#38827 29/07/03 08:29 AM
Joined: Dec 2002
Posts: 1,237
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Dec 2002
Posts: 1,237
Unless i'm mistaken they want the word hellows to echo in the status window based on looking at the original code

Code:
  
on *:TEXT:*:#: {  
  if ($1 ==  Hello) { echo -s hellows }
}


But if they meant to reply back hello, then yes what you posted will work. But they didn't say.

Last edited by The_Game; 29/07/03 08:31 AM.
#38828 29/07/03 08:33 AM
Joined: May 2003
Posts: 215
Fjord artisan
Offline
Fjord artisan
Joined: May 2003
Posts: 215
Well what I displayed was just code that I have saved for when people ask for help with an auto-response script... So I'll blame that mistake on cut+paste.


- Jason
#38829 29/07/03 08:44 AM
Joined: Dec 2002
Posts: 1,237
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Dec 2002
Posts: 1,237
No big deal, besides, I wouldn't look at it as a mistake from c/p, you may be right I may be wrong. Either way the user has both examples to work with. smile

#38830 29/07/03 04:55 PM
Joined: Dec 2002
Posts: 397
A
Fjord artisan
Offline
Fjord artisan
A
Joined: Dec 2002
Posts: 397
on *:TEXT:*:*: {
if (hello isin $1) { msg # Hello $nick }
}


Need amazing web design for low price: http://www.matrixn3t.net
#38831 29/07/03 05:04 PM
Joined: Dec 2002
Posts: 2,985
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 2,985
The user wants to echo to channels, not every window type so why have you replaced # with *? If you are gunna abuse people, at least answer the question properly.

#38832 29/07/03 07:31 PM
Joined: Dec 2002
Posts: 1,321
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Dec 2002
Posts: 1,321
on 1:TEXT:*:*hello*:#:{ echo -s hellows }

See that extra *: you have in there? Remove it and it will work.

on 1:TEXT:*hello*:#:{ echo -s hellows }

Why did everyone reformat what was asked for? ($1 == Hello) is not the same as :*hello*:, though (*hello* iswm $1-) or (hello isin $1-) would be. MaGoNeGrO only wanted to echo to status the word hellows, presumably to test it, if the word hello appeared anywhere on the line, (leaving aside the mistaken copy/paste described above).


DALnet: #HelpDesk and #m[color:#FF0000]IR[color:#EEEE00]C

Link Copied to Clipboard