|
Joined: Nov 2006
Posts: 2
Bowl of petunias
|
OP
Bowl of petunias
Joined: Nov 2006
Posts: 2 |
Yeah I suck, I got a kick ban script and that's it. I still need: Op (So only done by +ao and +qo ) Half-op (Only done by +o, +ao and +qo) Voice (Only done by +h, +o, +ao and +qo) Kick (withreason) (Only done by +h, +o, + ao and +qo) Ban TIMER (withreason) (Only done by +o, +ao and +qo) If anyone can help me with these scripts that would be great! Thanks! ____________________ Oh yeah, there is another one I cannot figure out -.- This one should be basic but I keep failing! ![mad mad](/images/graemlins/mirc/mad.gif) When I get voiced I want it to say something like '~ Thanks for the voice ~' and the same for half-op and op. If you could help, I would be eternally greatful! Thanks for helping guys!
Last edited by Calcium; 29/11/06 09:40 PM.
|
|
|
|
Joined: Aug 2004
Posts: 7,252
Hoopy frood
|
Hoopy frood
Joined: Aug 2004
Posts: 7,252 |
I need to know what characters (symbols) are used to indicate the +a and +q levels. I know that on a lot of networks they use & for +a and ~ for +q, but that's on a network by network basis, not a standard like the @ for +o.
I can probably have your scripts done within an hour of my receiving that information.
|
|
|
|
Joined: Dec 2002
Posts: 2,031
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 2,031 |
Try the undocumented identifier $nickmode ($prefix)
|
|
|
|
Joined: Aug 2004
Posts: 7,252
Hoopy frood
|
Hoopy frood
Joined: Aug 2004
Posts: 7,252 |
Since it's undocumented, can you tell me what the proper format for that identifier is?
|
|
|
|
Joined: Dec 2002
Posts: 2,031
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 2,031 |
$nickmode will return qaohv$prefix will return ~&@%+Replace with your networks modesalias npmode {
; $npmode(+) would return v
; $npmode(v) would return +
; $npmode(h) would return % if your network supports it
; $npmode(%) would return h if your network supports it
if ($len($1-) != 1) return $nickmode $prefix
if ($poscs($nickmode,$1)) return $mid($prefix,$v1,1)
if ($pos($prefix,$1)) return $mid($nickmode,$v1,1)
}
Last edited by RoCk; 30/11/06 06:13 PM.
|
|
|
|
Joined: Aug 2004
Posts: 7,252
Hoopy frood
|
Hoopy frood
Joined: Aug 2004
Posts: 7,252 |
Thanks, but I think that would be handier if you could pass a nick to it, and get the modes for that nick. As it is (to my understanding), it only returns your modes.
|
|
|
|
Joined: Dec 2002
Posts: 2,031
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 2,031 |
$nickmode returns all nick modes available on the network.
Undernet RAW 005: PREFIX=(ov)@+ $nickmode = ov $prefix = @+
Rizon RAW 005: PREFIX=(qaohv)~&@%+ $nickmode = qaohv $prefix = ~&@%+
Last edited by RoCk; 01/12/06 02:26 AM.
|
|
|
|
Joined: Oct 2004
Posts: 8,330
Hoopy frood
|
Hoopy frood
Joined: Oct 2004
Posts: 8,330 |
And, using your identifier... $nick($chan,$nick).pnick = @+nick
if ($npmode($left($nick($chan,$nick).pnick,1)) == o) { then nick is an op }
And so on. Might not be nice-looking, but it does work for when you want the script to function on all networks regardless of mode characters. ![smile smile](/images/graemlins/mirc/smile.gif)
Invision Support #Invision on irc.irchighway.net
|
|
|
|
Joined: Nov 2004
Posts: 842
Hoopy frood
|
Hoopy frood
Joined: Nov 2004
Posts: 842 |
(Off-topicish.)
What're the flags for the other modes? ! and . and w/e.
Last edited by Jigsy; 01/12/06 03:04 AM.
|
|
|
|
Joined: Dec 2002
Posts: 2,031
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 2,031 |
Ok I got it now, I guess I missunderstood exactly what he wanted.
Jigsy: It returns whatever flags/characters are available on your network. I just used v/+ as an example because it's pretty much a standard on all networks, and I used h/% as another example because, while it's not supported on all networks, it's supported on enough networks that it's recognized by most users.
|
|
|
|
Joined: Aug 2004
Posts: 7,252
Hoopy frood
|
Hoopy frood
Joined: Aug 2004
Posts: 7,252 |
Yeah, I figured that out...not much use from a programming basis if trying to use it directly.
|
|
|
|
Joined: Nov 2006
Posts: 2
Bowl of petunias
|
OP
Bowl of petunias
Joined: Nov 2006
Posts: 2 |
OK I got the op and stuff working. But If I get voiced I want to be able to say
~ Thanks for the voice ~
and so on for op and half op. That's all now! THANKS for the help guys!
|
|
|
|
Joined: Oct 2004
Posts: 8,330
Hoopy frood
|
Hoopy frood
Joined: Oct 2004
Posts: 8,330 |
For OP/Voice/Half Op, you can just use: /help on VOICE /help on OP /help on HELP (this is half op)
on *:voice:#channel: {
if ($nick == $me) { msg $chan Thanks for the voice }
}
Invision Support #Invision on irc.irchighway.net
|
|
|
|
Joined: Dec 2002
Posts: 2,031
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 2,031 |
if ($vnick == $me) msg # Thanks for the voice $nick $+ !
|
|
|
|
Joined: Oct 2004
Posts: 8,330
Hoopy frood
|
Hoopy frood
Joined: Oct 2004
Posts: 8,330 |
Oops, good catch.
$vnick $onick
Invision Support #Invision on irc.irchighway.net
|
|
|
|
|