Results 1 to 8 of 8

Thread: Opening Gate

  1. #1
    Join Date
    Jul 2008
    Location
    Canada
    Posts
    1,612
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Opening Gate

    I'm not sure what function I should use to open a gate, with knowing if the gate is open or gate is closed.
    here's a picture on where im going to open the gate :

    If anyone knows what is best i ask kindly if you could show me an example.

    Please!
    AND!
    THANKS!

  2. #2
    Join Date
    Jan 2008
    Location
    NC, USA.
    Posts
    4,429
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default

    DDTM, Count the TPA, right click and choose option?
    Quote Originally Posted by irc
    [00:55:29] < Guest3097> I lol at how BenLand100 has become noidea
    [01:07:40] <@BenLand100> i'm not noidea i'm
    [01:07:44] -!- BenLand100 is now known as BenLand42-
    [01:07:46] <@BenLand42-> shit
    [01:07:49] -!- BenLand42- is now known as BenLand420
    [01:07:50] <@BenLand420> YEA

  3. #3
    Join Date
    Jul 2008
    Location
    Canada
    Posts
    1,612
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

  4. #4
    Join Date
    Dec 2007
    Posts
    2,112
    Mentioned
    71 Post(s)
    Quoted
    580 Post(s)

    Default

    find the gate with color then look at the up text

  5. #5
    Join Date
    Nov 2006
    Location
    'Pergamino, BA, Argentina';
    Posts
    473
    Mentioned
    0 Post(s)
    Quoted
    6 Post(s)

    Default

    Reflection?
    Otherwise do something like:
    SCAR Code:
    if (FindObjCustom(x, y, ['gat','te'], GateColorHere, 10)) then
    begin
      MMouse(x, y, 2, 2);
      Wait(200 + random(100));
      If IsUpText('pen') then
        DoorIsClosed else
      if IsUpText('lose') then
        DoorIsOpened;
    end;
    Might not be your best option, but it should work.

  6. #6
    Join Date
    Sep 2008
    Location
    Not here.
    Posts
    5,422
    Mentioned
    13 Post(s)
    Quoted
    242 Post(s)

    Default

    reflection version used in my refl tut runner...
    SCAR Code:
    function ChurchDoor : boolean;
    var Open, Closed, P: TPoint; I: Integer;
    begin
      I := 0;
      Result := FindObjectExX(Open, 37003)
      repeat
        if FindObjectExX(Closed, 37002) then
        begin
          P := TileToMS(Closed, 20);
          Mouse(P.x, P.y, 1, 1, False);
          Wait(500+random(500));
          ChooseOption('Open');
          FFlag(0);
          Wait(1000+Random(300));
        end;
        Inc(I);
      until Result or (I >= 15);
      Writeln('Church Door Open!');
    end;

  7. #7
    Join Date
    Oct 2008
    Location
    C:\Simba\Includes\
    Posts
    7,566
    Mentioned
    19 Post(s)
    Quoted
    180 Post(s)

    Default

    SCAR Code:
    function OpenDoor : Boolean;
    //Camo
    var
      X, Y : Integer;
    begin
      if not LoggedIn then
        Exit;
      begin
        if (FindObjCustom(x, y, ['oor', 'ose Do', 'pen Do'], [5664127, 9751500, 7514024, 2764596, 3496307, 3496307, 5011335, 3824487, 4154224], 5)) then
        begin
          if (IsUpTextMultiCustom(['Open', 'pen', 'Ope'])) then
          begin
            Mouse(x, y, 1, 1, True);
            Result := True;
          end else
          if (IsUpTextMultiCustom(['Close', 'Clo', 'ose'])) then
            Result := True;
        end;
      end;
    end;
    This was used in one of my scripts, just change the Uptext and colors to what you need. Good luck

    ~Camo
    Away for awhile, life is keeping me busy. | Want to get my attention in a thread? @Kyle Undefined; me.
    { MSI Phoenix || SRL Stats Sigs || Paste || Scripts || Quotes || Graphics }

    When posting a bug, please post debug! Help us, help you!

    I would love to change the world, but they won't give me the source code. || To be the best, you've got to beat the rest. || Logic never changes, just the syntax.
    If you PM me with a stupid question or one listed in FAQ, or about a script that is not mine, I will NOT respond.


    SRL is a Library of routines made by the SRL community written for the Program Simba. We produce Scripts for the game Runescape.


  8. #8
    Join Date
    Jan 2009
    Location
    Somewhere
    Posts
    240
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Don't use reflection :>

    SCAR Code:
    function OpenGate:Boolean;
    var
      TPA : TPointArray;
      MyPoint : TPoint;
      x, y: Integer;
    begin
      FindColorsSpiralTolerance(x, y, TPA, {color}, MSx1, MSy1, MSx2, MSy2, 10);
        if Length(TPA) = 0 then FindColorsSpiralTolerance(x, y, illowTPA, {color}, MSX1, MSY1, MSX2, MSY2, 10);
        if not Length(TPA) = 0 then
        for i := 0 to High(TPA) do
        begin
          MyPoint := TPA[i];
          MMouse (MyPoint.x, MyPoint.y, 3, 3);
          if (IsUpTextMultiCustom(['Open', 'pen'])) then
        begin
          GetMousePos(x,y);
          Mouse(x, y, 1, 1, True);
          Result:=True;
        end else
        if (IsUpTextMultiCustom(['Close', 'Clo', 'ose'])) then
        begin
          Result:=True;
          Exit;
        end;
      end;
    end;

    Dunno if it works. Its taken from the wc script i am making. It works with willows =).

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. For Opening Doors...
    By 0lumpy in forum OSR Help
    Replies: 10
    Last Post: 01-19-2009, 12:57 AM
  2. Opening Banks
    By r4z0rlike in forum OSR Help
    Replies: 5
    Last Post: 05-24-2008, 08:31 AM
  3. Gate Opening
    By gfrog6 in forum OSR Help
    Replies: 1
    Last Post: 07-09-2007, 11:08 PM
  4. stair/ladder and door and gate finding help plz???
    By RudeBoiAlex in forum OSR Help
    Replies: 2
    Last Post: 06-13-2007, 04: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
  •