SRL Archive - Reflection Help

Finding items in inv?


Troll

2010-10-24 13:06:04

Title says it all
any help would be great
Thanks for all your help on here :)
Thanks again

BraK

2010-10-24 13:12:25

There are numerous ways to go about doing this. You could use countcolor on the Black outline, Also known as black list. DTMs and Bitmaps works as well. Tpas if your looking to get a little complex. With any of them all you have to do is cycle through the inventory slots using your chosen search method. If the Item is found do your action and continue searching until the last slot is reached.

~BraK

Troll

2010-10-24 13:35:05

From: BraK
There are numerous ways to go about doing this. You could use countcolor on the Black outline, Also known as black list. DTMs and Bitmaps works as well. Tpas if your looking to get a little complex. With any of them all you have to do is cycle through the inventory slots using your chosen search method. If the Item is found do your action and continue searching until the last slot is reached.

~BraK


Thanks for your help BraK but im trying to do it with Reflection which is why its posted in Reflection help, but thanks for you help anyway

TomTuff

2010-10-24 13:43:06

From: Reflection\core\Inentory.simba
{*******************************************************************************
function R_ClickItemID(ID: Integer; Left: Boolean; Action: String): boolean;
By: Drags111
Description: Clicks the first item in the inventory with the ID, and if left is
set to true, Left clicks and performs the action. Otherwise, right
clicks. Ex: R_ClickItemID(123, false, 'Wield');
OR
R_ClickItemID(123, true, ''); //Left clicks (use).
*******************************************************************************}


get the id of the item you want and use this function.

Troll

2010-10-24 13:44:19

From: TomTuff
get the id of the item you want and use this function.


Great thanks