Yoko

All sides of Injection
It is currently 2025-11-11 20:06:03

All times are UTC+02:00




Post new topic  This topic is locked, you cannot edit posts or make further replies.  [ 6 posts ] 
Author Message
PostPosted: 2006-06-14 01:56:55 
Offline
User avatar

Joined: 2005-04-06 05:53:47
Posts: 124
Немоглибы вы мне обьяснить в чём ошибка :?: я никак догнать немогу
И как можно это исправить.

ошибка в этой строчке

Code:
#uo.track("1",str(x),str(y)) 
start:                                #Ошибка в этой строке#
mx=UO.GetX()
my=UO.GetY()


Это сам скрипт, таким образом ошибка в скрипте на ходилку gotoxy
Но я когда использовал её до этого всё норм работало, пробовал на ДРВ, правдо не на мининге а на фишинге.

Code:
sub Na4alokopki()
while gotoxy(1178,3165,0)
Mining()
goto(1174,3165,0)
Mining()
gotoxy(1170,3165,0)
Mining()
gotoxy(1166,3165,0)
Mining()
goto(1162,3165,0)
Mining()
gotoxy(1158,3165,0)
Mining()
gotoxy(1154,3165,0)
Mining()
sub GoToHome()
sub GoToMine()
wend
end sub

sub GoToHome()
gotoxy(1168,3165,0)
gotoxy(1168,3186,0)
gotoxy(1158,3186,0)
gotoxy(1158,3194,0)
gotoxy(1155,3194,0)

end sub

sub GoToMine()
gotoxy(1165,3194,0)
gotoxy(1165,3173,0)
gotoxy(1169,3173,0)
gotoxy(1169,3165,0)
gotoxy(1178,3165,0)

end sub


sub Mining()
     var x,y,z, n
     VAR LastTimer
  UO.Set('finddistance','2')
    n=0
    z=UO.GetZ("self")
       for x=-2 to 2
       for y=-2 to 2
      UO.Print(str(x)+" "+str(y))
           Repeat
              if UO.InJournal('TORMOZ') then
                pause()
              endif
              UO.DeleteJournal()             
              UO.Warmode("0")
              UO.WaitTargetTile("1341",STR(UO.GetX()+x),STR(UO.GetY()+Y),str(z))
              UO.UseType('0x0E85')
              LastTimer=UO.Timer()
              Repeat
                 wait(500)
              Until UO.InJournal("You put") or UO.InJournal("can't see") or UO.InJournal("heavy") or UO.InJournal("stop") or UO.InJournal("location") or UO.InJournal("no ore") or UO.InJournal("but fail") or UO.InJournal("far away") or UO.InJournal("in rock") or UO.InJournal("must wait") or UO.InJournal("nothing") or UO.InJournal("elsewhere") or UO.InJournal("where it") OR UO.Timer()>LastTimer+200
              if UO.InJournal("You put") then
                  n=0
              else
                 n=n+1
              endif
           Until UO.InJournal("nothing") or UO.InJournal("elsewhere") or UO.InJournal("no ore here") or UO.InJournal("location") or UO.InJournal("far away") or UO.InJournal("in rock") or UO.InJournal("where it") or n>=5
        next
     next
end sub




sub gotoxy(x,y,prec)
var ld=0,ldc=0
var dx,dy
var mx,my
var ox,oy,mk,k
#uo.print(">")
#uo.track("1",str(x),str(y))
start:
mx=UO.GetX()
my=UO.GetY()
dx=mx-x
if dx<0 then
dx=0-dx
endif
dy=my-y
if dy<0 then
dy=0-dy
endif
if dy>dx then
dx=dy
end if
if dx<=prec then
return
end if
if not ldc then
uo.print(STR(dx))
end if
if dx<3 then
mk=70
else
mk=15
end if
ox=mx
oy=my
for k=1 to mk
mx=UO.GetX()
my=UO.GetY()
if mx<>ox or my<>oy then
goto sdidapl
end if
wait(10)
next
sdidapl:
mx=UO.GetX()
my=UO.GetY()
dx=mx-x
if dx<0 then
dx=0-dx
endif
dy=my-y
if dy<0 then
dy=0-dy
endif
if dy>dx then
dx=dy
end if
if dx<=prec then
return
end if
if ld==dx then
ldc=ldc+1
if ldc>100 then
uo.print("Can not reach location!")
return
end if
else
ld=dx
end if
if mx==x then
if my==y then
return
endif
if my>y then
#UO.Print("UR")
UO.Press(33)
goto start
endif
#UO.Print("DL")
UO.Press(35)
goto start
end if
if mx<x then
if my>y then
#UO.Print("R")
UO.Press(39)
goto start
endif
if my==y then
#UO.Print("DR")
UO.Press(34)
goto start
endif
#UO.Print("D")
UO.Press(40)
goto start
end if
if my<y then
#UO.Print("L")
UO.Press(37)
goto start
endif
if my==y then
#UO.Print("LU")
UO.Press(36)
goto start
endif
#UO.Print("U")
UO.Press(38)
goto start
end sub


Top
   
 
 Post subject:
PostPosted: 2006-06-14 06:42:48 
Offline
Expert!
User avatar

Joined: 2005-09-14 15:31:58
Posts: 2152
Location: Latvia
то что он говорит- что там ошыбка- неозночает что там она и есть... проверь неустарел ли у тебя инжект...


Top
   
 
 Post subject:
PostPosted: 2006-06-14 06:53:51 
Offline
User avatar

Joined: 2005-04-06 05:53:47
Posts: 124
NMY wrote:
то что он говорит- что там ошыбка- неозночает что там она и есть... проверь неустарел ли у тебя инжект...



А разве это играет ограмную роль? До этого все скрипты с аналогичной ходилкой работали на ура
ЗЫ спасиб поставлю новый инжект,может поможет


Top
   
 
 Post subject:
PostPosted: 2006-06-14 17:46:07 
Offline
Expert!

Joined: 2004-04-03 17:36:29
Posts: 2544
Location: Saint-Petersburg
NMY wrote:
проверь неустарел ли у тебя инжект...


И причем здесь это?

Dominator - пиши что за ошибка. Телепаты в отпуске.

_________________
Ни один скрипт не работает? Пора обновить Инжект...
Все работает, но хочется большего? Пора переходить на стелс...


Top
   
 
 Post subject:
PostPosted: 2006-06-15 00:26:23 
Offline
User avatar

Joined: 2005-04-06 05:53:47
Posts: 124
Edred wrote:
NMY wrote:
проверь неустарел ли у тебя инжект...


И причем здесь это?

Dominator - пиши что за ошибка. Телепаты в отпуске.



ЗЫ про "телепатов в отпуске" мне говорить ненадо
Проблема решена.


Top
   
 
 Post subject:
PostPosted: 2006-06-15 08:35:24 
Offline
Junior Expert
User avatar

Joined: 2004-06-24 22:08:56
Posts: 3220
Dominator wrote:
Edred wrote:
NMY wrote:
проверь неустарел ли у тебя инжект...


И причем здесь это?

Dominator - пиши что за ошибка. Телепаты в отпуске.



ЗЫ про "телепатов в отпуске" мне говорить ненадо
Проблема решена.

Не хамите, Edred совершенно прав, ну кроме телепатов... их тут вообще никогда не было.

Closed.


Top
   
 
Display posts from previous:  Sort by  
Post new topic  This topic is locked, you cannot edit posts or make further replies.  [ 6 posts ] 

All times are UTC+02:00


Who is online

Users browsing this forum: No registered users and 3 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