This is neat, @Hawkee could possibly implement it on here to give a proper highlighting!
It would be helpful if you also supplied the aliases used as they're probably a high user in this
I am also sure that some of you clever folk will come up with a way to turn all of this into a tidy bundle with fewer lines. G'luck if you do.
Challenge accepted!
on *:JOIN:#: if ($nick($chan,$me,~&@%)) .timer 1 3 $!iif( $!nick( $chan , $nick ,~&@%+) ,noop, mode $chan +v $nick )
I did it like this. Does this work as intended, for you, or did I miss a feature?
Of course, this isn't the most readable code out there. In another thread you asked for advice:
I believe your issue with only some people getting +v is when you override the timer - that is, you start a timer with its name of one that is yet to run. However, you can have unnamed timers, my just calling the /timer command without anything appended to it, e.g: timer 1 1 echo -a test
My snippet above makes use of this.
In the snippet above, I made use of my knowledge of mIRC's evaluation. However, a much more simpler way to do this would be to have an alias and the join event. In the join event, it would call a timer with the alias as the command, and using $chan and $nick as the alias parameters. In the alias, it uses $1 and $2 to check to see if they need a voice, and if so, add them as voice.
If there's any confusion with this don't hesitate to ask :)
@Hawkee I do understand your reasoning for deprecating the forum; however a lot of hawkee.com's userbase is partially or entirely related to mirc - this is quite the opposite to most of the rest of the internet, and sticking to that, stackoverflow.com. You say stack overflow covers Q&A quite well, but I'm bringing to light that I don't think I've ever found anything useful on mIRC there.
@Hawkee it would be nice to see the option of having a daily update (when required) via email rather than have an email each notification; I like getting the emails, but sometimes I feel they are too often! Another option would be to only send one email per comment thread/post/image/etc until you've logged in again? Just throwing around ideas :)
Going off http://re.trotoys.com/rocanvas/rocanvas.html - click somewhere in the canvas, hold down mouse, move to edge, continue moving mouse off canvas. Move back on canvas, drawing does not resume.
@BlueThen I don't think that will work due to the nature of the quadtree. Perhaps using a grid would actually be better.
So if you're checking for adjacent cells, that solves the circle-in-two-cells problem?
Ok so apparently with speeds higher than the radius they simply pass through each other. -.- How would I go about solving that?
@BlueThen What did you do when a ball was in two grids? As in, it was half in one and half in the other? And to see if I've already made the check, would you just have an array or something? Or would you do it mathematically/logically (I'm sure there's a way somehow in two equally ordered lists)
Demo added to description. http://jsfiddle.net/r2auL/show/
Larger one at http://jsfiddle.net/r2auL/1/show/
@Hawkee When I, from a page like the homepage, hover my mouse over the "Explore" button in the top menu bar, then click it without going to a submenu bar, it takes me to hawkee.com/explore/. If I leave my mouse there, and don't move it away, the dropdown menu appears when the mouse ISN'T hovering on the explore button rather than when it is: an inverted menu.
Been doing some html5 canvas work. http://fiddle.jshell.net/tLpEV/5/show/
Will post it when I do partitioning :D
How do I avoid sticking-together in circle collision? http://jsfiddle.net/tLpEV/3/
Code at the bottom. My apologies if BBcode code tags don't work in statuses which I have a suspicion it doesn't!
I'm sick of having to do two lines or $chr() shit if I want a comma in a mIRC identifier parameter. For example, var %reg = /(abc){1,3}/ then a regex line using $regex(,%reg).
So, I decided to make an alias out of it that puts all the parameters together. It works like this so far: $c(1,2,3) = 1,2,3. All good. However, due to the nature of mIRC, whitespaces on either side of the text are being cut out. E.g, $c(a , b, c) should return a , b, c but it returns a,b,c.
Has anyone found a solution to combat this problem?
alias c {
var %x $1
tokenize 32 $2-
while ($1) {
%x = %x $+ , $+ $1
tokenize 32 $2-
}
return %x
}