i need some help to make a script. this script has to answer a kind of macro check. and they use gump for it. by the way, injection can answer it. i guess.
GUMPINFO 1:
First we have to click on it: _____infogump_______
serial 0x01361d63
gumpid 0x0008b297
X 0
Y 0
107 packet size
0 reply packet size
Buttons: ________
page 0
1 [ 1] image=0x1582 at 3:67
Checks&Radios: __
Entryes: ________
All commands: ____
1] NoClose
2] button 3 67 5505 5506 1 0 1
3] text 0 126 38 0
Text: ____________
0] Anti Macro
IMG GUMP1:
GUMP INFO 2:
and then comes the numbers that we have to write.
sub Solve()
var code = ""
var line = ""
var i = 0
if not uo.LastGump('replyed') then
if uo.LastGump('text', 0) == 'Anti Macro' then
uo.LClick(3, val(Left(uo.LastGump('button', 0), 3)))
repeat
wait(1000)
until uo.LastGump('replyed', 0)
return 1
else
if uo.LastGump('text', 1) == 'Digite os numeros abaixo:' then
line = uo.LastGump('text', 2)
for i = 0 to int(len(line)/3)-1
code = code+line[2+i*3]
next
uo.Say(code)
wait(1000)
line = Right(uo.LastGump('button', 0), 7)
uo.LClick(val(Left(line, 3)), val(Right(line, 3)))
repeat
wait(1000)
until uo.LastGump('replyed', 0)
return 2
end if
end if
endif
end sub
If first gump apear it's do click and return 1
second enter numbers (is TextEntry clear?) then click and return 2
if nothing return 0