Clean bandages on water
Posted: 28.03.2013 18:19
I'm doing a script for training healing.
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;
But the system keeps returning "Clean bloody bandages in water", as if there's not water on that tile. I'm sure it's a water tile, but It doesn't work.
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!
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!