While poking around in batclient's code I noticed that the plugin and for that
matter also the scripting interface is far more powerful than
http://www.bat.org/batclient/javadoc/ makes it look like, there are plenty of
functions that can be used, but simply aren't mentioned. The first such
function I found was in 'ClientGUI' the function 'printMap(ParsedResult pr)'
with that you can print directly in the map window. But far more important
there is also a public membervariable named 'partyFrame' which points to the
party window. Yes koho that is overwhelming powerful. Unfortanely mythicscape
decided to rename all the functions in that class to such silly things like
"do,for,if,case,byte", the problem with that is while the java vm is
perfectly fine with executing them, no matter how they are named the java
compiler dislikes these names. So to use the functions there we have to
directly invoke them - that means the get the class-object 'getClass()' and
then get the methodes from the class 'getDeclaredMethods()' and invoke them
'invoke(Object, Object...)'. I am posting this now because I won't have much
time tomorrow and want to share what I found sofar, this is a list of the
functions and my guess on what they do.
http://pastebin.com/PPW3vmkf
The most useful one sofar is probably 'java.lang.String case(int,int)' which
returns the player name of the player in the position row,cols. This should
allowed to rewrite the 1 button heal script to not need @partyTarget.