I need help :-\
Posted: 2007-02-27 08:47:14
How can i record a path and follow it :-\ ??
Edit ok i found how to record the path (but is it a good way ?)
Edit ok i found how to record the path (but is it a good way ?)
Code: Select all
sub record_path()
var x
var y
var path=""
UO.DeleteJournal()
Repeat
x=UO.GetX()
y=UO.GetY()
if waitNewPos(x,y) then
path=path+extract_dir(x,y,UO.GetX(),UO.GetY())
endif
Until UO.InJournal("stop")
path = compressPath(path)
UO.TextClear()
UO.TextOpen()
UO.TextPrint("Votre chemin est:")
UO.TextPrint(path)
end sub