UOOutlands / Razor

Razor is a free tool designed to help with simple tasks while playing Ultima Online.
http://www.uor-razor.com
GNU General Public License v3.0
9 stars 6 forks source link

[FEATURE] Add `autotarget` `autotargettype` `autotargetloc` `autotargetrelloc` #33

Open ncskrypt opened 3 years ago

ncskrypt commented 3 years ago

@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]

Autotarget can be better for players and more efficient in reducing requests to the server.

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 image

ncskrypt commented 3 years ago

It probably makes sense to bundle this functionality into Smart Target Compatibility request instead. https://github.com/UOOutlands/Razor/issues/53