Results 1 to 7 of 7

Thread: help on a procedure

  1. #1
    Join Date
    Jun 2007
    Posts
    246
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default help on a procedure

    i wasnt sure to post this in srl questions or here so i decided to just post it here... i need help on a procedure to detect something on the minimap. but i need to know the code for rs_GetCompassAngleDegrees does anyone know what it is or where i can find it? i already searched for it didnt find anything that helped

  2. #2
    Join Date
    Oct 2006
    Posts
    1,071
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    I was wondering about this too, is it one of those things that's built into scar?

  3. #3
    Join Date
    Jan 2007
    Location
    Kansas
    Posts
    3,760
    Mentioned
    1 Post(s)
    Quoted
    3 Post(s)

    Default

    Do you want something like this?
    SCAR Code:
    function rs_ScanMiniMap(iFrom, iTo, Distance, Color: Integer): Integer;


  4. #4
    Join Date
    Oct 2006
    Posts
    1,071
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Except how does the rest of rs_ScanMinimap work? It's a scar function, not SRL so there's no way to look at it.

  5. #5
    Join Date
    Jun 2007
    Posts
    246
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    yeah i think that might work,but wher would it store where it found the color? because what im trying to do is look for the npc on the minimap (the yellow dot) and then when it detects a npc it walks to it and while its walking to it itdetects the current compass angle and if its not towards the npc then it will adjust the compass to look towards the npc and then attack it
    Edit: yeah what the dude that posted above me said

  6. #6
    Join Date
    Jul 2007
    Location
    England
    Posts
    86
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by zenma View Post
    yeah i think that might work,but wher would it store where it found the color? because what im trying to do is look for the npc on the minimap (the yellow dot) and then when it detects a npc it walks to it and while its walking to it itdetects the current compass angle and if its not towards the npc then it will adjust the compass to look towards the npc and then attack it
    Edit: yeah what the dude that posted above me said
    That wouldn't work. Because probably where you are wanting to find one there is loads of other NPC's so it would click on different ones and probably screw it up, however if there is only one NPC, I would recommend making a DTM of the NPC and find it that way Using FindDTM.

    -Nitro

  7. #7
    Join Date
    Jun 2007
    Posts
    246
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    theres not that many npcs at barb village. i can see it working in my head, so why not give it a try? right? and also do you mean a dtm of the npc on the mainscreen or minmap dot

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Procedure?
    By shadowrec0n in forum OSR Help
    Replies: 3
    Last Post: 02-11-2008, 09:04 PM
  2. Procedure TypeSendRandom & Procedure AutoResponder!
    By Ultra in forum Research & Development Lounge
    Replies: 12
    Last Post: 01-08-2008, 07:04 PM
  3. Help with Procedure
    By Esteban in forum OSR Help
    Replies: 8
    Last Post: 07-06-2007, 03:45 AM
  4. Replies: 8
    Last Post: 05-24-2007, 11:57 PM
  5. Procedure that calls random procedure?
    By Secet in forum OSR Help
    Replies: 2
    Last Post: 03-03-2007, 03: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
  •