Results 1 to 7 of 7

Thread: Picking up dropped items

  1. #1
    Join Date
    Dec 2011
    Posts
    45
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Picking up dropped items

    How do I go about putting this in my script?

    I was thinking something along the lines of getting the color of an item on the mini-map (red dot) and moving to that location. Then somehow looking around for the items and clicking them.

    Please let me know!

  2. #2
    Join Date
    Jan 2011
    Posts
    350
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    u can try findcolortol on the minimap and make it look for red dots

  3. #3
    Join Date
    Dec 2011
    Posts
    45
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Can you explain this in detail? I've been here for about 3 days.

    :O

  4. #4
    Join Date
    May 2008
    Location
    ;)
    Posts
    576
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Quote Originally Posted by g2n View Post
    How do I go about putting this in my script?

    I was thinking something along the lines of getting the color of an item on the mini-map (red dot) and moving to that location. Then somehow looking around for the items and clicking them.

    Please let me know!
    If you know what the item looks like, then you can just treat it like any other object. If that's the case, then look up a tutorial on object finding.

    http://villavu.com/forum/showthread.php?t=50532

    This one looks good - though I only glossed over it. And yes, it does apply to a tree, but the concept is the same.

  5. #5
    Join Date
    Dec 2011
    Posts
    45
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by nickrules View Post
    If you know what the item looks like, then you can just treat it like any other object. If that's the case, then look up a tutorial on object finding.

    http://villavu.com/forum/showthread.php?t=50532

    This one looks good - though I only glossed over it. And yes, it does apply to a tree, but the concept is the same.
    I don't know what the objects are going to be. (my intentions are secret but will be public soon. )

    I wanted to somehow find objects on the minimap.

  6. #6
    Join Date
    May 2008
    Location
    ;)
    Posts
    576
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Quote Originally Posted by g2n View Post
    I don't know what the objects are going to be. (my intentions are secret but will be public soon. )

    I wanted to somehow find objects on the minimap.
    Sounds like you'll be needing something like this:

    Simba Code:
    FindObjThroughMM(var x, y: Integer; Kind: string; Colors, Tol: TIntegerArray; UpText: TStringArray; Width, Height: Integer): boolean;


    It's in the SRL include (object.scar).

    If you don't know the colors or uptext, then you'll have to modify it.

  7. #7
    Join Date
    Dec 2011
    Posts
    45
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by nickrules View Post
    Sounds like you'll be needing something like this:

    Simba Code:
    FindObjThroughMM(var x, y: Integer; Kind: string; Colors, Tol: TIntegerArray; UpText: TStringArray; Width, Height: Integer): boolean;


    It's in the SRL include (object.scar).

    If you don't know the colors or uptext, then you'll have to modify it.
    Thanks. It's going to take a little bit for me to understand that.

    I started by converting the red dot on the minimap from bmp -> string in scar.

    That's the correct approach?

    EDIT: nvm..
    Last edited by g2n; 12-20-2011 at 09:11 PM.

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
  •