Results 1 to 6 of 6

Thread: FlagPresent?

  1. #1
    Join Date
    Dec 2006
    Posts
    908
    Mentioned
    1 Post(s)
    Quoted
    17 Post(s)

    Default FlagPresent?

    There seems to be a problem with either the game or my script. Usually when i want to click on the bank icon, it dosent click therefor the flag isnt there. So im wondering if theres a function that goes something life



    SCAR Code:
    procedure WalkToBank;
    begin
      MakeCompass('N');
      if (FindSymbol(x, y, 'Bank') then
      begin
        Wait(310 + Random(115));
        Mouse(x, y, 3, 3, True);
        FFlag(0);
        Wait(3000 + Random(1750));
        if (not (FlagPresent)) then
        begin
          Writeln('Could not find the flag');
          ThenSomeFailSafesHereAndThere;
        end;
    end;

    That was just an example made in 5 seconds, anyone help me? Because i cant release my script without making sure that everything will flow perfectly.
    I know there is no such thing as a Flawless Script, but i want mine to be atleast 'Perefect Enough To Get Me 99 LOLOOOL' script....

  2. #2
    Join Date
    Sep 2007
    Location
    Michigan
    Posts
    3,862
    Mentioned
    2 Post(s)
    Quoted
    1 Post(s)

    Default

    Sounds like your problem is in the click, but I understand using the flag as to check to see if your moving etc.

    But I would first try to fix the mouse problem before worrying about a failsafe for it. The bank bitmap might need to be updated to find it on the mm, so it might not be finding the bank and so it doesn't click. I haven't tried finding symbols recently but I'm guessing that could be the problem.

    Oh and for the "FlagPresent" thing just look at 'FFlag' and get the color out of it, you could use that to check to see if Flag is on mm or not.
    (Scripts outdated until I update for new SRL changes)
    AK Smelter & Crafter [SRL-Stats] - Fast Fighter [TUT] [SRL-Stats]
    If you PM me with a stupid question or one listed in FAQ I will NOT respond. -Narcle
    Summer = me busy, won't be around much.

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

    Default

    some time when i click on the minimap it doesnt put a flag there but i still move the possition, is that what you mean?

    so far thats only happened to me when i have been using smart

  4. #4
    Join Date
    Dec 2006
    Posts
    908
    Mentioned
    1 Post(s)
    Quoted
    17 Post(s)

    Default

    To Narcle :
    Thanks, i guess ill use DDTM, more reliable, so i heard.

    To Bobzilla69 :
    I meant that strangely the script dosent click on the Bank Symbol when it says on the debug it found it....

    Well ill be takin things 1 step at a time, firstly removing the fail safes. Thanks.

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

    Default

    Obvious:
    You click;
    You FFlag(waits till flag is *GONE*);
    You check for flag, is not there;
    Phail.
    ~Hermen

  6. #6
    Join Date
    Feb 2008
    Location
    Norway
    Posts
    278
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Hermpie, you rejoined? If so, WELCOME BACK!
    99 woodcutting

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
  •