mIRC Home    About    Download    Register    News    Help

Print Thread
#165731 29/11/06 09:34 PM
Joined: Nov 2006
Posts: 2
C
Calcium Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
C
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! confused mad

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.
#165732 30/11/06 06:13 AM
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
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.

#165733 30/11/06 02:42 PM
Joined: Dec 2002
Posts: 2,031
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 2,031
Try the undocumented identifier $nickmode ($prefix)

#165734 30/11/06 05:35 PM
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
Since it's undocumented, can you tell me what the proper format for that identifier is?

#165735 30/11/06 05:44 PM
Joined: Dec 2002
Posts: 2,031
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 2,031
$nickmode will return qaohv
$prefix will return ~&@%+

Replace with your networks modes

Code:
alias 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.
#165736 01/12/06 02:03 AM
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
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.

#165737 01/12/06 02:22 AM
Joined: Dec 2002
Posts: 2,031
R
Hoopy frood
Offline
Hoopy frood
R
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.
#165738 01/12/06 02:54 AM
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
And, using your identifier...

$nick($chan,$nick).pnick = @+nick

Code:
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


Invision Support
#Invision on irc.irchighway.net
#165739 01/12/06 03:01 AM
Joined: Nov 2004
Posts: 842
Hoopy frood
Offline
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.
#165740 01/12/06 03:37 AM
Joined: Dec 2002
Posts: 2,031
R
Hoopy frood
Offline
Hoopy frood
R
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.

#165741 01/12/06 04:06 AM
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
Yeah, I figured that out...not much use from a programming basis if trying to use it directly.

#165742 02/12/06 08:42 PM
Joined: Nov 2006
Posts: 2
C
Calcium Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
C
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!

#165743 02/12/06 11:44 PM
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
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)

Code:
on *:voice:#channel: {
  if ($nick == $me) { msg $chan Thanks for the voice }
}


Invision Support
#Invision on irc.irchighway.net
#165744 02/12/06 11:54 PM
Joined: Dec 2002
Posts: 2,031
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 2,031
if ($vnick == $me) msg # Thanks for the voice $nick $+ !

#165745 03/12/06 04:54 PM
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
Oops, good catch.

$vnick
$onick


Invision Support
#Invision on irc.irchighway.net

Link Copied to Clipboard