Подправте плз скрипт на спаринг

Ask for scripts here

Moderators: Murderator+, Murderator

Post Reply
asder
Posts: 3
Joined: 2008-10-03 15:04:05

Подправте плз скрипт на спаринг

Post by asder »

Суть в том што я бью чела потом хилю его и опять бью...Но 1 проблема, немоет кровавые бинты в воде, помогите плз
Сам скрипт:

sub Training()
var bandage='0x0E21' # Тип бинтов
var washing='0x000EAFD0' # Тип корыта
var bloody='0x0E20' # Тип кровавых бинтов
# Спаринг 1.00.
uo.AddObject('opponent')
while uo.Targeting()
wait(100)
wend
while not uo.Dead()
if uo.GetHp('opponent') <> uo.GetMaxHp('opponent') then
uo.WarMode(false)
Walk(3922,300)
while uo.GetHp('opponent') <> uo.GetMaxHp('opponent')
uo.WaitTargetObject('opponent')
uo.UseType(bandage)
wait(3500)
uo.GetHp('opponent')
wend
end if
if uo.GetHp('self') <> uo.GetMaxHp('self') then
uo.WarMode(false)
Walk(3922,300)
while uo.GetHp('self') <> uo.GetMaxHp('self')
uo.WaitTargetObject('self')
uo.UseType(bandage)
wait(3500)
wend
uo.UseType(bloody)
uo.WaitTargetObject(washing)
wait(750)
end if
uo.WarMode(true)
Shield()
wep()
uo.Attack('opponent')
wait(500)
Walk(3922,300)
while (uo.GetHp('opponent') > uo.GetMaxHp('opponent')/3) && (uo.Life > 100)
wait(500)
wend
wend
end sub

sub Shield()
var shield='0x1B76'
uo.FindType(shield,'-1','backpack')
if uo.FindCount() then
uo.UseObject('finditem')
end if
end sub

sub wep()
var wep='0x0EC2'
uo.FindType(wep,'-1','backpack')
if uo.FindCount() then
uo.UseObject('finditem')
end if
end sub

sub Walk(x,y)
go:
while not uo.getX() == x || not uo.getY() == y
if not uo.getX() == x then
if uo.getX() > x then
uo.press(36)
else
uo.press(34)
endif
endif
if not uo.getY() == y && uo.getX() == x then
if uo.getY() > y then
uo.press(33)
else
uo.press(35)
endif
endif
wend
if not uo.getX() == x || not uo.getY() == y then
goto go
endif
endsub
Millerbeer
Posts: 247
Joined: 2008-09-12 05:07:34

Post by Millerbeer »

Code: Select all

uo.UseType(bloody) 
uo.WaitTargetObject(washing)
местами их поменяй, uo.UseType(bloody) наверх, а uo.WaitTargetObject(washing) вниз
Post Reply