Yoko

All sides of Injection
It is currently 2026-01-18 16:38:40

All times are UTC+02:00




Post new topic  Reply to topic  [ 3 posts ] 
Author Message
PostPosted: 2005-03-16 23:30:54 
Offline

Joined: 2005-02-18 12:21:44
Posts: 2
sub fight()


while 1
gotoxy(1213,444,0) # êîîðäèíàòû êóäà ïîäõîäèòü ê ïðîòèâíèêó
UO.usetype("0x1B76") # òèï ùèòà
uo.usetype("0x0F51") # òèï îðóæèÿ
UO.Exec("attack 0x0036A133") #àéäè 2-ãî ÷àðà
Repeat
wait (500)
if uo.injournal("destroyed")then
UO.usetype("0x0F51") # òèï îðóæèÿ
uo.deletejournal()
endif
Until ((UO.GetHP("0x003286FC") <75)or (UO.GetHP("0x0036A133") <100)) #
#æèçíè 1-ãî è 2-ãî ÷àðà
repeat
UO.Exec("warmode 0") # âûêëþ÷àåì âàð ìîä
UO.Press(35) # êîä êëàâèøè End
UO.Press(35) # êîä êëàâèøè End
until (uo.GetY() < 1210)# êîîðäèíàòû ïî Y êóäà îòõîäèòü ÷òîáû ëå÷èòü(ñÿ)
UO.DeleteJournal()
Repeat
UO.Usetype("0x0E21") #Bandages
UO.Exec("waittargetobject 0x0036A133") # àéäè 2-ãî ÷àðà
wait(3500)
Until (UO.InJournal("need you"))
UO.DeleteJournal()
Repeat
UO.Usetype("0x0E21") #Bandages
UO.Exec("waittargetobject 0x003286FC") # àéäè 1-ãî ÷àðà
wait(3500)
Until (UO.InJournal("need healing"))
wend
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(35)
goto start
endif
#UO.Print("U")
UO.Press(38)
goto start
end sub

sub Healing()
UO.SetArm('CWeapon')
UO.Exec("bandageself")
wait(500)

UO.Arm('CWeapon')

взял скрипт на этом форуме.., чары не прекращают драться.. когда первый отходит, чтоб лечить.....
народ плиз... помогите...


Top
   
 Post subject:
PostPosted: 2005-03-18 21:28:18 
Offline
User avatar

Joined: 2004-07-10 00:38:43
Posts: 203
Location: From DrW
Говорил и говорить буду - КРИВЫЕ РУКИ.
Сноси бинды с описанных в макросе клавиш и вводи правильно координаты :twisted:

_________________
Нет ничего невозможного...
Кто ИЩЕТ, тот всегда найдёт...
Code:
sub UO() 
UO.Chto-To("S Chem-To")
end sub

© I'm


Top
   
 Post subject:
PostPosted: 2005-03-19 13:47:03 
Offline

Joined: 2004-12-09 03:29:14
Posts: 44
gotoxy(1213,444,0) # меняй координаты на свои


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

All times are UTC+02:00


Who is online

Users browsing this forum: Bing [Bot] and 1 guest


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