вот тут открылся уо.спот.лв и появился бесючий антимакрос каждые 5 мин вылетает я несилён в Инже прошу селать скриптик после Гампа и скрина раскажу как я думаю ево обоити !
Так вот в аамакросе нада стерать What is in the picture? и вписывать правельный вариант на 2 скрине это Gold , и таких картинок 5-10 вариантов ... и вот что я хочю при появлении картинки он определял по вариантам ответов , тоесть если он видет (2-й скрин) Golg-Mouse-Hungry-Moushroom-Pike-Forge то вписывал бы Gold , если видет Grass-Modern-Farmacy-Scroll-Bench-Net то вписал бы Net и т.д. недеемся что вы справетесь ево обойти зарание спосибо...
Грин нужен, если проблемой является определить, что именно нужно вводить.
Как нас заверяет автор - проблемы в этом нет.
Кто не знает таких команд как:
uo.press()
uo.say()
uo.lclick()
? - Встали и пошли вон отсюда!
Кто еще тут? - Напишите автору топика решение.
YokoInjection CodeSweeper Function not found?
Possession of mathematics at the level of art - a gift that is only available for election.
Sorry for my clumsy English.
Telegram: @tatikom
sub antimacro()
while not uo.Dead()
if not uo.LastGump("replyed") and uo.LastGump("command", 5) == "heckertrans 9 9 304 16" then
uo.lclick(uo.LastGump('x')+180, uo.LastGump('y')+100)
wait(300)
uo.say(chr(8)+str(Calc()))
wait(300)
uo.lclick(uo.LastGump('x')+60, uo.LastGump('y')+140)
endif
wait(1500)
wend
endsub
sub GetInfo(A)
var s = ""
var TextIndex = 0
var num = 0
for var i = 6 to 15
s = uo.LastGump("command", i)
if Left(s, 3) == "ext" then
if s[3] == " " then
A[Int(val(mid(s, 4, 3))/10-2)] = uo.LastGump("text", TextIndex)
endif
TextIndex = TextIndex+1
end if
next
end sub
sub Calc()
Dim Operands[16]
GetInfo(Operands)
Operands[2] = val(Operands[2])
Operands[10] = val(Operands[10])
if Operands[8] == "+" then
return Operands[10]+Operands[2]
else
if Operands[8] == "-" then
return Operands[2]-Operands[10]
else
if Operands[8] == "*" then
return Operands[2]*Operands[10]
else
return Operands[2]/Operands[10]
end if
endif
endif
return 0
end sub
sub Calc()
Dim Operands[16]
GetInfo(Operands)
Operands[2] = val(Operands[2])
Operands[10] = val(Operands[10])
if Operands[8] == "+" then
return Operands[10]+Operands[2]
else
if Operands[8] == "-" then
return Operands[2]-Operands[10]
else
if Operands[8] == "*" then
return Operands[2]*Operands[10]
else
return Operands[2]/Operands[10]
end if
endif
endif
return 0
end sub
sub antimacro() #Ealonzanu...
while not uo.Dead()
if uo.LastGump('replyed') == 0 and uo.LastGump('gumpid') == '00000445' then
uo.lclick(uo.LastGump('x')+180, uo.LastGump('y')+100)
wait(300)
uo.say(chr(8)+str(Calc()))
wait(300)
uo.lclick(uo.LastGump('x')+60, uo.LastGump('y')+140)
endif
wait(1500)
wend
endsub
sub Calc()
var max, min, opr
var s, n
for var i = 0 to 8
s = uo.LastGump('text', i)
n = val(s)
if n > 100 then
max = n
else
if n > 0 then
min = n
else
if s == '+' then
opr = s
endif
endif
endif
next
if opr == '+' then
return max+min
endif
return max-min
endsub
sub antimacro() #Ealonzanu...
while not uo.Dead()
if uo.LastGump('replyed') == 0 and uo.LastGump('gumpid') == '00000445' then
uo.lclick(uo.LastGump('x')+180, uo.LastGump('y')+100)
wait(300)
uo.say(chr(8)+str(Calc()))
wait(300)
uo.lclick(uo.LastGump('x')+60, uo.LastGump('y')+140)
endif
wait(1500)
wend
endsub
Варианта 2
1. Перемолоть tiledata.mul и выдрать все имена.
2. Обучить свой скрипт на личном примере:) Наверняка список предметов не такой большой, объединив друзей быстро на тыкаете полный список вариантов.
Изучаете формат tiledata.mul и выдергиваете все имена оттуда.
тот же POL эмулятор конвертирует в файл tiles.cfgб от туда уже можете забрать почти в готовом виде.
Ну а первый вариант давно уже должны были сами сделать, да и первый тоже...
чото я нехрена непонемаю мне ненужно знать какие тама есчо варианты , мне нада сам скрипт на обход Антимакроса , чтоб варианты постепенно добовлять можно было !
Grin wrote:Изучаете формат tiledata.mul и выдергиваете все имена оттуда.
тот же POL эмулятор конвертирует в файл tiles.cfgб от туда уже можете забрать почти в готовом виде.
Ну а первый вариант давно уже должны были сами сделать, да и первый тоже...
sub backspace()
var x=123
var y=123
var n
checklag()
uo.click(x,y)
wait(1000)
for n=0 to 30
uo.say(chr(8))
checklag()
wait(100)
next
endsub
sub checklag()
repeat
UO.DeleteJournal()
UO.Click('backpack')
until backpack()==1
endsub
sub backpack()
var n
for n=0 to 200
if uo.injournal('a backpack') then
return 1
endif
wait(200)
next
endsub
Сказать что в картинке просто - uo.say('Gold')
15] ilepic 120 30 784
15] ilepic 120 50 382
это наверно отвечате за картинку. я думаю это x y и ид
sub decode()
if uo.LastGump('text',1) == "Sco*" then
uo.msg('Scorpion')
Else
uo.print('No Fond')
End if
end sub
sub AAmacro()
while not uo.dead()
if uo.LastGump('text',0) == 'What is in the picture?' and uo.LastGump('replyed') == 0 then
wait(300)
uo.say(backspace())
uo.lclick(uo.LastGump('x')+32, uo.LastGump('y')+180)
uo.say(decode())
wait(300)
;uo.lclick(uo.LastGump('x')+120, uo.LastGump('y')+210)
end if
wait(10000)
wend
end sub
sub backspace()
var n
wait(500)
for n=0 to 23
uo.lclick(uo.LastGump('x')+32, uo.LastGump('y')+180)
uo.say(chr(8))
wait(500)
next
endsub
YokoInjection CodeSweeper Function not found?
Possession of mathematics at the level of art - a gift that is only available for election.
Sorry for my clumsy English.
Telegram: @tatikom