Results 1 to 15 of 15

Thread: function IsAtSymbol

  1. #1
    Join Date
    Dec 2007
    Location
    Wizzup?'s boat
    Posts
    1,013
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default function IsAtSymbol

    SCAR Code:
    function IsAtSymbol(Name:string) : Boolean;
    //by bEnJaa
    var
      x, y : integer;
    begin
      if (not LoggedIn) then exit;
      Flag;
      SymbolAccuracy:=0.5;
      if (FindSymbolIn(x, y, Name, MMCX-12, MMCY-12, MMCX+12, MMCY+12)) then
      begin
        Result:=True;
        Writeln('At symbol');
      end else
      begin
        Result:=False;
        Writeln('Not at Symbol');
      end;
    end;

    Not too complex, but VERY useful Especially when there may be doors involved

    Example:
    SCAR Code:
    if (FindSymbol(x, y, 'bank')) then Mouse(x, y, 6, 6, true);
    if (IsAtSymbol('bank')) then Writeln('Success');
    Project: Welcome To Rainbow

  2. #2
    Join Date
    Apr 2007
    Location
    Colchester, UK
    Posts
    1,220
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    nice, that could be very usefull, i might use it if you dont mind.

    starting to script again seeing as i am all most done with school

  3. #3
    Join Date
    Dec 2007
    Location
    Wizzup?'s boat
    Posts
    1,013
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    nice, that could be very usefull, i might use it if you dont mind.
    For Sure! Thats what its there for
    Please Credit XD
    Project: Welcome To Rainbow

  4. #4
    Join Date
    Mar 2007
    Posts
    4,810
    Mentioned
    3 Post(s)
    Quoted
    3 Post(s)

    Default

    wouldn't it be the Other way around?
    Becuase you cover the symbol so It Mightn't find it, Oh I now see you have symbol Accuracy But to Make it Neater and Shorter :

    SCAR Code:
    function AtSymbol(Name:string) : Boolean;  //No Need for the Is ;)
    //by bEnJaa
    var
      x, y : integer;
    begin
      if (not (LoggedIn)) then exit;
      FFlag(0); // This will check if there is No Flag first ;)
      if Not (FindSymbolIn(x, y, Name, MMCX-12, MMCY-12, MMCX+12, MMCY+12)) then
       begin
        Result:=False;
        Writeln('NOT At Symbol');
        Exit;
       end;
      Result:=True;
     end;
    WriteLn('At Symbol');
    end;

    It Looks much better that way, Anyways GJ

  5. #5
    Join Date
    Jun 2007
    Location
    Wednesday
    Posts
    2,446
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    SCAR Code:
    if (FindSymbol(x, y, 'bank')) then Mouse(x, y, 6, 6, true);
      while not IsAtSymbol('bank') do
        Wait(100);
    That would be a better use IMO (of course, throw in a TimeFromMark as a failsafe)
    Otherwise, nice little function

    Edit: I like his original layout more than yours NaumanAkhlaQ, though I do agree with FFlag(0);
    By reading this signature you agree that mixster is superior to you in each and every way except the bad ways but including the really bad ways.

  6. #6
    Join Date
    Apr 2007
    Location
    The Netherlands
    Posts
    5,553
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Instant ban.
    ~Hermen

  7. #7
    Join Date
    Mar 2007
    Posts
    4,810
    Mentioned
    3 Post(s)
    Quoted
    3 Post(s)

    Default

    Quote Originally Posted by mixster View Post
    SCAR Code:
    if (FindSymbol(x, y, 'bank')) then Mouse(x, y, 6, 6, true);
      while not IsAtSymbol('bank') do
        Wait(100);
    That would be a better use IMO (of course, throw in a TimeFromMark as a failsafe)
    Otherwise, nice little function

    Edit: I like his original layout more than yours NaumanAkhlaQ, though I do agree with FFlag(0);
    Ok so.. You gonna Bite my head of

  8. #8
    Join Date
    Feb 2006
    Location
    Amsterdam
    Posts
    13,692
    Mentioned
    146 Post(s)
    Quoted
    130 Post(s)

    Default

    Also remember to first grab the old SymbolAccuracy, then set it to 0.5, and then set it back to it's original value.



    The best way to contact me is by email, which you can find on my website: http://wizzup.org
    I also get email notifications of private messages, though.

    Simba (on Twitter | Group on Villavu | Website | Stable/Unstable releases
    Documentation | Source | Simba Bug Tracker on Github and Villavu )


    My (Blog | Website)

  9. #9
    Join Date
    Oct 2007
    Location
    If (Online) then Loc := ('On comp') else Loc := ('Somewhere else!');
    Posts
    2,020
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    not bad i might use and mod this a lil if you dont mind

  10. #10
    Join Date
    Apr 2007
    Location
    The Netherlands
    Posts
    5,553
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Idiots! who the hell is using the symbol! that is instant ban and you will click next to building some times to!
    ~Hermen

  11. #11
    Join Date
    Feb 2006
    Location
    Amsterdam
    Posts
    13,692
    Mentioned
    146 Post(s)
    Quoted
    130 Post(s)

    Default

    Quote Originally Posted by Hermpie View Post
    Idiots! who the hell is using the symbol! that is instant ban and you will click next to building some times to!
    What are you talking about...? I always click on the bank symbol.



    The best way to contact me is by email, which you can find on my website: http://wizzup.org
    I also get email notifications of private messages, though.

    Simba (on Twitter | Group on Villavu | Website | Stable/Unstable releases
    Documentation | Source | Simba Bug Tracker on Github and Villavu )


    My (Blog | Website)

  12. #12
    Join Date
    Apr 2007
    Location
    The Netherlands
    Posts
    5,553
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    ... your not you click at the bank...
    also you will click sometimes next to the bank.
    ~Hermen

  13. #13
    Join Date
    Sep 2006
    Posts
    6,089
    Mentioned
    77 Post(s)
    Quoted
    43 Post(s)

    Default

    So why is that an instant ban again?
    Hup Holland Hup!

  14. #14
    Join Date
    Apr 2007
    Location
    The Netherlands
    Posts
    5,553
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I'm not going to argue with you guys because you guys are mods admins w/e but you know it is not right to use the symbol as FIRST and always choice.
    and it causes loss.
    also when you are running and in one of the rs mm there gets such black part then the symbols change from place while running and if you use this function stated here it goes wrong...
    ~Hermen

  15. #15
    Join Date
    Jun 2007
    Location
    Wednesday
    Posts
    2,446
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    I think someone has been reading paranoid weekly? You won't get banned for symbol clicking even as your first choice... Not to mention you don't have to use this by clicking on a symbol and you could instead use it to make sure you are inside the bank...
    By reading this signature you agree that mixster is superior to you in each and every way except the bad ways but including the really bad ways.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 2
    Last Post: 02-27-2008, 05:20 PM
  2. Replies: 2
    Last Post: 02-26-2008, 08:26 PM
  3. Any function that does this?
    By shadowpwner in forum OSR Help
    Replies: 2
    Last Post: 08-14-2007, 03:15 AM
  4. [FUNCTION] FindDoorColour: integer; By ZephyrsFury [FUNCTION]
    By ZephyrsFury in forum Research & Development Lounge
    Replies: 10
    Last Post: 07-27-2007, 08:45 AM

Posting Permissions

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