mIRC Home    About    Download    Register    News    Help

Print Thread
#14278 06/03/03 01:15 AM
Joined: Feb 2003
Posts: 20
D
Ameglian cow
OP Offline
Ameglian cow
D
Joined: Feb 2003
Posts: 20
i kinda get the if then commands but whats wrong with this line?

i'm try to check if nick is #lvl and to do the command if they are and not to if they're not

on 4:TEXT:#topic*:*:if {$nick isuser 4} {/topic $chan $2} else {/notice $nick test}

#14279 06/03/03 02:04 AM
Joined: Dec 2002
Posts: 204
K
Fjord artisan
Offline
Fjord artisan
K
Joined: Dec 2002
Posts: 204
well, try this, this is your code in the correct format:
Code:
on 4:TEXT:#topic*:*:{
  if ($nick isuser 4) { topic $chan $2 } 
  else { notice $nick test }
}

notice i changed the {} after the IF statement to (), this is the correct format. Also, there is no ISUSER in mirc, if you mean a regular user (no op/voice), then it would be ISREG. I am assuming you dont want ops to to this, otherwise it would be ISOP for ops (@), or ISVO for voices(+). If this isnt working or isnt what ya want please reply and state what the command is supposed to do smile


keek: Scots - intr.v. keeked, keekĀ·ing, keeks
To peek; peep.
#14280 06/03/03 03:17 AM
Joined: Mar 2003
Posts: 4
W
Self-satisified door
Offline
Self-satisified door
W
Joined: Mar 2003
Posts: 4
A remote beginning with 'on 4:...' will only be triggered by lvl 4 users and higher, there is no need to indentify the user level twice.

if you want the command ONLY to be triggered by lvl 4 users and not by users with higher access lvl then use

on +4:TEXT:...

This will trigger the event only for lvl4 users.


Link Copied to Clipboard