Yoko

All sides of Injection
It is currently 2026-01-17 12:39:42

All times are UTC+02:00




Post new topic  Reply to topic  [ 1 post ] 
Author Message
PostPosted: 2004-11-12 18:07:30 
Offline

Joined: 2004-11-04 20:47:47
Posts: 8
Это скрипт на спаринг (не мой)
проблема в том что он не подходит назад к чару :(
т.е он бьёт второго чара потом отходит лечит себя и его но потом не подходит а просто начинает читать кол-во здоровья того 2 чара (как при драке) вставте плиззз чтобы он подходил назад

sub war()
var h1 = UO.GetHP("0x000D2F03"); #ID 2 4ara
wait (10000)
while 1
UO.usetype("m") # tipe mecha
UO.usetype("h") # tipe 6ita
UO.Exec("attack 0x000D2F03") #ID 2 4ara
Repeat
wait (500)

if UO.Life < 80 or h1 < 140 then
UO.Exec("warmode 0")
UO.DeleteJournal()
gotoxy(uo.getX(),uo.getY())
end if
wend
end sub

sub heal()
while 1
Repeat
UO.Usetype("0x0E21") #Bandages
UO.Exec("waittargetobject 0x000d2f03") #ID 2 4ara
wait(4500)
Until (UO.InJournal("does not need you"))
HealMi()
wend
end sub

sub healMi()
if UO.Life < UO.Str then
while 1
Repeat
UO.Usetype("0x0E21") #Bandages
UO.Exec("waittargetobject 0x000B4401") #ID svoi
wait(4500)
Until (UO.InJournal("need healing or cure"))
UO.usetype("m")
UO.usetype("h")
gotoxy(uo.getX(),uo.getY())
wend
end sub

sub gotoXY(x,y)
var myX,myY,lastX=1913,lastY=1111 # vstat radom s 2 4arom i zapisat svoi koordinati
MyX=uo.getX();
MyY=uo.getY();
if LastX==MyX AND LastY==MyY then
uo.press(38)
uo.press(38)
uo.press(39)
heal()
else
uo.press(39)
war()
end if
return 0
end sub


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

All times are UTC+02:00


Who is online

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