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

какой то глюк со скриптом
http://forum.yoko.com.ua/viewtopic.php?f=3&t=11477
Page 1 of 1

Author:  Sanch [ 2007-02-21 21:13:13 ]
Post subject:  какой то глюк со скриптом

Скрипты под инж пишу не первый день, первый раз такая фигня.

Code:
sub FighterLeft()
var a, b, c
uo.print('Кого будем бить?')
uo.exec('addobject AtackPlayer')
while uo.targeting()
  wait(100)
wend
uo.deletejournal()
wait(1000)
while not uo.dead()
  uo.warmode('1')
  uo.attack('AtackPlayer')
  repeat
    wait(100)
  until uo.life < 30 or uo.injournal('stop')
  uo.say('stop')
  uo.deletejournal()
  for a = 1 to 3
    uo.press(37)
    wait(300)
  next
  uo.findtype('0x0E20')
  if uo.findcount() > 0 then
    uo.waittargettype('0x1008')
    uo.useobject('finditem')
    wait(1000)
    checklag()
  else
    wait(50)     
  endif
  while uo.life <> uo.str
    if uo.count('0x0E21') == 0 then
      uo.print('Нет бинтов')
      return
    else
      wait(50)
    endif
    b = 0
    uo.deletejournal()
    uo.setarm('1')
    uo.bandageself()
    wait(500)
    uo.arm('1')
    uo.unsetarm()
    repeat
      wait(100)
      b = b + 1
    until b > 35 or uo.injournal("You don't need healing") or uo.injournal('You apply the') or uo.injournal('You put the bloody')
  wend
  for c = 1 to 3
    uo.press(39)
    wait(300)
  next
wend
end sub


Это скрипт на спаринг, чар почему-то игнорируя журнал бегает туда сюда и кричит stop, как-будто тот в журнале не удаляется или хп меньше 30, хотя оно полное, вобщем мож кто что подскажет умное?

Author:  Nmy [ 2007-02-21 21:52:03 ]
Post subject: 

скрипты на спарринг тут хватает :!:

Code:
while uo.life <> uo.str
:?: :?:

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