Code: Select all
|| Autoexp.mac
| - This macro has been designed to automaticly get you some level's.
| - By: Fabolous1
||********************************************************************
Sub Main
|Beginning
/declare AnchorLoc string outer 0
/varset AnchorLoc ${Me.Y},${Me.X}
/echo AnchorLoc ${Me.Y},${Me.X}
|What we will kill.
/declare MobLvl1-2 string outer 0
/varset MobLvl1-2 a sylvan bat
|Don't worry about these
/declare InvalidTargetID string outer 0
|Search and Destroy
:Acquire
/if (${Me.PctHPs}<100) /call Rest
/if (${Me.Level}<=2) /target (${MobLvl1-2}) nopcnear notid ${InvalidTargetID}
/if (${Target.ID}) {
/if (${Int[${Target.PctHPs}]}<100) {
/echo Mob NOT at Full Health, picking another...
/varset InvalidTargetID ${Target.ID}
/goto :Acquire
}
/call MoveToMob
/return
Sub MoveToAnchor
/echo Moving to Anchor at Loc: ${AnchorLoc}.
:AnchorMoveLoop
/delay 1
/doevents
/face nolook loc ${AnchorLoc}
/if (${Math.Distance[${AnchorLoc}]}>12) {
/keypress forward hold
} else {
/keypress forward
/return
}
/goto :AnchorMoveLoop
/return
Sub MoveToMob
/echo Acquired ${Target.CleanName} at range ${Int[${Target.Distance}]}
:MovementLoop
/if (${Target.Distance}>12) {
/face
/delay 10s
/keypress forward HOLD
}
/if (${Target.Distance}<=12)
/keypress forward
/echo Attacking ${Target.CleanName}
/attack on
}
/if (!${Target.ID}) {
/attack off
/keypress forward
/keypress back
/return
}
/goto :MovementLoop
/return
Sub Rest
/echo Checking health.
:Rest
/if (${Me.PctHPs}<100) {
/call MoveToAnchor
/echo My health is below 100%.
/if (${Me.Standing}) /sit
/goto :Rest
}
/return