Results 1 to 6 of 6

Thread: ChooseOption and InFight Problems/questions

  1. #1
    Join Date
    Oct 2006
    Posts
    468
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default ChooseOption and InFight Problems/questions

    First ChooseOption. I see it working in scripts and use scripts that have it working, however when I am using it here
    Code:
      if(FindObject(BankBooth,25808))then
      BankBooth:= TileToMS(BankBooth, 0);
      repeat
      Mouse(BankBooth.x,BankBooth.y,2,2,false);
      wait(400 + random(400));
      ChooseOption('uic');
      wait(1000 + random(1000));
      until(BankScreen)
    It moves the mouse as if to click "use-quickly" but then keeps going very quickly and usually ends up clicking the floor of the bank or something. Any help would be appreciated.

    Another question.

    Code:
    Procedure FindCrabs;
    begin
      FindNormalRandoms;
      repeat
        x := random(5);
        WalkToTileEx(FindCrab[x], 2, 2, 1);
        R_Flag;
        wait(500 + random(250));
        FindNormalRandoms;
      until(InFight = true)
      CheckAggro;
      Fight;
      FindCrabs;
    end;
    In that code, the walking is working and it will walk to a crab, the crab will aggro, and then it will try to walk to another without recognizing it is in a fight. Help please, thanks.

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

    Default

    for the first one, just go OpenBankGlass or OpenBankFast

    and InFight only registers when you get hit (red damage) [i think], try FindAllHPBars

    ps you'll need Fighting.scar
    Project: Welcome To Rainbow

  3. #3
    Join Date
    Oct 2006
    Location
    United States
    Posts
    672
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Well not sure about the second one, I was think FindFight; but for the first one, your saying your mouse moves too slow right? If so, Try putting this at the start of your banking procedure MouseSpeed := 10;

  4. #4
    Join Date
    Oct 2006
    Location
    ithurtsithurtsithurtsithurts
    Posts
    2,930
    Mentioned
    7 Post(s)
    Quoted
    135 Post(s)

    Default

    Both FindFight and InFight only work if you're taking damage, I believe. FindFight checks to see if your HP is less than 100%, and InFight looks for a red or white colored pixel where the damage splash shows up. You'd need to make it look for the blue splash (assuming that it's a constant color) to get InFight to work for you.

  5. #5
    Join Date
    Oct 2006
    Posts
    468
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by benjaa View Post
    for the first one, just go OpenBankGlass or OpenBankFast
    Only problem is I need it to open up the Seers Village bank. Those only have support for the f2p banks.

    Edit: Tried it anyways and it seems to work even with "veb" entered, thanks.

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

    Default

    Glad to see it worked for you

    It should work, as long as the colors are the same, though it may take a while because the co-ords of booths are different
    Project: Welcome To Rainbow

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. InFight not working
    By SirPa in forum OSR Help
    Replies: 20
    Last Post: 11-16-2008, 04:43 AM
  2. How do I use InFight
    By Mistagnerd in forum OSR Help
    Replies: 21
    Last Post: 11-17-2007, 08:42 PM
  3. InFight/OutFight?
    By 3Garrett3 in forum OSR Help
    Replies: 4
    Last Post: 03-31-2007, 01:57 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
  •