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,327
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
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 }
}


New username: hixxy
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


Code:
//if ( khaled isgod ) echo yes | else echo no
Joined: Mar 2003
Posts: 1,271
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Mar 2003
Posts: 1,271
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...


DALnet #Helpdesk
I hear and I forget. I see and I remember. I do and I understand. -Confucius
Joined: Jan 2003
Posts: 28
H
Ameglian cow
Offline
Ameglian cow
H
Joined: Jan 2003
Posts: 28
I hope you tried /remote on


===================================
Live my life for a day.. I'll show you where I've been.

Link Copied to Clipboard