SRL Archive - Reflection Help

R_WithdrawItem(isn't working for me)


footballjds

2011-03-03 07:41:10

So i was using R_WithdrawItem to withdraw some tuna. Yes, i have the correct ID.
It will move the mouse over the tuna, right click, then writeln **** error tried grabbing wrong item ****

atm im using my own function (DTM based) to withdraw items from the bank.
but if someone could tell me whats up that'd be great.


EDIT:
also, if someone would like to tell me the best way to use reflection to jump the wilderness barrier i'd REALLY appreciate it. Thanks, (:

Echo_

2011-03-03 14:28:37

Have you tried using WithdrawItemEx instead?

Here's a procedure to cross the wilderness barrier with reflection.

procedure ClickWildiWall;
var
Barrier: TTile;
P: TPoint;
begin
Barrier := Tile(TileX, TileY);//Tile x and Tile y values here

if (DistanceFrom(Barrier) > 3) or not TileOnMS(Barrier, 10) then
begin
if not(TileOnMM(Barrier)) then
begin
Writeln('Could not find the wilderness barrier.');
Exit;
end;
WalkToTile(Barrier, 0, 0);
Wait(50);
R_Flag;
Wait(RandomRange(100, 200));
end;
if not(TileOnMS(Barrier, 10)) then
begin
SetAngle(True);
MakeCompass('n');
Wait(RandomRange(200, 400));
if not(TileOnMS(Barrier, 10)) then
begin
Writeln('Could not find the wilderness barrier.');
Exit;
end;
end;

P := TileToMS(Barrier, 10);
MMouse(P.x - 5, P.y - 5, 1, 1);
Wait(RandomRange(200, 300));
if R_IsUpText('ness wall') then
begin
GetMousePos(P.x, P.y);
Mouse(P.x, P.y, 0, 0, true);
end;
end;

footballjds

2011-03-03 14:36:45

Thanks Echo_
although i already have a way to cross the wildy barrier and personally i think its better(like 1/8 the lines of code)
thanks for the help though, (:

if you look at what R_WithdrawItem does it is just R_withdrawItemEx…

Bad Boy JH

2011-03-04 23:31:25

Reflection withdrawing is broken I am putting the finishing touches onto a new way to use it, but it will be slightly more complicated.

footballjds

2011-03-08 15:57:37

who are you?

rogeruk

2011-03-08 16:14:16

Item withdrawing works fine for me.

Bad Boy JH

2011-03-11 20:58:21

Reflection Withdrawing has trouble detecting which tab the item is on.

Footballjds, do you mean me?

Yago

2011-03-12 14:38:55

Does it still have trouble?