mormonman
2011-02-14 15:08:34
This update will break scripts, but they are easy to fix. Here are all the new functions.
The biggest change was removing the previous four functions and replacing them with two functions that accept both types of variables, Strings or Integers, to identify which item you want to use.
Example Usage:
Inventory.simba
Bank.simba
The biggest change was removing the previous four functions and replacing them with two functions that accept both types of variables, Strings or Integers, to identify which item you want to use.
Example Usage:
R_CountItemEx(['yew log', 1337, 'uncut']);
Inventory.simba
{*******************************************************************************
function R_ItemSlotExists(Slot: integer): boolean;
By: Drags111
Description: Returns true if an item exists at the specified slot.
*******************************************************************************}
{*******************************************************************************
function R_ItemExistsEx(TheVarArr: TVariantArray; var Items: TInvItemArray): boolean;
By: mormonman
Description: Returns true if one of the items is found at least once in the
inventory. Also returns all of the items found into the var Items.
*******************************************************************************}
{*******************************************************************************
function R_ItemExists(TheVar: Variant; var Item: TInvItem): Boolean;
By: mormonman
Description: Returns true if the item is found at least once in the inventory.
Also returns the first item found into the var Item.
*******************************************************************************}
{*******************************************************************************
function R_CountItemEx(TheVarArr: TVariantArray): Integer;
By: mormonman
Description: Counts all items with TheVarArr[i](s).
*******************************************************************************}
{*******************************************************************************
function R_CountItem(TheVar: Variant): Integer;
By: mormonman
Description: Returns the number of items in your inventory with TheVar.
*******************************************************************************}
{*******************************************************************************
procedure R_DropAllItemsByEx(TheVarArr: TVariantArray);
By: mormonman
Description: Drops all items in the inventory with any of the specified IDs/Names.
*******************************************************************************}
{*******************************************************************************
procedure R_DropAllItemsBy(TheVar: Variant);
By: mormonman
Description: Drops all items in the inventory with the specified ID/Name.
*******************************************************************************}
{*******************************************************************************
procedure R_DropItemsButEx(ids: TIntegerArray);
By: mormonman
Description: Drops all items in the inventory except those w/ the specified IDs.
*******************************************************************************}
{*******************************************************************************
procedure R_DropItemsBut(Name: String);
By: mormonman
Description: Drops all items in the inventory except those w/ the specified Name.
*******************************************************************************}
Bank.simba
{*******************************************************************************
function R_DepositSlot(Slot: Integer): Boolean;
By: mormonman
Description: Deposits item in specified slot.
*******************************************************************************}
{*******************************************************************************
function R_DepositAllByEx(TheVarArr: TVariantArray): Boolean;
By: mormonman
Description: Deposits all the items with the specified IDs/Names.
*******************************************************************************}
{*******************************************************************************
function R_DepositAllBy(TheVar: Variant): Boolean;
By: mormonman
Description: Deposits all the items with the specified ID/Name.
*******************************************************************************}
{*******************************************************************************
procedure R_DepositAllButEx(TheVarArr: TVariantArray);
By: mormonman
Description: Deposits all items but the items with one of the specified IDs or
Names to the bank.
*******************************************************************************}
{*******************************************************************************
procedure R_DepositAllBut(TheVar : Variant);
By: mormonman
Description: Deposits all except items with the specified ID/Name to the bank.
*******************************************************************************}