Originally Posted by
maxlvs
hello iam looking for a way to make the procedure to find items on the ground and click them iam finding alot of hints in the fourms but there is still some Error: Unknown declaration "InStrArrEx" and other Errors and i dont know how to do right click and choose option for picking up a certain ground item that is on the ground in the same sopt as other items so if some one could help me out that would be awsome thanks
also if you do post a proceure could you use an item as an example and or do this
// this line is where you replace(xxx) with the disired ground item your looking for
Thanks again
Simba Code:
program Meh;
{$DEFINE SMART}
{$i Reflection/Reflection.simba}
const
ItemsToPickup = ['Pot', 'Bread']; // Items to Pickup
var
Grounds: TReflectGroundItemArray;
I: Integer;
begin
Grounds.GetAll(20);
for I := 0 to High(Grounds) do
begin
if IsArrInStr(ItemsToPickup, Grounds[I].GetName) then
begin
Reflect.Mouse.Move(Grounds[I].GetMSPoint, 0, 0);
Reflect.Mouse.Click(Mouse_Right);
Reflect.Text.ChooseOption(Grounds[I].GetName);
end;
end;
end.