SRL Archive - RS3 Help

How to move an item from Backpack to Actionbar?


boscolamhk

2014-12-29 23:49:38

I would like to move an iron ore from backpack to actionbar slot 2 and I try to use the following:

if findDTM(ore.oreDTM, oreX, oreY, tabBackPack.getBounds()) then
begin
mouse(point(oreX, oreY));
if isMouseOverText(['re'], 2000) then
dragMouse(actionBar.getSlotBox(2))
else
begin
WriteLn('We cannot find the ore...Terminating Script.');
TerminateScript();
end;
end else;

But the parameter inside dragMouse function is a TPoint instead of TBox….How to fix it?

KeepBotting

2014-12-29 23:59:37

dragMouse(getRandomPoint(actionBar.getSlotBox(2)))

Will that work?

boscolamhk

2014-12-30 01:46:21

From: KeepBotting
dragMouse(getRandomPoint(actionBar.getSlotBox(2)))

Will that work?



if findDTM(ore.oreDTM, oreX, oreY, tabBackPack.getBounds()) then
begin
mouse(point(oreX, oreY));
if isMouseOverText(['re'], 2000) then
dragMouse(getRandomPoint(actionBar.getSlotBox(2)))
else
begin
WriteLn('We cannot find the ore...Terminating Script.');
TerminateScript();
end;
end else;

It doesn't work. It says:
Error: Unknown declaration "getRandomPoint" at line 182
Compiling failed.

riwu

2014-12-30 02:04:34

dragMouse(actionBar.getSlotBox(2).getRandomPoint())

boscolamhk

2014-12-30 02:49:43

From: riwu
dragMouse(actionBar.getSlotBox(2).getRandomPoint())


Great and thanks!

KeepBotting

2014-12-30 10:06:46

From: riwu
dragMouse(actionBar.getSlotBox(2).getRandomPoint())


Touché

The Mayor

2014-12-31 15:03:30

From: boscolamhk
I would like to move an iron ore from backpack to actionbar slot 2


You should check out my VEB miner; it's got some action bar stuff.