mIRC Home    About    Download    Register    News    Help

Print Thread
#207481 18/12/08 03:57 PM
Joined: Sep 2008
Posts: 37
R
razor32 Offline OP
Ameglian cow
OP Offline
Ameglian cow
R
Joined: Sep 2008
Posts: 37
Hi,

I was looking for a channel screamer/msg sender where you type a command like !scream <#chan> <msg> and it would send that message to that channel (if the bot is in that channel) and in the chan the msg was sent it would say '<nick> has sent a message from another channel: msg'.

Can anyone help?

Thanks.

Joined: Jun 2007
Posts: 933
5
Hoopy frood
Offline
Hoopy frood
5
Joined: Jun 2007
Posts: 933
Code:
on *:TEXT:!scream *:#:{
  if ($me ison $$2) { msg $$2 $+(<,$nick,>) has sent a message from another channel: $$3- }
}

Alternatively you can replace "another channel:" with "$chan $+ :" to specify the channel that it came from.

Last edited by 5618; 18/12/08 04:44 PM.
Joined: Sep 2008
Posts: 37
R
razor32 Offline OP
Ameglian cow
OP Offline
Ameglian cow
R
Joined: Sep 2008
Posts: 37
Thanks

But i just gave it ago and it doesn't seem to work confused

Joined: Jun 2007
Posts: 933
5
Hoopy frood
Offline
Hoopy frood
5
Joined: Jun 2007
Posts: 933
Originally Posted By: razor32
Thanks

But i just gave it ago and it doesn't seem to work confused

Do you have the script loaded in Remote (Alt+R)?

Are you using other scripts (maybe previous !scream script attemps or complete mIRC-addons)?

What does this code return?
Code:
//echo -a $script(0)

Joined: Sep 2008
Posts: 37
R
razor32 Offline OP
Ameglian cow
OP Offline
Ameglian cow
R
Joined: Sep 2008
Posts: 37
Originally Posted By: 5618
Originally Posted By: razor32
Thanks

But i just gave it ago and it doesn't seem to work confused

Do you have the script loaded in Remote (Alt+R)?

Are you using other scripts (maybe previous !scream script attemps or complete mIRC-addons)?

What does this code return?
Code:
//echo -a $script(0)

Yeah i have it in remote.

The only other scripts is trivia, google and yahoo.

3 smile

Joined: Jun 2007
Posts: 933
5
Hoopy frood
Offline
Hoopy frood
5
Joined: Jun 2007
Posts: 933
So yeah, 3 script files loaded. Try this...

Paste the script at the very top of your script window.

If it doesn't work, remove it and go the the next script (Alt+R > View)

Paste it at the top again and repeat.

If it *does* start to work, you'll at least know which of those scripts is the guilty party (and can maybe do something about it).

P.S. You *are* aware of the fact you can't trigger remote scripts yourself (meaning from the same running client)?

Joined: Sep 2008
Posts: 37
R
razor32 Offline OP
Ameglian cow
OP Offline
Ameglian cow
R
Joined: Sep 2008
Posts: 37
Originally Posted By: 5618
So yeah, 3 script files loaded. Try this...

Paste the script at the very top of your script window.

If it doesn't work, remove it and go the the next script (Alt+R > View)

Paste it at the top again and repeat.

If it *does* start to work, you'll at least know which of those scripts is the guilty party (and can maybe do something about it).

P.S. You *are* aware of the fact you can't trigger remote scripts yourself (meaning from the same running client)?

I'll give that a try.

Yeah, I use wIRC for the scripts and mIRC for normal use.

Thanks


Link Copied to Clipboard