| Yoko http://forum.yoko.com.ua/ |
|
| Подправте плз скрипт на спаринг http://forum.yoko.com.ua/viewtopic.php?f=17&t=14073 |
Page 1 of 1 |
| Author: | asder [ 2008-10-18 16:24:48 ] |
| Post subject: | Подправте плз скрипт на спаринг |
Суть в том што я бью чела потом хилю его и опять бью...Но 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 |
|
| Author: | Millerbeer [ 2008-10-18 16:32:06 ] |
| Post subject: | |
Code: uo.UseType(bloody)местами их поменяй, uo.UseType(bloody) наверх, а uo.WaitTargetObject(washing) вниз |
|
| Page 1 of 1 | All times are UTC+02:00 |
| Powered by phpBB® Forum Software © phpBB Limited https://www.phpbb.com/ |
|