puj
2006-04-27 13:35:27
In my bone buryer i am making when it finds the bone it doesnt click it very often. this is also happening for the bones that are in my inventory when i try to drop them.
Only 1 out of about 10 of the bones hovered over are clicked on and picked up and it is symilar for the bones to drop. Also it is weird because sometimes it picks up nearly all of the bones and the next minute it isn't working again.
I have the latest SRL and have no idea whats wrong.
Here is he script so far.
Only 1 out of about 10 of the bones hovered over are clicked on and picked up and it is symilar for the bones to drop. Also it is weird because sometimes it picks up nearly all of the bones and the next minute it isn't working again.
I have the latest SRL and have no idea whats wrong.
Here is he script so far.
program BoneBuryer;
{.include SRL/SRL.scar}
//******************** Set These Constants if Needed *******************//
const
Bonecolour1 = 13355985;
Bonecolour2 = 13948122;
Bonecolour3 = 14342878;
//************************************************************************//
procedure PickUpBone;
begin
FindObjectMulti('Bones', 'feathers', 'Bones', Bonecolour1,Bonecolour2,Bonecolour3,2,1,true,true)
end;
//*************************************************************************//
procedure bury;
begin
repeat
if (FindItemName('Bones')) then
Mouse(x, y, 0, 0, false);
ClickOption('Bury',2)
until ((FindItemName('Bones')) = false)
end;
//*************************************************************************//
//
// Main EventLoop
//
//*************************************************************************//
begin
SetupSRL;
//SetRun(true);
repeat
FindNormalRandoms;
PickUpBone;
if InventoryFull or (not(FindObjFast(x, y, 'Bones', Bonecolour1, 5)))then bury
until(false)
end.
As you can see i am getting it to pick up any feathers if found too. :)