Я шяс попроббую подругому немного.. наброски скину сюда.. нужна будет помощь в вычеслениях.. как правельно их написать.. про гумпид пока скажу так.. есть 4 пятерки и у всех он разный.. буду собирать есчо
Code:
sub testt()
var code, coden, coda, codd
code=mid(uo.LastGump('All commands', 4), 12, 3)
#code=left('code',3)
coden=mid(uo.LastGump('All commands', 5), 12, 3)
#coden=left('coden',3)
coda=mid(uo.LastGump('All commands', 6), 12, 3)
#coda=left('coda',3)
codd=mid(uo.LastGump('All commands', 7), 12, 3)
#codd=left('codd',3)
if coden-code == 1|2|3|4|-1|-2|-3|-4| then
if coda-coden == 5|6|2|3|4|-2|-3|-4|-5|-6 then
if codd-coda == 7|8|9|10|11 then
tt=1
uo.print(t=1 five detected)
wait(500)
uo.print(t=1 five detected)
wait(500)
uo.print(t=1 five detected)
endif
endif
endif
endsub
12 строка парс эрор.
вот строки с данными
Code:
4] umppic 376 120 236
5] umppic 385 125 236
6] umppic 366 130 236
7] umppic 386 136 236
8] umppic 363 139 236
из них беру координаты по Y которые 120-130 и лезет ошибка
пытаюсь зделать вычесления.. обьявленые переменные это вырезаные куски кооринат точек.
Code:
sub testt()
var code, coden, coda, codd
var codeone, codetwo, codetre
code=mid(uo.LastGump('All commands', 4), 12, 3)
coden=mid(uo.LastGump('All commands', 5), 12, 3)
coda=mid(uo.LastGump('All commands', 6), 12, 3)
codd=mid(uo.LastGump('All commands', 7), 12, 3)
codeone=val(coden-code)
codetwo=val(coda-coden)
codetre=val(codd-coda)
if codeone == (1|2|3|4|-1|-2|-3|-4|) then
if codetwo == (5|6|2|3|4|-2|-3|-4|-5|-6) then
if codetre == (7|8|9|10|11) then
tt=1
uo.print('t=1 five detected')
wait(500)
uo.print('t=1 five detected')
wait(500)
uo.print('t=1 five detected')
endif
endif
endif
endsub
И тут та же ошибка.. блин незнаю куда ковырять