FindBitmap returns the coordinates of the bitmap in X and Y. Just change your if then statement into an if-then begin end else statement and then add a movemouse and clickmouse inside the new begin-end section.
You will also probably want to use better waits inbetween mouse movements. I don't know if the private server has a banning system, but its good practice to add Random(numberhere) to your waits.
Simba Code:
if FindBitmap(altar, X, Y) then
begin
WriteLn('Found altar, clicking it');
MoveMouse(X, Y);
Wait(50 + Random(25));
ClickMouse(X, Y, mouse_Left);
Wait(50 + Random(25));
end else
WriteLn('Altar not found');
Also, remove SetTargetBitmap(altar) as that will change what simba is targeting with its input and output functions(and you can't target a bitmap loaded in the memory with the mouse or keyboard very well
).
You will probably want to loop the altar and bone clicking so throw a repeat-until in there.
Simba Code:
begin
repeat
findaltar1;
findbones1;
until False;
end.
Finally you will want to only load the bitmap once and then free it at the end of the script, so that you do not create a memory leak.
Simba Code:
begin
altar := BitmapFromString(23, 20, 'meJyllEEKgzAQRc8gFIQe34WIYi' +
'WiKKK0tHgOF72GxQ4MfH6nxhYiD3GTN9/JJOv6WsPYtk3ecXwenJu' +
'nCVzbFgxVxfRlCbqiYMk8jj5uXQfGugYilIUseQwD2FV9ZHNOOZAc' +
'CtMPnNOWLJJUmApALfpc1JZImvVpvnoE5TgCosCUElUXQKIfBCM5d' +
'b+PMGoXiy0Q==');
repeat
findaltar1;
findbones1;
until False;
FreeBitmap(altar);
end.