Yoko

All sides of Injection
It is currently 2025-12-10 09:15:38

All times are UTC+02:00




Post new topic  Reply to topic  [ 5 posts ] 
Author Message
 Post subject: I need help :-\
PostPosted: 2007-02-27 08:47:14 
Offline

Joined: 2007-02-14 08:14:09
Posts: 6
How can i record a path and follow it :-\ ??


Edit ok i found how to record the path (but is it a good way ?)

Code:
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


Top
   
 Post subject:
PostPosted: 2007-02-27 12:27:24 
Offline
Expert!
User avatar

Joined: 2005-09-14 15:31:58
Posts: 2152
Location: Latvia
1) why do you need such thing ?
2) you meen you run the script and script records every x,y step you make ?

_________________
Уроки языка Injection
Основные команды языка Injection
Yoko Injection Code Sweeper
Drw (2009) скрипты
2017 Начал играть на Uorpg.net


Top
   
 Post subject:
PostPosted: 2007-02-27 18:54:05 
Offline

Joined: 2007-02-14 08:14:09
Posts: 6
Because i want my caracter to go buy something and come back home

so i record the path ... and i introduce some buy and drop into the chess soo with my other player i can cast In lor without stop (for magery)

this script record my path ... so now i need to know how my player can follow it


Top
   
 Post subject:
PostPosted: 2007-03-01 00:54:17 
Offline

Joined: 2007-02-14 08:14:09
Posts: 6
no one ?


Top
   
 Post subject:
PostPosted: 2007-03-01 09:37:58 
Offline
Expert!
User avatar

Joined: 2005-09-14 15:31:58
Posts: 2152
Location: Latvia
i think the best way is something like this:
Code:
VAR x = uo.getx()
VAR y = uo.gety()
while 1
if x<>uo.getx() or y<>uo.gety() then
 x = uo.getx()
 y = uo.gety()
   UO.TextOpen()
   UO.TextPrint(x,' ',y)
endif
uo.click('backpack')
wait(20)
wend

_________________
Уроки языка Injection
Основные команды языка Injection
Yoko Injection Code Sweeper
Drw (2009) скрипты
2017 Начал играть на Uorpg.net


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 5 posts ] 

All times are UTC+02:00


Who is online

Users browsing this forum: Bing [Bot] and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Limited