Yoko
http://forum.yoko.com.ua/

Всем узникам каторги ДРВ
http://forum.yoko.com.ua/viewtopic.php?f=20&t=5424
Page 1 of 1

Author:  Cornor [ 2005-10-09 18:41:34 ]
Post subject:  Всем узникам каторги ДРВ

pozalusta pomagite papki voruma :roll:
problema takaja est skript na katorgu na drw no on 4eto neidet
kada podxazu k derevu pervomu i zapuskajy pi6et vot 4to :
Line 2851: Label already defined in this proc - GOTOXY::START
vot skript :
Code:
######Всем узникам каторги ДРВ.
###### Вставьте Тип топора в строчке UO.Usetype("0x0f44")(sub kopok())

sub main()
begin:
gotoxy(1328,938,0)
kopok(3296,1328,936)
kopok(3280,1330,935)
gotoxy(1326,938, 0)
gotoxy(1326,933, 0)
kopok(3280,1324,936)
kopok(3302,1324,933)
kopok(3299,1328,933)
kopok(3293,1324,930)
kopok(3288,1328,930)
gotoxy(1326,931, 0)
gotoxy(1319,931, 0)
gotoxy(1319,930, 0)
kopok(3277,1320,933)
kopok(3296,1316,933)
kopok(3286,1320,927)
gotoxy(1322,931, 0)
gotoxy(1322,921, 0)
kopok(3296,1320,924)
kopok(3280,1320,921)
kopok(3286,1320,918)
kopok(3283,1324,918)
gotoxy(1327,921, 0)
gotoxy(1327,915, 0)
kopok(3286,1324,915)
kopok(3288,1328,918)
kopok(3286,1324,912)
kopok(3283,1328,912)
gotoxy(1327,906, 0)
gotoxy(1326,906, 0)
kopok(3293,1324,909)
kopok(3302,1328,909)
kopok(3280,1328,906)
kopok(3288,1324,906)
kopok(3299,1324,903)
gotoxy(1326,897, 0)
kopok(3299,1328,897)
kopok(3291,1328,900)
kopok(3277,1328,894)
gotoxy(1318,897, 0)
kopok(3291,1320,900)
kopok(3291,1316,900)
kopok(3299,1316,897)
kopok(3302,1316,894)
gotoxy(1318,889, 0)
kopok(3283,1316,891)
kopok(3283,1320,891)
kopok(3299,1320,888)
kopok(3291,1316,888)
gotoxy(1314,889, 0)
gotoxy(1314,900, 0)
kopok(3280,1312,900)
kopok(3291,1312,897)
kopok(3288,1312,903)
gotoxy(1314,944, 0)
gotoxy(1318,944, 0)
gotoxy(1318,949, 0)
UO.useobject("0x401258E1")
gotoxy(1328,949, 0)
goto begin
end sub





sub tohide()
   while NOT UO.Hidden()
      UO.DeleteJournal()
      UO.UseSkill('Stealth')
      repeat
         wait(50)
      until UO.InJournal('You have hidden') OR UO.InJournal('seem to hide')
   wend
end sub


sub kopok(t,i,j)
ToHide()
 var mx, my, mz, mt, q
 mx = UO.GetX("self")
 my = UO.GetY("self")
 mz = UO.GetZ("self")
 UO.DeleteJournal()
 mx = i
 my = j
 mt = t
 q = 0
   while not UO.InJournal("no logs") and not UO.InJournal("location") and not UO.InJournal("far away") and not UO.InJournal("It appears") and not q==5
      UO.Print("Now Mining In: "+str(mx)+" "+str(my))
      UO.DeleteJournal()
      q=q+1
      UO.Waittargettile(str(mt), str(mx), str(my), str(mz))
      UO.Usetype("0x0F44") ; type  топора вставить надо!!!!!!!!!!!!!
            while not UO.InJournal("You put") and not UO.InJournal("location") and not UO.InJournal("no logs") and not UO.InJournal("but fail") and not UO.InJournal("far away") and not UO.InJournal("It appears") and not UO.InJournal("OOPS") and not UO.InJournal("attacking you")
               wait (300)
            wend
         if UO.InJournal("You put") then
            q=0
         end if

         wend
         UO.DeleteJournal()
wait(200)
end sub


sub CheckLag()
   UO.DeleteJournal()
   UO.Click('backpack')
   repeat
      wait(50)
   until UO.InJournal('backpack')
end sub


sub getcoord()
var a,b,c
   a = UO.GetX("self")
   b = UO.GetY("self")
   c = UO.GetZ("self")
   
   UO.Print("Position  "+STR(a)+", "+STR(b)+", "+STR(c))
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

Author:  Grin [ 2005-10-09 19:12:59 ]
Post subject: 

провел не большой тест... Все работает. никаких ошибок небыло ( кросме как компиляции с форума)...
На каком этапе происходит?

Author:  Cornor [ 2005-10-09 19:15:37 ]
Post subject: 

srazuze ... beru tapor v ruki podxazu k 1 derevu zapuskajy skript i vse bac o6ibka esli est icq stukni plz maja vot : 214298069

Author:  Cornor [ 2005-10-09 20:02:18 ]
Post subject: 

vse spasibo Griny :) problemka re6ena

Page 1 of 1 All times are UTC+02:00
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/