Follow Script (Not fully tested)

Anything and all.

Moderators: Murderator+, Murderator

Post Reply
Paulo
Posts: 16
Joined: 2004-04-14 22:08:20

Follow Script (Not fully tested)

Post by Paulo »

For those who want to follow targets while macroing.


sub follow()
var togoX
var togoY
while 1
togoX=UO.GetX('self') - UO.GetX('lasttarget')
togoY=UO.GetY('self') - UO.GetY('lasttarget')

if togoX > 1 then
repeat
uo.press(78)
wait(100)
togoX=UO.GetX('self') - UO.GetX('lasttarget')
until togoX < 1
endif

if togoX < -1 then
repeat
uo.press(77)
wait(100)
togoX=UO.GetX('self') - UO.GetX('lasttarget')
uo.print(STR(togoX))
until togoX > -1
endif

if togoY > 1 then
repeat
uo.press(75)
wait(100)
togoY=UO.GetY('self') - UO.GetY('lasttarget')
until togoY < 1
endif

if togoY < -1 then
repeat
uo.press(76)
wait(100)
togoY=UO.GetY('self') - UO.GetY('lasttarget')
until togoY > -1
endif
wait(1000)
wend
end sub




just set the keys to walk N S E W and be happy
Mihail
Expert!
Posts: 548
Joined: 2005-05-20 20:30:10
Contact:

Post by Mihail »

if you want following to the character, move to him cursor and press Alt + Left-click mouse :D
Paulo
Posts: 16
Joined: 2004-04-14 22:08:20

Post by Paulo »

Mihail wrote:if you want following to the character, move to him cursor and press Alt + Left-click mouse :D


but u cant simulate a ALT press + left click while sleepin :)
Mihail
Expert!
Posts: 548
Joined: 2005-05-20 20:30:10
Contact:

Post by Mihail »

You can use this script as well
Post Reply