The Inventory include contains all inventory-related functions
function GetInven(Inven: Integer): TInvenItem;
Returns The Width, Height, Count, ItemBox and CenterPoint of the Given Item Slot.
Note
by SKy Scripter
Example:
function GetInventoryArray : array of TInvenItem;
Returns The Width, Height, Count, ItemBox and CenterPoint in array [0..27] of all Items in the inventory.
Note
by SKy Scripter
Example:
Function InvBox(i :Integer): TBox;
Returns TBox of surrounding Inventory SlotBox 1-2-3-4 5-6-7-8 etc.
Note
by Boreas, created by WT-Fakawi. Coords by Ogre July 15th 2009.
Example:
function ItemCoords(i: Integer): TPoint;
Returns X and Y of Specified Inventory Spot
Note
by RsN
Example:
function CoordsToItem(X, Y: Integer): Integer;
Returns which Inventory slot the X and Y coords are in. If the coords are between slots (or not in the inventory area at all) it will return 0.
Note
by Boreas
Example:
function GetInvItemBounds(InvSpot: Integer; T: TBox): Boolean;
If item exists, returns TBox of the item, else returns the normal InvBox.
Note
by Wizzup?
Example:
function ExistsItem(i: Integer): Boolean;
Checks if item in inventory at specified position exists
Note
by WT-Fakawi
Example:
function ExistsItemDTM(dtm: Integer; var x, y: Integer): Boolean;
Checks if the item with dtm is in the inventory. Returns the item’s coordinates.
Note
by NCDS
Example:
function InvMouse(InvSlot, Action: Byte) : boolean;
A combined MouseItem & MMouseItem, will hopefully replace both one day. Usage is like SRL’s MouseBox, Action determines what to do:
- Leftclick
- Rightclick
- Move mouse to item
Note
by EvilChicken!
Example:
procedure MMouseItem(i: Integer);
Moves mouse to specified inventory spot.
Note
by WT-Fakawi/EvilChicken!
Example:
procedure MouseItem(i: Byte; Left: Boolean);
Moves Mouse to inv spot then clicks left or right.
Note
by WT-Fakawi/EvilChicken!, edit by NaumanAkhlaQ
Example:
procedure DragItem(Inv1, Inv2: Integer);
Drags Item from first position Inv1 to Inv2 (Inventory Slots)
Note
by NaumanAkhlaQ
Example:
function InvCount: Integer;
Returns amount of items in your inventory
Note
by RsN
Example:
function CountItems(ItemType: string; Identifier: Integer; tol: TIntegerArray): Integer;
Note
by WT-Fakawi / Sumilion
Example:
function ClickAllItemsExcept(ItemType: String; Identifier: Integer; option: string; SlotIgnores: TIntegerArray; waitnum: Integer; tol: TIntegerArray):Integer;
ItemType - ‘dtm’, ‘bitmap’, ‘bitmap mask’, ‘color’
Identifier - name/value of your dtm/bmp/color/bmpmask.
Will not click items in slots SlotIgnores
Note
by WT-Fakawi, Sumilion & Nava2
Example:
function ClickAllItems(ItemType: String; Identifier: Integer; option: string; waitnum: Integer; tol: TIntegerArray):Integer;
See ClickAllItemsExcept, this doesn’t ignore any slots.
Note
by Nava2
Example:
procedure DropItem(i: Integer);
Drops item at given position (1-28)
Note
by Lorax
Example:
procedure DropArray(InvSlots: TIntegerArray);
Drops item positioned equivalent to numbers in “InvSlots” array. Example: “DropArray([2, 4, 9, 12]);” would drop items in InvSlot 2, 4, 9 and 12.
Note
by Lorax/EvilChicken!, Tickyy for idea.
Example:
procedure DropPattern(Which: Integer);
Drops all items in inventory according to pattern which.
Note
by Rasta Magician
Example:
procedure DropAllExcept(IgnoreInvSlots: TIntegerArray);
Drops everything in inventory. Ignores slots specified by DontDrop array.
Note
by Nava2
Example:
procedure DropItemsByIdentifier;
See description of ClickAllItemsExcept.
Note
by EvilChicken! Fixed by Coh3n
Example:
procedure ArrangeInv;
Arrange’s inventory in an orderly fashion.
Note
by Cheesehunk
Example:
function CountItemsBlackLine(Count, Tol: Integer): Integer;
Returns the number of items in inventory with Count amount of blackline points and Tol tolerance in the amount of points.
Note
by n3ss3s
Example:
function ClickAllItemsBlackLine(Count, Tol: Integer; Option: String): Integer;
Finds all items in inventory with blackline points amount of Count with Tol tolerance, and returns the amount of items could choose the option Option to. Waits the WaitT amount of millisecs between items, with WaitR randomness of milliseconds.
Note
by n3ss3s
Example:
function ItemActivated(Slot: Integer): Boolean;
Checks if item in specified inventory slot has a white outline. Returns True if the item has a white outline, otherwise returns false.
Note
by marpis
Example:
function SelectedItem : integer;
Returns the selected item in invetory (if any), else returns -1.
Note
by MaaaassturrRrrraymond
Example: