Results 1 to 2 of 2

Thread: finding stuff using reflection

  1. #1
    Join Date
    Dec 2007
    Posts
    2,112
    Mentioned
    71 Post(s)
    Quoted
    580 Post(s)

    Default finding stuff using reflection

    i don't get how to find monsters and items using reflection
    i made this but im not sure if its right or not i looked at a few tuts but couldn't find out for sure its a cow finder and can some 1 help me make a item finder...
    SCAR Code:
    program New;
    {.Include SRL/SRL/Misc/SMART.Scar}
    {.Include SRL/SRL.Scar}
    {.Include SRL/SRL/Reflection/Reflection.Scar}
    Var
      Cows : array of TNPC;
      Attack : TPoint;
     
    Function FindCow : TPoint;
    Begin
        Cows := SortNPCs(GetNPCsByName('Cow'));
        Result := Cows[0].MS;
    End;

    begin
      SetupSRL;
      Attack := FindCow;
      Mouse(Attack.x, attack.y, RandomRange(0, 5), RandomRange(0, 5), False);
      Wait(RandomRange(500, 1000));
      ChooseOption('ttack');
    end.

  2. #2
    Join Date
    Mar 2007
    Posts
    3,042
    Mentioned
    1 Post(s)
    Quoted
    14 Post(s)

    Default

    To find ground items, all you need to do is use the FindGroundItems function. It'll put all of the items found in the array you give it as an argument, which you can then use to get the main screen coordinates and other information.
    :-)

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Finding NPC's using reflection
    By orange in forum OSR Help
    Replies: 2
    Last Post: 09-19-2008, 08:56 PM

Posting Permissions

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