Nmy нашол 3 скрипта на старый Антимакрос !
Code:
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
Code:
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
Code:
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
Надеюсь помогут !