SRL Archive - Reflection Help

R_WithdrawItem


Yago

2011-03-31 18:56:06

Why does this function always go to the first tab in the bank?

Is this a bug?

Can you just fix this by changing this:

R_BankTab(1);

to

R_BankTab(Index);

i luffs yeww

2011-03-31 19:00:17

I think it's because the first tab shows everything. I think it'd be nice to check the tab you're in and then go to the main tab though.

HarryJames

2011-03-31 19:01:54

function R_BankTab(TabNum: Integer): Boolean;
By: Shuttleu/mormonman
Description: Clicks on the bank tab if it exists.

function R_WithdrawItem(TheVar: Variant; Amount: Integer): Boolean;
By: Bad Boy JH/mormonman
Description: Withdraws amount of item.
* 0 = withdraw all
* -1 = Withdraw all but one

I believe r_withdrawItem will go to the first bank tab if the item cannot be found in the current tab.

I wasn't too sure about what you were asking, but I hope this somewhat helps :)

Yago

2011-03-31 19:03:45

From: HarryJames
function R_BankTab(TabNum: Integer): Boolean;
By: Shuttleu/mormonman
Description: Clicks on the bank tab if it exists.

function R_WithdrawItem(TheVar: Variant; Amount: Integer): Boolean;
By: Bad Boy JH/mormonman
Description: Withdraws amount of item.
* 0 = withdraw all
* -1 = Withdraw all but one

I believe r_withdrawItem will go to the first bank tab if the item cannot be found in the current tab.

I wasn't too sure about what you were asking, but I hope this somewhat helps :)


This isn't true. I tried it out. It went to the first tab and back where it was for every-time it banked.

From: i luffs yeww
I think it's because the first tab shows everything. I think it'd be nice to check the tab you're in and then go to the main tab though.


True but theres no scrolling in the function.

mormonman

2011-03-31 19:26:56

Use R_WithdrawItemEx() and set FirstTab to false.

Yago

2011-03-31 20:14:42

Ok. Thanks. Should this be fixed?

Edit: Is there a way to avoid checking the first tab? That would work for all people because using withdrawex might not work for people running a script where the first-tab boolean is set.

Bad Boy JH

2011-04-06 08:19:07

I had a better-ish way of doing stuff, which I never posted, appologies for that, making a thread now…