mirc wizards around?

I'm in need of a script..

on *:open:?:*:{ if ($istok(#randomchannel ,$nick,32)) | else echo decem

so basically what I want it to do is check on query open, if the user is on the selected channel(s), if not it will echo "decem"

someone help, thx!?

random pic:

image: 5909
Comments
14
Couldn't said it in a better way !
Parent
the fat chick turns me off
but the cartoon woman on ur profile turns u on? :D
Parent
tbh, more than that fatty :oD
Parent
i shat brix
nns?

just modifie the shit that shows matching channels on nns.

not that easy to code on a default mirc, i think.
You need to use $snick(#channel,1) -> this is the first selected nick on the channel. And validate that by $snick(#channel,1) == $nick
so if I want to add channels to that list, I do $snick(#channel #channel #channel,1) ?

so it would be:

on *:open:?:*:{ if $snick(#channel #channel #channel #channel,1) | else echo decem


?
Parent
declare -------> var %chans = #crossfire,#6on6.et,#3on3.et


on *:open:?:*:{
var %x = 1, %y = $numtok(%chans,44), %t = $false
while (%x <= %y) {
if ($snick($gettok(%chans,%x,44) == $nick) { var %t = $true }
inc %x
}
if (%t) { echo decem }
}
Parent
uhu, didnt think it'd be that "complicate" but thanks, I'll try it out later when I have time!
Parent
you don't need to fuck around with tokens, just use the 'ison' operator

ison nickname v1 is on channel v2
isop nickname v1 is an op on channel v2
ishop nickname v1 is a halfop on channel v2
isvoice nickname v1 has a voice on channel v2
isreg nickname v1 is a normal nick on channel v2
ischan if v1 is a channel which you are on.
isban if v1 is a banned address in internal ban list
so how do I put this in a format of a script? :D im really noob at this, Ive just copied other scripts and seen how they work, modified them to my use etc.
Parent
depends how you want it to work, if you want to ignore pms from one particular channel etc..
if you need help to figure it out pm me on irc after 19:00 gmt
Parent
Back to top