mIRC Home    About    Download    Register    News    Help

Print Thread
#52961 08/10/03 05:42 PM
Joined: Oct 2003
Posts: 16
B
baron Offline OP
Pikka bird
OP Offline
Pikka bird
B
Joined: Oct 2003
Posts: 16
ok right now i have the raw command for set mode, and a $clinecol command to determine the status of the nick whether it be opped, deopped, voiced, normal....

everything works great except the fact that when i demod myself it wont show $nick sets mode $1- and it wont activate the $clinecol due to it not actually saying im deopped...
could someone give me the raw command for setting modes on yourself so it registers.

on ^1:rawmode:#: {
haltdef
echo $chan $nick sets mode $1-:
}

on *:DEOP:#:if ($opnick isvo $chan) { cline $clinecol(voice) $chan $opnick } | if ($opnick !isvo $chan) { cline $clinecol(norm) $chan $opnick } }

#52962 08/10/03 06:12 PM
Joined: Jan 2003
Posts: 2,523
Q
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,523
I didn't quite get your problem but before we try to solve it, have you considered using /cnick ?

/cnick * 3 +
colours all voiced nicks green

/cnick * 4 @
colours all opped nicks red

You only have to type each command once. mirc will then colour ops/voiced nicks by itself when they get +o/+v or when you join a channel with existing ops/voiced people.


/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com
#52963 08/10/03 06:13 PM
Joined: Dec 2002
Posts: 2,809
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 2,809
Code:
on ^1:rawmode:#: {
echo $chan $nick sets mode $1-: 
haltdef
}


The "haltdef" is like a return statement, it causes the event to terminate immediately.

#52964 08/10/03 06:27 PM
Joined: Jan 2003
Posts: 2,523
Q
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,523
Nope, /halt does that. /haltdef only halts the default display, not the script.
//haltdef | echo -a 1 | halt | echo -a 2


/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com
#52965 08/10/03 06:42 PM
Joined: Dec 2002
Posts: 2,809
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 2,809
Indeed. Looking closer it appears the problem is there is a space between the ":" and the "{". Change it to:

Code:
on ^1:rawmode:#:{
haltdef
echo $chan $nick sets mode $1-: 
}


And it should work.

#52966 08/10/03 07:06 PM
Joined: Jan 2003
Posts: 2,523
Q
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,523
No, it works with the space too. All following formats work in events:
on *:event:#: command
on *:event:#:command
on *:event:#:{ command }
on *:event:#: { command }


/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com
#52967 08/10/03 07:06 PM
Joined: Dec 2002
Posts: 2,809
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 2,809
It doesn't work for me, I get an error.

#52968 08/10/03 07:34 PM
Joined: Jan 2003
Posts: 2,523
Q
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,523
What would that error be? It does work, it always has, test it more carefully.


/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com
#52969 08/10/03 09:04 PM
Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
I can almost bet code's error is the following line:

echo $chan $nick sets mode $1-:

EDIT: Whoa, Color tag is case sensative...

[Color] vs [.color] (Ignore period in the latter)


-KingTomato
#52970 08/10/03 09:17 PM
Joined: Jan 2003
Posts: 2,523
Q
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,523
You'll find that $1-: works too:
//tokenize 32 a b c | echo -a $1-:
$N, $*dir, $cd are some of the few identifiers that you don't need $+ to append something to them.


/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com
#52971 08/10/03 09:54 PM
Joined: Dec 2002
Posts: 2,809
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 2,809
How about this... Instead of correcting everyone, if you're so smart... how about you tell him what his problem is?

#52972 08/10/03 11:16 PM
Joined: Oct 2003
Posts: 16
B
baron Offline OP
Pikka bird
OP Offline
Pikka bird
B
Joined: Oct 2003
Posts: 16
ok qwerties first suggestion for colors worked great.....and i fixed the set mode problem.

im also needing input on creating a volume scroll bar for my mp3 player... i got a toggle bar for it which wasnt that hard but volume bar just fucks me up lol i think im missing like 2 commands

so if any of yas wanna show me the command i need for a 100 range scroll volume bar would be nice.

#52973 09/10/03 07:51 AM
Joined: Jan 2003
Posts: 2,523
Q
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,523
Instead of being offended when somebody corrects you (you should be glad), how about reading the entire thread more carefully?

From my first post:
I didn't quite get your problem but before we try to solve it, have you considered using /cnick ?

I didn't know what the problem was as I didn't find anything wrong with his on rawmode event. You assumed there was something wrong with the event but you were proven wrong. So what exactly are you asking me to correct? The problem that I stated I couldn't identify or the already correct on rawmode?


/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com
#52974 09/10/03 07:56 AM
Joined: Jan 2003
Posts: 2,523
Q
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,523
Regarding the scrollbar, this thread might be helpful.


/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com
#52975 09/10/03 08:54 PM
Joined: Dec 2002
Posts: 2,809
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 2,809
Quote:
Instead of being offended when somebody corrects you (you should be glad), how about reading the entire thread more carefully?

I'm not offended at all, I never said I was.

Quote:
The problem that I stated I couldn't identify or the already correct on rawmode?

Sorry, I couldn't tell that's what you meant because I couldn't understand your first post. "I didn't quite get your problem" to me means "I don't understand you," not "there is nothing wrong with the script you pasted," but maybe that's just me...


Link Copied to Clipboard