Yoko

All sides of Injection
It is currently 2025-11-05 05:31:12

All times are UTC+02:00




Post new topic  Reply to topic  [ 5 posts ] 
Author Message
PostPosted: 2008-05-13 17:09:53 
Offline

Joined: 2008-05-13 17:04:26
Posts: 66
тлдлшюглдюшг


Last edited by sluntai on 2011-05-09 10:25:47, edited 3 times in total.

Top
   
 Post subject:
PostPosted: 2008-05-13 17:50:14 
Offline

Joined: 2005-04-19 18:00:29
Posts: 2259
Location: Московская область
Отсутствует в файле со скриптом функция GOTOXY


Top
   
 Post subject:
PostPosted: 2008-05-14 08:54:06 
Offline
User avatar

Joined: 2005-04-04 18:23:12
Posts: 187
ходилку надо добавить вобще-то к этому скрипту )


Top
   
PostPosted: 2008-05-14 16:16:22 
Offline

Joined: 2008-05-13 17:04:26
Posts: 66
дтдш.ир


Last edited by sluntai on 2011-05-09 10:26:21, edited 3 times in total.

Top
   
 Post subject:
PostPosted: 2008-05-14 17:29:27 
Offline
User avatar

Joined: 2005-04-04 18:23:12
Posts: 187
Code:
sub GotoXY(x,y) 
var myX,myY,lastX=0,lastY=0,i,halt=0,z,r=0
for i=1 to 60
myX=uo.getX();
myY=uo.getY();
if LastX==myX and LastY==myY then
halt=halt+1
else
halt=0
end if
if halt>=10 then
if uo.GetDir()==1 then
for z=0 to 8
uo.Press(40)
next
end if
if uo.GetDir()==3 then
for z=0 to 8
uo.Press(37)
next
end if
if uo.GetDir()==5 then
for z=0 to 8
uo.Press(38)
next
end if
if uo.GetDir()==7 then
for z=0 to 8
uo.Press(39)
next
end if
halt=15
end if
if Numb(x-myX)<=1 and Numb(y-myY)<=2 then
return 1
end if
if x<=myX then
if y<=myY then
for z=0 to 3
uo.Press(38)
next
else
for z=0 to 3
uo.Press(37)
next
end if
else
if y<=myY then
for z=0 to 3
uo.Press(39)
next
else
for z=0 to 3
uo.Press(40)
next
end if
end if
lastX=myX
lastY=myY
wait(200)
next
return 0
end sub

вот из ветерановского скрипта на ламбер.
Сам не проверял, за исправность не отвечаю.


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: No registered users and 5 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:  
Powered by phpBB® Forum Software © phpBB Limited