Analogous to targettargettypetargetloctargetrelloc that exist in Razor
Difference is allows skipping waitfortargettarget, that process happens in the background while your script continues onward.
Setup an internal wait for target and automatically target an object.
Automated target commands proceed an action that results in a cursor/target.
Autotarget can be better for players and more efficient in reducing requests to the server.
Simplifies scripts, no need to know exact timers for waitfortarget that can be too short or too long.
Eliminates wasted time waiting on actions that fail / never happen.
This reduces need for spam holding hotkeys down or naughty scripts, examples below:
while not findbuff 'Herbal Poultice'
skill 'Taste Identification'
target 'backpack'
endfor
while not position 500 500
cast 'Recall'
targettype 'runetome' 'backpack'
endfor
while not paralyzed
dclicktype 'rope' 'backpack'
targetrelloc 10 0
endfor
// Or player spams both hotkeys manually
while not hidden
hotkey 'Invisibility'
hotkey 'Target Self'
endwhile
These spam the server with many requests until the desired action is performed, overcoming any failures, cast times, cooldowns, etc.
With autotarget, it would only request actions once.
```as
autotarget 'backpack'
skill 'Taste Identification'
autotargettype 'runetome' 'backpack'
cast 'Recall'
while not position 500 500
// wait while recalling
endfor
autotargetrelloc 10 0
dclicktype 'rope' 'backpack'
hotkey 'Autotarget Self'
hotkey 'Invisibility'
Automated Target† (Steam Documentation)
† Note: Steam implements 9 individual commands, which is unnecessary when 4 commands can handle it
@jaedan mentioned wanting to come up with a more elegant implementation of this.
autotarget (serial)
autotargettype ('name') OR ('graphic') [source] [hue] [quantity] [range]
autotargetloc (x) (y) [z]
autotargetrelloc (x-offset) (y-offset) [z-offset]
target
targettype
targetloc
targetrelloc
that exist in Razorwaitfortarget
target
, that process happens in the background while your script continues onward.Autotarget can be better for players and more efficient in reducing requests to the server.
waitfortarget
that can be too short or too long.while not position 500 500 cast 'Recall' targettype 'runetome' 'backpack' endfor
while not paralyzed dclicktype 'rope' 'backpack' targetrelloc 10 0 endfor
// Or player spams both hotkeys manually while not hidden hotkey 'Invisibility' hotkey 'Target Self' endwhile
Automated Target† (Steam Documentation) † Note: Steam implements 9 individual commands, which is unnecessary when 4 commands can handle it