SRL Archive - Reflection Help

R_WithDrawItem Not working :S


Brandon

2011-07-03 12:16:02

I've been trying to do:

const

Logs = 1515; // Yew Logs ID..

var Index: Integer;

begin
R_WithdrawItemEx(Logs,0,Index,false);
end;

Note: I also tried R_WithdrawItem(Logs, 0);

DEBUG:

[Reflection] Randoms var set!
[12:06:54 PM] Successfully opened bank
[R_BankTab] Tab already open
488
[R_BankTab] Tab already open
[R_WithdrawItemEx] Item not in first tab, switching tabs
1409
[R_WithdrawItemEx] Item in Tab: 1
[R_BankTab] Tab already open
[RelPoint] (140, 577)
[R_WithdrawItemEx] Item not in tab

No Reflection update available.

Am I using the code wrong? I always used that code :S And it always worked to withdraw herbs but for some reason it won't withdraw yew logs and I have reflection up to date to the latest version. Thing is that it finds the item but never withdraws it..

masterBB

2011-07-03 12:58:19

Do you have to scroll to get the item?

Flight

2011-07-03 13:11:49

I've had similar problems with, like you said, the latest update. It's not that it doesn't work, but as of lately it will miss the bank item's "box" region sometimes. Maybe someone has recently changed the box coordinates for bank items?

What I did was something like:
repeat
R_WithdrawItem(BarID,0);
until InvFull
So it will keep 'attempting' to withdraw the item until your inventory is full. You could also replace the 'InvFull' with "(R_CountItem(YourItemID)>=HowManyNeeded)". Either way that'll get the job done.

Brandon

2011-07-03 13:28:51

uhh I tried that… it doesn't even click it.. it just finds the rel points, then says item not found.. and that repeat just makes the debug box flood.. it doesn't even attempt to withdraw..

@masterbb no.. the item is in site.. i even tried moving it to teh first slot of the first tab.. still fails

Yago

2011-07-03 15:36:50

Maybe hooks or something?