mIRC Home    About    Download    Register    News    Help

Print Thread
#186109 17/09/07 04:26 PM
Joined: Aug 2007
Posts: 41
P
Panic Offline OP
Ameglian cow
OP Offline
Ameglian cow
P
Joined: Aug 2007
Posts: 41
Well Scripters i am after a script making if you can. Well when a Op, Master or Owner enters a room (access levels below) i want it to say <nick> Has entered the room - <nick> Is a CrazyMan <op , master or owner>

OP = 100
MASTER = 400
OWNER = 500

I don't know if that helps

Thanks in advance

Panic


CrazyMan IRC Bot Admin
IRC UnGoWa Support
NeoBlab Server-Admin
Chat Operator
Panic #186113 17/09/07 06:49 PM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
What address type are you using when you add these access levels? Or are you just adding them by nicknames?

Panic #186145 18/09/07 04:03 AM
Joined: Aug 2005
Posts: 1,052
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Aug 2005
Posts: 1,052
Originally Posted By: Panic
Well Scripters i am after a script making if you can. Well when a Op, Master or Owner enters a room (access levels below) i want it to say <nick> Has entered the room - <nick> Is a CrazyMan <op , master or owner>

OP = 100
MASTER = 400
OWNER = 500

I don't know if that helps

Thanks in advance

Panic


Depending how the host was added as levels you might have to change the nth of the $address($nick,NTH) call

Code:
on *:JOIN:#:{
  if ($level($address($nick,3)) == 100) { msg # $+(<,$nick,>) Has entered the room - $+(<,$nick,>) Is a <OP> }
  elseif ($level($address($nick,3)) == 400) { msg # $+(<,$nick,>) Has entered the room - $+(<,$nick,>) Is a <MASTER> }
  elseif ($level($address($nick,3)) == 500) { msg # $+(<,$nick,>) Has entered the room - $+(<,$nick,>) Is a <OWNER> }
}


Example $address($nick,3) returns *!*EMAILNICK@HOST.COM

so if your Access Levels are added by $address(nick,3) then this script will work other wise change the nth of the $address line according to your entry levels.


Code:
if $reality > $fiction { set %sanity Sane }
Else { echo -a *voices* }
Panic #186148 18/09/07 04:58 AM
Joined: Jun 2006
Posts: 508
D
Fjord artisan
Offline
Fjord artisan
D
Joined: Jun 2006
Posts: 508
Code:
on !*:join:#:{
  if $findtok(100 400 500,$ulevel,32) {
    msg # $+(<,$nick,> Has entered the room - <,$nick,> Is a CrazyMan <,$gettok(op master owner,$v1,32),>)
  }
}


Link Copied to Clipboard