Macro for Mechanic/BS/WS Power Maximize Skill
Posted: 15 Jul 2011, 12:06
Hi,
This is my first time to write a macro and as expected only half of the macro actually works.
I can't seem to make the second auto macro to trigger.
I also tried writting a second auto macro just to deactivating the skill once there is no more aggressives but I haven't tested it yet.
This is the macro I written so far
###############################################################
automacro Power_Maximize_Initiate {
aggressives > 0
status not Power Maximize
console /(Y|y)ou are now attacking (M|m)onster/
call {
do ss 114 5
log Power Maximize Initiated
}
run-once 1
}
automacro Power_Maximize_Deactivate {
aggressives = 0
status Power Maximize
console /(Target died | Target lost)/
call {
do ss 114 5
log Power Maximize Deactivated
pause 2
release Power_Maximize_Initiate
}
Timeout 10
}
###############################################################
automacro PMaxDeactivate {
console /(Y|y)ou are sitting/
call NoMoreAggro
timeout 10
}
macro NoMoreAggro {
$num = aggressives
while ($num >= 1) as loop
log \$num aggressive monters
end loop
if ($num == 0) goto deactivate
:deactivate
do 114 5
log Power Maximize deactivated
stop
}
###############################################################
Feel free to tell me if there is anything wrong with the macro. I will appreciate any constructive criticism on my work.
Thank you in advance.
This is my first time to write a macro and as expected only half of the macro actually works.
I can't seem to make the second auto macro to trigger.
I also tried writting a second auto macro just to deactivating the skill once there is no more aggressives but I haven't tested it yet.
This is the macro I written so far
###############################################################
automacro Power_Maximize_Initiate {
aggressives > 0
status not Power Maximize
console /(Y|y)ou are now attacking (M|m)onster/
call {
do ss 114 5
log Power Maximize Initiated
}
run-once 1
}
automacro Power_Maximize_Deactivate {
aggressives = 0
status Power Maximize
console /(Target died | Target lost)/
call {
do ss 114 5
log Power Maximize Deactivated
pause 2
release Power_Maximize_Initiate
}
Timeout 10
}
###############################################################
automacro PMaxDeactivate {
console /(Y|y)ou are sitting/
call NoMoreAggro
timeout 10
}
macro NoMoreAggro {
$num = aggressives
while ($num >= 1) as loop
log \$num aggressive monters
end loop
if ($num == 0) goto deactivate
:deactivate
do 114 5
log Power Maximize deactivated
stop
}
###############################################################
Feel free to tell me if there is anything wrong with the macro. I will appreciate any constructive criticism on my work.
Thank you in advance.