mIRC Home    About    Download    Register    News    Help

Print Thread
#79084 13/04/04 02:48 AM
Joined: Dec 2003
Posts: 199
K
Vogon poet
OP Offline
Vogon poet
K
Joined: Dec 2003
Posts: 199
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? laugh
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=1
But 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)


Want to Link Servers? PM Me
- EliteIRC.dyndns.org -
#79085 13/04/04 03:18 AM
Joined: Mar 2004
Posts: 111
Z
Vogon poet
Offline
Vogon poet
Z
Joined: Mar 2004
Posts: 111
i dont got the time to scan em all, so i'll answer the quick one (lazy for teh win!)

1.) $nick($chan,$rand(1,$nick($chan,0,v))),v)


GL smile

#79086 13/04/04 03:43 PM
Joined: Apr 2004
Posts: 11
A
Pikka bird
Offline
Pikka bird
A
Joined: Apr 2004
Posts: 11
Quote:
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.

Your code not wrong! If it run and the result is not what you wait, please:
1. Check your variable %mp3.rank ... is it equal 1 ?
2. Know that /echo with -q option will not display the text if called from an alias using the . prefix. Do you think .echo -q is not same only echo -q ? I think this i problem.
3. Know that $read(rank.txt,s,%mp3play) --> scans the file rank.txt for a line beginning with the word that is value of variable %mp3play.

#79087 13/04/04 10:39 PM
Joined: Dec 2003
Posts: 199
K
Vogon poet
OP Offline
Vogon poet
K
Joined: Dec 2003
Posts: 199
Ty Zeus. lol I just looked at your code and saw how dumb I was for not getting that :P
And for the other reply:
%mp3.rank does equal 1.
Though I may be wrong, I think you meant if %Mp3play is Eminem - Bully, It'd only search for "Eminem" and not the WHOLE Song "Eminem - Bully" - That's what I got out of your reply, but I could be wrong. confused
--Will Try it out
Thanks smile


Want to Link Servers? PM Me
- EliteIRC.dyndns.org -

Link Copied to Clipboard