mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Dec 2003
Posts: 12
A
Pikka bird
OP Offline
Pikka bird
A
Joined: Dec 2003
Posts: 12
OK, i think my computer hates me, i've done some real simple scripts, some dont work at all other dont workon my computer but when i give them to a freind the DO!!!!! for example

<works on a friends> on *:TEXT:hello:#:/msg $chan Hello $nick and welcome to #chan

<doesnt work at all> on *:TEXT:*hey*:#:/msg $chan Hey to you to $nick glad to see your in $chan

is there just something really small that i'm doing wrong? i Paste them in remotes and thats it, whats wrong!? And i always use * instead of access levels antway

Joined: Nov 2003
Posts: 2,321
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,321
you cannot have 2 on *:text's in the same file..

use:

on *:text:*:#:{
if ($1 == hello) { msg # hi $nick }
elseif (*hey* iswm $1-) { msg # hey $nick }
}

Joined: Dec 2002
Posts: 774
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Dec 2002
Posts: 774
You can have two on *:text: events in same file and they will work as expected...

so the problem is elsewhere

Joined: Mar 2003
Posts: 1,256
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Mar 2003
Posts: 1,256
Just as long as the second event is not covered by the first.
The events given here should both work. However,

on *:TEXT:*:#: ...
on *:TEXT:*text*:#: ...

Here the second one won't work.

on *:TEXT:*text*:#: ...
on *:TEXT:*:#: ...

And here they both work, except the second one will not trigger if the text contains the word "text" because that's already covered by the first...

Joined: Jan 2003
Posts: 28
H
Ameglian cow
Offline
Ameglian cow
H
Joined: Jan 2003
Posts: 28
I hope you tried /remote on


Link Copied to Clipboard