Author Topic: Auto follow macro on steam  (Read 5082 times)

0 Members and 1 Guest are viewing this topic.

Offline OpywangTopic starter

  • Restricted
  • *
  • Posts: 1
  • Activity:
    0%
  • Reputation Power: 1
  • Opywang has no influence.
  • Respect: +1
  • Referrals: 1
    • View Profile
Auto follow macro on steam
« on: August 09, 2017, 01:13:30 AM »
+1
Is it possible to make it auto follow a player using alt, and click? 

I've got a long macro it does everything automatic healing, resing, and etc, but I would like to make it where it can auto follow  automatic for players that are within range to friend, or using serial number because I don't want it to follow anybody, but just for the specific one.

Post Merge: August 10, 2017, 12:29:47 AM
O.K.  I found a nice auto follow macro,but it is for taming, and I would like to get that cleaned up, and just  make it follow friend instead of any random person.  I change it, and edit that it follow wraith form male, and it work perfectly.

if not listexists 'NameTheTamed'
  createlist 'NameTheTamed'
  //Set this name to whatever you want.
  pushlist 'NameTheTamed' 'MURICA'
endif
if not listexists 'tameables'
  createlist 'tameables'
  pushlist 'tameables' ox2ec //wraith form
endif
if not @inrange 'tobetamed' 12
  @unsetalias 'tobetamed'
  for 0 in 'tameables'
    if @findtype tameables[] 'any' 'ground' 1 12
      @setalias 'tobetamed' 'found'
      break
    endif
  endfor
endif
if not @inrange 'tobetamed' 12
  headmsg 'No new creatures near you!'
  pause '10000'
  //playmacro 'Auto Tamer'
  //stop
endif
autotargetobject 'tobetamed'
useskill 'animal taming'
clearjournal
while not dead
  if @injournal 'It seems to accept you as master.' or @injournal "That wasn't even challenging"
    @rename 'tobetamed' NameTheTamed[0]
    waitforcontext 'tobetamed' 8 20000
    waitforgump 0x909cc741 15000
    @replygump 0x909cc741 2
    pause '1000'
    //cast 'energy bolt' 'tobetamed'
    pause '3000'
    @ignoreobject 'tobetamed'
    @unsetalias 'tobetamed'
    replay
  elseif @injournal 'You fail to tame the creature' or @injournal 'too far away'
    replay
  elseif @injournal 'You have no chance of taming this creature' or @injournal 'do not have a clear path to the animal'
    replay
  elseif @injournal 'This animal has had too many owners' or @injournal 'That animal looks tame already'
    @ignoreobject 'tobetamed'
    @unsetalias 'tobetamed'
    replay
  else
    pause 400
    if not @inrange 'tobetamed' 1
      if @x 'tobetamed' > x 'self' and @y 'tobetamed' > y 'self'
        walk 'Southeast'
      elseif @x 'tobetamed' < x 'self' and @y 'tobetamed' > y 'self'
        walk 'Southwest'
      elseif @x 'tobetamed' > x 'self' and @y 'tobetamed' < y 'self'
        walk 'Northeast'
      elseif @x 'tobetamed' < x 'self' and @y 'tobetamed' < y 'self'
        walk 'Northwest'
      elseif @x 'tobetamed' > x 'self' and @y 'tobetamed' == y 'self'
        walk 'East'
      elseif @x 'tobetamed' < x 'self' and @y 'tobetamed' == y 'self'
        walk 'West'
      elseif @x 'tobetamed' == x 'self' and @y 'tobetamed' > y 'self'
        walk 'South'
      elseif @x 'tobetamed' == x 'self' and @y 'tobetamed' < y 'self'
        walk 'North'
      endif
    endif
  endif
endwhile
« Last Edit: August 10, 2017, 12:29:47 AM by Opywang »

Offline mpalameta

  • Jr. Member
  • **
  • Posts: 22
  • Activity:
    0%
  • Reputation Power: 1
  • mpalameta has no influence.
  • Respect: +3
  • Referrals: 0
    • View Profile
Re: Auto follow macro on steam
« Reply #1 on: August 13, 2017, 12:52:06 PM »
0
Hey Opywong,
I seen your name around Uo Demise. Only a week old in that server. Trying it out. Any ideas on a great way to make money there?

Offline Gemviper

  • Sr. Member
  • *
  • Posts: 481
  • Activity:
    0%
  • Reputation Power: 0
  • Gemviper hides in shadows.
  • Respect: +56
  • Referrals: 2
    • View Profile
Re: Auto follow macro on steam
« Reply #2 on: October 19, 2017, 12:58:39 AM »
0
Hi Opywong,

pathfinding is built into UO, is it not an option in steam? You could do away with the following too if it is(If it's not, I appologize)...

Code: [Select]
if not @inrange 'tobetamed' 1
      if @x 'tobetamed' > x 'self' and @y 'tobetamed' > y 'self'
        walk 'Southeast'
      elseif @x 'tobetamed' < x 'self' and @y 'tobetamed' > y 'self'
        walk 'Southwest'
      elseif @x 'tobetamed' > x 'self' and @y 'tobetamed' < y 'self'
        walk 'Northeast'
      elseif @x 'tobetamed' < x 'self' and @y 'tobetamed' < y 'self'
        walk 'Northwest'
      elseif @x 'tobetamed' > x 'self' and @y 'tobetamed' == y 'self'
        walk 'East'
      elseif @x 'tobetamed' < x 'self' and @y 'tobetamed' == y 'self'
        walk 'West'
      elseif @x 'tobetamed' == x 'self' and @y 'tobetamed' > y 'self'
        walk 'South'
      elseif @x 'tobetamed' == x 'self' and @y 'tobetamed' < y 'self'
        walk 'North'
      endif
    endif

Tags: