Log in

View Full Version : need more help with banking!



Mahatna
05-04-2012, 12:23 PM
Hey guys sorry i had to made a new thread banking is hard :duh:

function WithdrawItem(Ident: integer; IdentType: string; Amount: integer; UpText: String; Tol: TIntegerArray): boolean;
var
I : Integer;
begin
Result := WithdrawItemEx(Ident, IdentType, I, Amount, UpText, Tol);
end;

Got using this function from simba but i dont understand the first two parameters indent is the color? whats the indent type

Thanks.


EDIT:

Also every time i change worlds color changes how do i bypass this?

Abu
05-04-2012, 03:09 PM
Use Withdraw

(*
Withdraw
~~~~~~~~

.. code-block:: pascal

function Withdraw(Col, Row, Amount: Integer): Boolean;

Withdraws Amount at Column/Row.

.. note::

Author: Starblaster100, Town, Wizzup? and Narcle
Last Modified: Unknown

Example:

.. code-block:: pascal

Withdraw(1, 3, 28);
*)

Just to expand on that, you can leave the amount at 0 to Withdraw-All.

AideniRS
05-04-2012, 03:22 PM
WithdrawEx(Column, Row, Amount, ['Item name', 'Few letters of item name']);

So if I wanted to withdraw 1 of something in the very first spot(top left of bank) e.g. a shark Id do

WithdrawEx(0, 0, 1, ['shark', 'rk']);

Or you could make a MouseBox for the item(I use this for banking sometimes)

P1ng
05-04-2012, 04:02 PM
The Example from the SRL include is as follows -

if WithdrawItem(theColor, 'color', 27, ['ew log', 'ew l'], [3]) then
CloseBank;


The function breakdown given in the SRL include -

WithdrawItem(Ident: integer; IdentType: string; Amount: integer;
UpText: TStringArray; Tol: TIntegerArray): boolean;

Ident - Way to identify if this is the correct item to withdraw
IdentType - How is this item identified (in this example it used the color)
Amount - How many of this item to withdraw
UpText - Array* of what the UpText will say when mouse is hovering the item
Tol - Array* of the tolerance of the item color

*When a function calls an array you will need to use square brackets [] even if you only input one variable.

Runescape has been designed that the colors change frequently (most notably when you sign out and then in again) to try and make color botting more difficult. There is no way around this apart from adding some tolerance to your color.

By adding tolerance to the color you are searching for this allows the function to find colors similar to the one initially inputted to account for this change.
Too much tolerance and your script might search any item in your bank, not enough and it may not find your item.