mIRC Homepage

raw and $clinecol

Posted By: baron

raw and $clinecol - 08/10/03 05:42 PM

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 } }
Posted By: qwerty

Re: raw and $clinecol - 08/10/03 06:12 PM

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.
Posted By: codemastr

Re: raw and $clinecol - 08/10/03 06:13 PM

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.
Posted By: qwerty

Re: raw and $clinecol - 08/10/03 06:27 PM

Nope, /halt does that. /haltdef only halts the default display, not the script.
//haltdef | echo -a 1 | halt | echo -a 2
Posted By: codemastr

Re: raw and $clinecol - 08/10/03 06:42 PM

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.
Posted By: qwerty

Re: raw and $clinecol - 08/10/03 07:06 PM

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 }
Posted By: codemastr

Re: raw and $clinecol - 08/10/03 07:06 PM

It doesn't work for me, I get an error.
Posted By: qwerty

Re: raw and $clinecol - 08/10/03 07:34 PM

What would that error be? It does work, it always has, test it more carefully.
Posted By: KingTomato

Re: raw and $clinecol - 08/10/03 09:04 PM

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)
Posted By: qwerty

Re: raw and $clinecol - 08/10/03 09:17 PM

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.
Posted By: codemastr

Re: raw and $clinecol - 08/10/03 09:54 PM

How about this... Instead of correcting everyone, if you're so smart... how about you tell him what his problem is?
Posted By: baron

Re: raw and $clinecol - 08/10/03 11:16 PM

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.
Posted By: qwerty

Re: raw and $clinecol - 09/10/03 07:51 AM

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?
Posted By: qwerty

Re: raw and $clinecol - 09/10/03 07:56 AM

Regarding the scrollbar, this thread might be helpful.
Posted By: codemastr

Re: raw and $clinecol - 09/10/03 08:54 PM

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...
© 2020 mIRC Discussion Forums