Results 1 to 4 of 4

Thread: Grounditems broken?

  1. #1
    Join Date
    Aug 2007
    Location
    Hawaii
    Posts
    3,880
    Mentioned
    7 Post(s)
    Quoted
    152 Post(s)

    Default Grounditems broken?

    Can't get it to work no matter what. Does not return the proper ground item Id's or names. Gets the coords right though.

    Simba Code:
    Procedure pickupItem;
    var
        i : integer;
        _items : TReflectGroundItemArray;
        ItemsToPickup : TStringArray;
    begin
     ItemsToPickup := ['Lobster'];
    _items.GetAll(20);
      for I := 0 to High(_items) do
      begin
          writeln('Found item ' + _items[I].getName);
        if IsArrInStr(ItemsToPickup, _items[I].GetName) then
          begin
            Reflect.Mouse.Move(_items[I].GetMSPoint, 3, 3);
            Reflect.Mouse.Click(Mouse_Right);
            Reflect.Text.ChooseOption(_items[I].GetName);
          end;
      end;
    end;

    For some reason no matter the items on the ground it will always return Toolkit.

    Simba Code:
    Found item Toolkit
    Found item Toolkit
    Found item Toolkit
    Found item Toolkit
    Faith is an oasis in the heart which will never be reached by the caravan of thinking.

  2. #2
    Join Date
    Jan 2013
    Posts
    86
    Mentioned
    0 Post(s)
    Quoted
    25 Post(s)

    Default

    What happens when you put the writeln after you check if the drop is in the pile?

    Code:
    Procedure pickupItem;
    var
        i : integer;
        _items : TReflectGroundItemArray;
        ItemsToPickup : TStringArray;
    begin
     ItemsToPickup := ['Lobster'];
    _items.GetAll(20);
      for I := 0 to High(_items) do
      begin
        if IsArrInStr(ItemsToPickup, _items[I].GetName) then
          begin
            writeln('Found item ' + _items[I].getName);
            Reflect.Mouse.Move(_items[I].GetMSPoint, 3, 3);
            Reflect.Mouse.Click(Mouse_Right);
            Reflect.Text.ChooseOption(_items[I].GetName);
          end;
      end;
    end;
    Any different?

  3. #3
    Join Date
    Oct 2006
    Posts
    6,752
    Mentioned
    95 Post(s)
    Quoted
    532 Post(s)

    Default

    Quote Originally Posted by kingarabian View Post
    ...
    Fixed
    “The long-lived and those who will die soonest lose the same thing. The present is all that they can give up, since that is all you have, and what you do not have, you cannot lose.” - Marcus Aurelius

  4. #4
    Join Date
    Aug 2007
    Location
    Hawaii
    Posts
    3,880
    Mentioned
    7 Post(s)
    Quoted
    152 Post(s)

    Default

    Quote Originally Posted by Kyle View Post
    Fixed
    Thank you!
    Faith is an oasis in the heart which will never be reached by the caravan of thinking.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •