mIRC Homepage

popup help needed

Posted By: bunar

popup help needed - 22/10/03 02:16 PM

i have maded on nicklist popup this:

$iif($me isop #, Op modes, $style(2) Op modes)
.$iif($me isop #, ( +o ) deop, $style(2) ( +o ) op):/op $1 $2 $3
.$iif($me isop #, ( -o ) deop, $style(2) ( -o ) deop):/deop $1 $2 $3

and it enables those options IF i am OP in chan and disables if i am NOT op in chan... and thatz ok

but i have same thing but with halfop

and i tried to combine --> if $me ishop with
kick and ban options

now better described:

when i am op i can kick/ban, wehn i am not then i cant, i tried same with helpop mode BUT then it wont work when i am op and vice versa... it works ONLY IF i am OP OR when i am HOP, not with both cases:

code for kick/ban:

$iif($me isop #, Kick/Ban, $style(2) Kick/Ban)

but i cant make combined

$iif($me isop #, Kick/Ban, $style(2) Kick/Ban)
$iif($me ishop #, Kick/Ban, $style(2) Kick/Ban)

so it cant simultaneusly work both...

if some1 understnd me and can help i would be gratefull

Posted By: stimpy

Re: popup help needed - 22/10/03 02:32 PM

I could be wrong here :

I think this will do the trick :

Code:
 
$iif($me ishop #, Op modes, $style(2) Op modes)
.$iif($me isop #, ( +o ) deop, $style(2) ( +o ) op):/op $1 $2 $3
.$iif($me isop #, ( -o ) deop, $style(2) ( -o ) deop):/deop $1 $2 $3
.$iif($me ishop #, Kick/Ban, $style(2) Kick/Ban): /ban $1 $2 $3 | /kick $1 $2 $3


If i'm right mIRC will also show HOP commands if you're a OP or OWNER.

So it's actually ISHOP (or higher)

I hope this will work for you...

Grtzzz
Posted By: bunar

Re: popup help needed - 22/10/03 03:41 PM

hehe nice try but that is the same i have posted

the problem is only at kick ban section, i just pasted op/deop section so some1 can realise the trick

i already gave
.$iif($me ishop #, Kick/Ban, $style(2) Kick/Ban): /ban $1 $2 $3 | /kick $1 $2 $3

but if i put that, then when i am opped i cant issue that command, but if i replace ISHOP with ISOP then i cant issue that command when i am HOP-ed...

- still on start

but thanx for trying
Posted By: Doqnach

Re: popup help needed - 22/10/03 04:14 PM

.$iif(($me !ishop #) || ($me !isop #), $style(2)) Kick/Ban: /ban $$1 $2 $3 | /kick $$1 $2 $3

and I wonder how you are gonna fill that $2 and $3... because $1 is the first selected nick, and $2 is the second, and $3 is the third... if you want to be able to give these some meaning you should use $?

.$iif(($me !ishop #) || ($me !isop #), $style(2)) Kick/Ban: /ban $$1 3 | /kick # $$1 $?="reason:"
Posted By: J0ke

Re: popup help needed - 22/10/03 04:41 PM

Code:
;alias
_pop.op {
  if ($me isop # || $me ishop #) { return $1 }
}
;and popup
$_pop.op(Control)
.Kick:{ blabla }
.Ban:{ blabla }


Posted By: bunar

Re: popup help needed - 22/10/03 07:02 PM

actually, it works for kick,
but how about this:

Op modes
.$iif($me isop #, ( +o ) op, $style(2) ( +o ) op):/op $1 $2 $3 $4
.$iif($me isop #, ( -o ) deop, $style(2) ( -o ) deop):/deop $1 $2
.-
.( +h ) halfop:/mode $chan +h $1 $2 $3 $4 $5 $6 $7 $8 $9 $10
.( -h ) dehalfop:/mode $chan -h $1 $2 $3 $4 $5 $6 $7 $8 $9
.-
.( +v ) voice:/voice $1 $2 $3 $4 $5 $6 $7 $8 $9 $10 $11 $12
.( -v ) devoice:/devoice $1 $2 $3 $4 $5 $6 $7 $8 $9 $10 $11


i tried with

.$iif($me ishop #, ( +h ) hop, $style(2) ( +h ) halfop:/mode $chan +h $1 $2

etc, coz when you r half op you cant +h or +o others

but when i put that code in my popups the popup with halfop dissapears

and i want to make that when i am +h that i cant +h others
(to popup be freezed)
how to do it?
Posted By: bunar

Re: popup help needed - 22/10/03 07:49 PM

ok, i solved it, thanx all again
© 2022 mIRC Discussion Forums