Jump to content
seafight17

seafight icefloe under condryction

Recommended Posts

hallo everyone i need your help in a "repair" some errors i have on the way to make one sript for a online game(seafight)

Actually these days we are having event so i think the best way to get "advantage" is now!

SO here we are these days we have some ice floe

one picture of the game is

http://imageshack.us/photo/my-images/197/10363524.jpg/

 

i made one sript that soposed to :

1)hit the ice floe by presing the "f"

2) moving arond the map

3)repair

 

but it cant "find the icons" any soloutions?

thanks

myfirtsttest.scar

Edited by seafight17
Link to comment
Share on other sites

maybe this helps you a bit :)

 

function killscholle : boolean;
var schussi, drivi : integer;
begin
 drivi:=0;
 repeat
 inc(drivi);
   if (FindBitmaptolerance(attack, angriff_x, angriff_y, angriff_leuchtet_tolerance)=true) then begin
   writeln('attack gefunden - sendkey(angrifff);');
   sendkey(angrifff); wait(300);
   if (FindBitmaptolerance(atttacking, angriff_abbrechen_x, angriff_abbrechen_y, abbrechen_tolerance)=true) then begin
     repeat
     if (gamemessages=true) then schussi:=1000;
     wait(1000);
     Inc(schussi);
     if (FindBitmaptolerance(atttacking, angriff_abbrechen_x, angriff_abbrechen_y, abbrechen_tolerance)=false) then begin
       result:=true; schussi:=1000;
     end;

     until (schussi>400);
     if (schussi>400) and (schussi<1000) then begin
     reload; // reload browser page
     end;
     drive; // start random drive
   end;
   end else writeln('attack nicht gefunden');
 gamemessages;
 if (drivi>50) then begin
 result:=true;
   if(checkmove=true) then drive;
 end;
 until (result=true);
end;

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
  • Create New...