firstprevious1nextlast
re : /repeatThu Jun 24 05:18:03 2010 MST
Vor
admin
offline
avatar
what i do is /set VARPID $[repeat(-delay 1 action)]
so something like /set ROBEPID $[repeat(-30 1 !check robe)]
that way i can shut it off if i want to by doing /kill %ROBEPID
the 1 in this case tells it to only fire once.
>re : /repeatThu Jun 24 13:37:07 2010 MST
Korthrun
player
online
On Thu Jun 24 05:18:03 2010 Vor wrote post #2:
> what i do is /set VARPID $[repeat(-delay 1 action)]
> so something like /set ROBEPID $[repeat(-30 1 !check robe)]
> that way i can shut it off if i want to by doing /kill %ROBEPID
> the 1 in this case tells it to only fire once.
This is how I handle it with my vuln buttons, so that I don't get a
jillion "OMG VULN IS ABOUT TO FALL" messages if I refresh the vuln
before it goes
/def key_f1=/kill %vuln1PID%;!cast %vuln1%;/set vuln1PID $[repeat(
"-42 1 /echo -aBCRed $[toupper({vuln1}, 1)] falling.") ]
>re : /repeatThu Jun 24 14:21:50 2010 MST
Snoop
player
offline
Ah, yeah that worked. Thanks people! =)

What function has $[ ... ] ?
>>re : /repeatThu Jun 24 21:39:09 2010 MST
Open
player
offline
the whole $[...] lets you call a macro from within a macro. in this
case you are calling /repeat from within /set. (possibly not the
proper phrasing, but if you are trying to /macro blah /macro, you do
/macro blah $[macro()] instead)
>>>re : /repeatThu Jun 24 21:40:16 2010 MST
Open
player
offline
well, /repeat and repeat() are the same thing. the $[...] is telling
it to evaluate it for purposes of using it within /set. that may be
a better explanation.
firstprevious1nextlast