AUTOFIRE 1.0 BY LIAOHOWIE
HELLO ALL,
I SHARE MY AUTOFIRE MICRO TO ALL.
AUTOFIRE 1.0 BY LIAOHOWIE 2009.07.23
FUNCTION:
1. AUTO ASSIST TARGET AND THEN AUTOFIRE( /mac autofire MA_name )
2. AUTO DD WHEN MOB 60%HP
3. AUTO SNARE
PLS POST HERE IF U WANT TO INCREASE ANY FUNTION.
| * autofire.mac
| * Version 1.0 by liaohowie
| *
| * This macro automates your ranger in a very simple way. It assist the group MT and autofire and snare.
| *
| * Usage: /macro autofire MA
| * V1.0
| * This version is the Assist Code (GetTarget, CheckTarget) and autofire
#turbo
#include spell_routines.inc
Sub Main
/if (!${Defined[Param0]}) {
/echo Usage /macro autofire MA_NAME
/endmac
}
/declare MA string outer ${Param0}
/declare MyTargetID int outer 0
/echo -------------------------------------------
/echo autofire v1.0-
/echo -------------------------------------------
/echo Assisting: ${MA}
/echo -------------------------------------------
:Main_Loop
/call Get_Target
/call AutoFire
:Combat_Loop
/doevents
/call Snare_Check
/call DD_Check
/if (!${Target.ID} || !${Target.Type.Equal[NPC]}) {
/goto :Main_Loop
}
/goto :Combat_Loop
/return
| * --------------------------------- SUBS ---------------------------------------------------
Sub Get_Target
/if (${Me.Casting.ID}) /return
/if (${Me.Moving}) /return
:Acquire_Target
|* If the MA is within a 100 radius then go ahead and assist, and slow if his target is a mob <100% hp.
/if (${Spawn[${MA} radius 100].ID}) {
/squelch /target clear
/assist ${MA}
/delay 1s ${Target.ID}
/if (!${Target.ID} || !${Target.Type.Equal[NPC]}) {
/delay 3s
/goto :Acquire_Target
/return
}
/if ((${Spawn[${Target.ID}].Type.Equal[npc]} || ( ${Spawn[${Target.ID}].Type.Equal[pet]} && !${Spawn[${Target.ID}].Master.Type.Equal[pc]}))) {
/if (${MyTargetID} != ${Target.ID}) {
/face
/echo New Target: ${Target.Level} ${Target.Class} ${Target.CleanName} ${Target.ID}
/varset MyTargetID ${Target.ID}
/delay 5s ${Target.Distance} <= 200
}
}
}
/return
Sub AutoFire
| * Make sure you have the target <100 % before you autofire.
/delay 20s (${Target.PctHPs}<=99 && ${Target.Distance} < 200 && ${Target.Distance} > 30)
/autofire TRUE
/echo AutoFire --( ${Target.CleanName} )--
/g AutoFire on << %t >>~~!!
/return
Sub Snare_Check
|* This one to snare the mob plan to run .
/if (!${Target.Buff[Entrap].ID} && ${Target.PctHPs}<40 && ${Target.Type.Equal[NPC]} && ${Me.AltAbilityReady[Entrap]}) {
/echo Snare --( ${Target.CleanName} )--
/call cast "Entrap" alt
}
/return
Sub DD_Check
|* This one to snare the mob plan to run .
/if (!${Target.Buff[Summer's Mist].ID} && ${Target.PctHPs}<60 && ${Target.Type.Equal[NPC]} && ${Me.SpellReady[Summer's Mist]}) {
/echo DD --( ${Target.CleanName} )--
/call cast "Summer's Mist" gem3 5s
}
/return
HELLO ALL,
I SHARE MY AUTOFIRE MICRO TO ALL.
AUTOFIRE 1.0 BY LIAOHOWIE 2009.07.23
FUNCTION:
1. AUTO ASSIST TARGET AND THEN AUTOFIRE( /mac autofire MA_name )
2. AUTO DD WHEN MOB 60%HP
3. AUTO SNARE
PLS POST HERE IF U WANT TO INCREASE ANY FUNTION.
| * autofire.mac
| * Version 1.0 by liaohowie
| *
| * This macro automates your ranger in a very simple way. It assist the group MT and autofire and snare.
| *
| * Usage: /macro autofire MA
| * V1.0
| * This version is the Assist Code (GetTarget, CheckTarget) and autofire
#turbo
#include spell_routines.inc
Sub Main
/if (!${Defined[Param0]}) {
/echo Usage /macro autofire MA_NAME
/endmac
}
/declare MA string outer ${Param0}
/declare MyTargetID int outer 0
/echo -------------------------------------------
/echo autofire v1.0-
/echo -------------------------------------------
/echo Assisting: ${MA}
/echo -------------------------------------------
:Main_Loop
/call Get_Target
/call AutoFire
:Combat_Loop
/doevents
/call Snare_Check
/call DD_Check
/if (!${Target.ID} || !${Target.Type.Equal[NPC]}) {
/goto :Main_Loop
}
/goto :Combat_Loop
/return
| * --------------------------------- SUBS ---------------------------------------------------
Sub Get_Target
/if (${Me.Casting.ID}) /return
/if (${Me.Moving}) /return
:Acquire_Target
|* If the MA is within a 100 radius then go ahead and assist, and slow if his target is a mob <100% hp.
/if (${Spawn[${MA} radius 100].ID}) {
/squelch /target clear
/assist ${MA}
/delay 1s ${Target.ID}
/if (!${Target.ID} || !${Target.Type.Equal[NPC]}) {
/delay 3s
/goto :Acquire_Target
/return
}
/if ((${Spawn[${Target.ID}].Type.Equal[npc]} || ( ${Spawn[${Target.ID}].Type.Equal[pet]} && !${Spawn[${Target.ID}].Master.Type.Equal[pc]}))) {
/if (${MyTargetID} != ${Target.ID}) {
/face
/echo New Target: ${Target.Level} ${Target.Class} ${Target.CleanName} ${Target.ID}
/varset MyTargetID ${Target.ID}
/delay 5s ${Target.Distance} <= 200
}
}
}
/return
Sub AutoFire
| * Make sure you have the target <100 % before you autofire.
/delay 20s (${Target.PctHPs}<=99 && ${Target.Distance} < 200 && ${Target.Distance} > 30)
/autofire TRUE
/echo AutoFire --( ${Target.CleanName} )--
/g AutoFire on << %t >>~~!!
/return
Sub Snare_Check
|* This one to snare the mob plan to run .
/if (!${Target.Buff[Entrap].ID} && ${Target.PctHPs}<40 && ${Target.Type.Equal[NPC]} && ${Me.AltAbilityReady[Entrap]}) {
/echo Snare --( ${Target.CleanName} )--
/call cast "Entrap" alt
}
/return
Sub DD_Check
|* This one to snare the mob plan to run .
/if (!${Target.Buff[Summer's Mist].ID} && ${Target.PctHPs}<60 && ${Target.Type.Equal[NPC]} && ${Me.SpellReady[Summer's Mist]}) {
/echo DD --( ${Target.CleanName} )--
/call cast "Summer's Mist" gem3 5s
}
/return
Attachments
Last edited by a moderator: