UOGamers Community

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

  • To obtain new Razor updates, please reinstall Razor from our new website.

UoS Script for Following an Entity?

Faelorthin

Traveler
is there a way with UOS to make it follow an entity.
i know that you use ingame you can ALT click to follow someone or a monster.
just want UOS to do it for so that i dont have to click every time.
 

c0d3r

Traveler
there is a workaround but depending on terrain and obstacles it may fail, people use the following code:
Code:
promptalias 'target'
while not @inrange 'target' 1
  if @x 'target' > x 'self' and @y 'target' > y 'self'
    run 'southeast'
  elseif @x 'target' < x 'self' and @y 'target' > y 'self'
    run 'southwest'
  elseif @x 'target' > x 'self' and @y 'target' < y 'self'
    run 'northeast'
  elseif @x 'target' < x 'self' and @y 'target' < y 'self'
    run 'northwest'
  elseif @x 'target' > x 'self' and @y 'target' == y 'self'
    run 'east'
  elseif @x 'target' < x 'self' and @y 'target' == y 'self'
    run 'west'
  elseif @x 'target' == x 'self' and @y 'target' > y 'self'
    run 'south'
  elseif @x 'target' == x 'self' and @y 'target' < y 'self'
    run 'north'
  endif
  pause 100
endwhile
ps: easyuo has pathfind command in case that doesnt work well for you...
 
Last edited:

jzemn

Squire
Are u searching for a code that automatically follows your target?

Euo

Code:
Set %followtarget xxxxxxxx ;set its id here

Loop:
Finditem %followtarget G_8
 if #findcnt = 0
  {
   Display ok target not found within 8 tiles near u.halting.
   Halt
  }
Event pathfind #findx #findy #findz
Wait 20
Goto loop
 
Top