Use exec("recall self <number>") to choose gump button BEFORE gump is opened. (CAUTON: you must ",set norbcheck 1" and ",set norbcalc 1"!!!) For example :
Code: Select all
uo.useobject("_OLH") # use hammer
exec("recall self 21") # before gump opens, make a choise
will make last item
Button numbers and what they means:
Code: Select all
1 + x*7 - will choose caterogy number x (counting from 0), for example ,recall self 1 will choose "ringmails" category
2 + x*7 - will make x'st item from current category list
3 + x*7 - will open x'st item from current category list properties
4 + x*7 - will make x'st item from "last ten" list
5 + x*7 - will open x'st item from "last ten" list properties
6 + x*7 - will choose x'st material (i think, it should be called only when "select material" gumb must appear)
7 + x*7 - will choose one of "special" buttons
Special buttons:
Code: Select all
7 - select material (iron/leather/hides etc)
14 - smelt item
21 - make last
28 - open "last ten" list
35 - toggle "use/don't use material's color" (in "select material" gump)
42 - repair item
49 - toggle "mark/prompt for mark/don't mark"
56 - select material (scales)
63 - enhance item
70 - ?
....
What ",recall self" with 0 and 70 does?
If somebody knows more about any AOS gumps - please, post it here...