Mark
2011-08-13 16:38:58
HI well im back from uni for awhile and back scripting for my fav games
had an idea to write a auto sleeper for a game called AnoutherWorld.
But for some reason my code doesn't output anything it finds the word but doesn't output the string to the debug screen
I also want to know am i going about this the right way should i use DTM's or Bitmaps. Can i load Bitmaps from a Url?. If so Do you have a particular one you use.
had an idea to write a auto sleeper for a game called AnoutherWorld.
But for some reason my code doesn't output anything it finds the word but doesn't output the string to the debug screen
program AW_Sleeper;
{$I SRL/SRL.scar}
var
x,y,i,GlassBmp,AbilityDTM,AirDTM,AlikeDTM,BundieDTM:integer;
bb:string;
procedure FindSleepType;
var
a: array [1..5] of integer;
b: array [1..5] of string;
begin
a[1] := AbilityDTM; a[2] := AirDTM; a[3] := AlikeDTM;
a[4] := GlassBmp; a[5] := BundieDTM;
b[1] := 'Ability'; b[2] := 'Air'; b[3] := 'Alike';
b[4] := 'Glass'; b[5] := 'Bundie';
GlassBmp := DTMFromString('mwQAAAHic42RgYOAGYhEglgZiPiAWA2IXIHYHYlsg9gRidiBmBmIeqBp+IGYEYi4gFoTy////jxf/+vmTgRjASASGAwCmfhy0');
for i := 1 to 5 do
FindDTM(a[i],x,y,1,1,664,456);
Mouse(x,y,5,5,true);
i:=i;
if(i = 4)then
bb:= b[4];
Writeln('win');
Writeln(bb);
for i := 1 to 5 do
if not(FindDTM(a[i],x,y,1,1,664,456))then
Writeln('fail');
FreeDTM(0);
end;
begin
ActivateClient;
MouseSpeed:=(30);
FindSleepType;
end.I also want to know am i going about this the right way should i use DTM's or Bitmaps. Can i load Bitmaps from a Url?. If so Do you have a particular one you use.