SRL Archive - OSR Help

Making a 07 Hunting script (Need help)


andryaze

2013-03-01 19:43:53

Atm i have 2 questions.

procedure checkTrap;

Begin

trapcol := 5723997 Writeln('Found Trap');
if P07_FindObj(x, y, 'Check', trapcol, 0) then
Begin
wait(randomrange(100, 200));
ClickMouse2(mouse_left);
wait(randomrange(1000, 2000));
Begin
P07_DropInventorySlot(2);
wait(1000);
P07_DropInventorySlot(3);
wait(1000);
Begin
wait(3000);
ClickMouse2(mouse_left);
end;
end;
end;
end;

^this kinda waits until a bird trap is succesful. Then it drops slot 2 and 3. After that i'll write more to start over and over.

1. Question: The mouse is like instant moving above the trapcol colour. How can i fix that?

2. Question: Once the items in slot 2 and 3 are dropped the bot should walk back to a specific spot and start again. How can i make it remember at the beginning of the script where it starts and to walk back once u've done something?

Ian

2013-03-01 19:50:49

1. You can set the mouse speed like this:
SetMouseSpeed := 10;
(I think the default is 20)

2. Walking to a specific spot might be hard, but you could make a DTM for the spot and use ClickDTMRotated to walk to it.

I hope that helps ;)