Skip to content

Instantly share code, notes, and snippets.

@allanon
Created June 1, 2016 23:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save allanon/8bfae5964b0b0a880fc73c8468fb6f5b to your computer and use it in GitHub Desktop.
Save allanon/8bfae5964b0b0a880fc73c8468fb6f5b to your computer and use it in GitHub Desktop.
Watch for Ignition Break and log the skill delay.
# Watch for Ignition Break and log the skill delay.
# This should be much safer (and better performance!) than watching for console logs.
# The macro plugin complains if any of the saved hook arguments are undefined,
# and "tick" is undefined when the status change isn't timed. Which results in
# lots of annoying "[macro] $args->{tick} does not exist" messages on the
# console. Sigh.
automacro ib_delay {
hook Actor::setStatus::change
save actor_type
save handle
save flag
save tick
eval $varStack{'.hooksave0'} eq 'Actor::You' && $varStack{'.hooksave1'} eq 'Ignition Break Delay' && $varStack{'.hooksave2'}
call {
$time = @eval( $.hooksave3 / 1000 )
log skill delay of $time seconds
}
}
@kawinpok
Copy link

Hey Allanon , I need your help, I would like to hire u and pay money to make bot in my server,

Please kindly contact me : rissaya41@gmail.com

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment