1) $nick($chan,$rand(1,$nick($chan,0)))) Would give me the a random nick from the channel. How would I make it return ONLY nicks that are voiced.
Maybe something like
var %x = $nick($chan,$rand(1,$nick($chan,0))))
if (%x isvoice $chan) {blah }
Im sure something like that would work, but haven't tried it.
2) Another question I have is:
Why doesn't this work
if (%mp3.rank == 1) { .echo -q $read(rank.txt,s,%mp3play) | if ($readn != 0) { write num1.txt %mp3play } }
I just scripted it off the top of my head, but it's not working, from when i used tried it awhile back.
3)
alias listb { msg $active $talker1(Buddie Info) | buddieson | buddiesoff | msg $active Buddies Online: %on | msg $active Buddies Offline: %off | msg $active Buddies: $notify(0) }
alias buddieson { unset %on
msg $active Online:
var %x = 1
while (%x <= $notify(0)) { if ($notify(%x).ison) { msg $active $notify(%x) | inc %on }
inc %x
}
}
alias buddiesoff { unset %off
msg $active Offline:
var %x = 1
while (%x <= $notify(0)) { if (!$notify(%x).ison) { msg $active $notify(%x) | inc %off }
inc %x
}
}
I want it to show what server they're on too. Any Clue how?
4) Hi, I've been reading a Toolbar Tutorial, And am already lost.
Download it here:
http://www.mircscripts.org/download.php?id=2058&type=1But Yeah, The Icons "teal0" and "teal1" show up. Download them here
http://www.mircscripts.org/download.php?id=1968&type=3 .Anyhow, They open their own window. I want them to take the place of the 1st two icons on the mIRC toolbar, Anyone know?
dialog example {
title "Example"
size -1 -1 1000 18
option dbu
list 1, 1 2 1000 14, size
}
on *:dialog:example:init:0:{
dll mdx.dll SetMircVersion $version
dll mdx.dll MarkDialog $dname
dll mdx.dll SetControlMDX $dname 1 ToolBar list arrows flat wrap nodivider > bars.mdx
dll mdx.dll SetDialog $dname style
dll mdx.dll SetBorderStyle 1
did -i $dname 1 1 bmpsize 16 16
did -i $dname 1 1 setimage icon small teal0.ico
did -i $dname 1 1 setimage icon small teal1.ico
did -a $dname 1 +a 1 Hello $chr(9) Tooltip!
did -a $dname 1 +a 2 Goodbye $chr(9) Tooltip!
dll ktools.dll DockToolbar $dialog($dname).hwnd
}
on *:dialog:example:sclick:1:{
var %click $did($dname,1).sel
if (%click == 2) {
;command here
}
elseif (%click == 3) {
;Command
}
}
PLEASE PLEASE PLEASE Help me with all questions. #4 is really tricking me. The others aren't SO hard, but I really want a custom track bar...
--Thanks A LOT
--Kriminal (Mew)