I want to use the bandages, and when the clean bandages is over, I'll clean the bandages on the sea.
This is the script for cleaning the bandages;
Code: Select all
Program Test;
var
bands, bloodybands : cardinal;
procedure CleanBands;
Begin
FindType(bands, Backpack);
If (FindQuantity < 1) then
Begin
UseObject(bloodybands);
waitfortarget(2000);
TargetToTile(0, 560, 1107, 0);
end;
end;
Begin
bands := FindType($0E21, backpack);
bloodybands := FindType($0E20, backpack);
CleanBands;
End.
I tryied cleaning the bandages on a "water trough" on the ground as well, putting its tile information instead of the sea tile, buy it didn't work as well.
Does anyone have a clue how to solve this?
Thanks!