ruler
2006-12-04 06:29:53
This has a ways to go and i dont think it will be 100% compilant.
However with some thinkering some scripts may be able to made to work in the far far future.
Goals:
[x] Provide a way for some scar scripts to run on ibot.
[x] point functions that were in scar to the internal ibot functions
[x] get bitmapToString source
I want to make it clear the speeds of this will never beat ibot since this is intrepeted.
Writing scripts in java will ALWAYS be faster.
LOL at progess:

A working example
However with some thinkering some scripts may be able to made to work in the far far future.
Goals:
[x] Provide a way for some scar scripts to run on ibot.
[x] point functions that were in scar to the internal ibot functions
[x] get bitmapToString source
I want to make it clear the speeds of this will never beat ibot since this is intrepeted.
Writing scripts in java will ALWAYS be faster.
LOL at progess:
A working example
public class XY
begin
var x: integer;
var y: integer;
constructor XY();
begin
end;
procedure setX(xx: integer);
begin
x := xx;
end;
procedure setY(yy: integer);
begin
y := yy;
end;
procedure move();
begin
movemouse(x,y);
end;
function getX(): integer;
begin
result := x;
end;
function getY(): integer;
begin
result := y;
end;
end;
var p:array [1..3] of XY;
begin
writeln('start');
p[0]:= new XY();
p[0] .setX(250);
p[0] .setY(250);
p[0].move();
p[0] .setX(350);
p[0] .setY(350);
p[0].move();
writeln('end');
end.
TOTAL: 391 milliseconds or .391 seconds
TOTAL: 3296 milliseconds or 3.296 seconds