mIRC Home    About    Download    Register    News    Help

Print Thread
#84797 31/05/04 08:25 PM
Joined: May 2004
Posts: 132
N
NoPleX Offline OP
Vogon poet
OP Offline
Vogon poet
N
Joined: May 2004
Posts: 132
I got this script! its use a command named !showcommads and i got another script where you write /msg XsN|Bot !help !deactivate ban protection
and i want it to /notice the nick!
Here is the thing! I go 2 kinds of users in my remote! I got users level 10 and users level 11!
I want the script to /notice one thing to level 11 users and another to level 10 users how do i make it do that?




on 10,11:text:!help*:?:{
if ($2 == !deactivate) && ($3 == ban) && ($4 == protection) {
if (What to put here?) {
/notice $nick $chan You are level 10!
}
if (whar to put here?) {
/notice $nick $chan You are level 11!
}
}
}

#84798 31/05/04 08:36 PM
Joined: Feb 2004
Posts: 714
Z
Hoopy frood
Offline
Hoopy frood
Z
Joined: Feb 2004
Posts: 714
For event with different levels you could do this:
Code:
on [color:blue]*[/color]:TEXT:!help:?: {
 if ([color:red]$ulevel[/color] == 10) { commands }
 elseif ([color:red]$ulevel[/color] == 11) { commands }
}
The $ulevel identifier returns the leve of the user in your user list.

10:*!*@John.com -- Level 10
11:*!*@Mary.net -- Level 11

Note that i have removed the access in the on Text line.

Hope this helps smile

Zyzzyx.

#84799 31/05/04 09:00 PM
Joined: May 2004
Posts: 132
N
NoPleX Offline OP
Vogon poet
OP Offline
Vogon poet
N
Joined: May 2004
Posts: 132
okay thanks laugh

Can you type

($ulevel == 11,10)

and then its bouth?

Last edited by NoPleX; 31/05/04 09:03 PM.
#84800 31/05/04 09:08 PM
Joined: Feb 2004
Posts: 714
Z
Hoopy frood
Offline
Hoopy frood
Z
Joined: Feb 2004
Posts: 714
Sure smile

Code:
if ($ulevel == 10) [color:blue]||[/color] ($ulevel == 11) { commands }
The || means OR.. so this means that if the userlevel is 10 or 11, do the commands.

Cheers,
Zyzzy smile

#84801 31/05/04 09:13 PM
Joined: May 2004
Posts: 132
N
NoPleX Offline OP
Vogon poet
OP Offline
Vogon poet
N
Joined: May 2004
Posts: 132
oh ok not so hard to understand wink thanks

#84802 04/06/04 03:21 AM
Joined: Nov 2003
Posts: 2,321
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,321
if ($istok(10 11,$ulevel,32)) { }


Link Copied to Clipboard