Results 1 to 22 of 22

Thread: OpenDoor

  1. #1
    Join Date
    Dec 2006
    Location
    Copy pastin to my C#
    Posts
    3,788
    Mentioned
    8 Post(s)
    Quoted
    29 Post(s)

    Default OpenDoor

    I was walking past some doors and I thought that maybe I should make a door opener, nobody likes opening doors, they're always a trouble, so, I made this function - its simple but works.

    I recommend using OpenDoor(True) so it will rotate, because when door is closed, outer side of it is pretty much darker than the inner side, and when door is open its the opposite, so use the rotation.

    You are free to use, just credit me properly.

    SCAR Code:
    Function OpenDoor(Rotate: Boolean): Boolean;
    Var
      TPA, TPA2: TPointArray;
      C, X, Y, I: Integer;
      TP: TPoint;
    Begin
      If(Not(LoggedIn))Then Exit;
      For I := 0 To 3 Do
      Begin
        FindColorsSpiralTolerance(MSCX, MSCY, TPA, 2189191, 20, 20, MSX2 - 10, MSY2 - 10, 10);
        For C := 0 To GetArrayLength(TPA) - 1 Do
        Begin
          TP := TPA[c];
          FindColorsTolerance(TPA2, 2189191, TP.x - 25, TP.y - 25, TP.x + 25, TP.y + 25, 10);
          If(GetArrayLength(TPA2) > 150)Then
          Begin
            MiddleTPAEx(TPA2, X, Y);
            MMouse(X, Y, 5, 5);
            If(Pos('lose', GetUpText) > 0)Then
            Begin
              Result := True;
              Exit;
            End Else
            Begin
              If(Pos('pen', GetUpText) > 0)Then
              Begin
                GetMousePos(X, Y);
                Mouse(X, Y, 1, 1, True);
                Result := True;
                Exit;
              End;
            End;
          End;
        End;
        If Not Rotate Then
        Begin
          Exit;
        End Else
        Begin
          ActivateClient;
          Wait(125 + Random(25));
          SendArrowSilentWait(1, 1100 + Random(150));
        End;
      End;
    End;

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

    Default

    What kind of door is this for?



    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)

  3. #3
    Join Date
    Dec 2006
    Location
    Copy pastin to my C#
    Posts
    3,788
    Mentioned
    8 Post(s)
    Quoted
    29 Post(s)

    Default

    I made it with the Al-Kharid doors, so Im pretty sure its for the Misthalin doors (varrock, lumby, draynor) etc.

    EDIT: Fally is not in misthalin..

  4. #4
    Join Date
    Sep 2007
    Posts
    71
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    thanks, i was thinking to make own script so i need this

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

    Default

    kk thanks it could work!

  6. #6
    Join Date
    Dec 2006
    Location
    Copy pastin to my C#
    Posts
    3,788
    Mentioned
    8 Post(s)
    Quoted
    29 Post(s)

    Default

    Thats good vasu..

    Hermpie, seriously, some control to that spam,
    it could work!
    I wouldnt post it if it didnt work would I?

  7. #7
    Join Date
    Sep 2006
    Location
    New Jersey, USA
    Posts
    5,347
    Mentioned
    1 Post(s)
    Quoted
    3 Post(s)

    Default

    You got IM? I'd like to talk to you about this objectfinding stuff, if you've got the time.

    Looks nice, I'll see what I can learn from it
    Interested in C# and Electrical Engineering? This might interest you.

  8. #8
    Join Date
    May 2006
    Location
    Amsterdam
    Posts
    3,620
    Mentioned
    5 Post(s)
    Quoted
    0 Post(s)

    Default

    May i ask you something?

    Make 1 post.. Object Finding Procedures By N3ss3s... Kinda annoying making a separate post for every object finding procedure ^^. Oh and maybe, just a suggestion.. Stop making those functions and start making some real stuff, full working scripts maybe?

    ~Raymond
    Verrekte Koekwous

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

    Default

    Quote Originally Posted by n3ss3s View Post
    Thats good vasu..

    Hermpie, seriously, some control to that spam, I wouldnt post it if it didnt work would I?
    im making a lumby spinner so i said it could work, i mean i will try and maybe it could work, see it like positive

  10. #10
    Join Date
    Dec 2006
    Location
    Copy pastin to my C#
    Posts
    3,788
    Mentioned
    8 Post(s)
    Quoted
    29 Post(s)

    Default

    Ray I have a miner which works, everything else works fully except for SRL walking.

    Smartz, tornaado_peluri@hotmail.com

    @nawbz, dont add..

    Masta everybody has their own 'direction' of scripting..

  11. #11
    Join Date
    May 2006
    Location
    Amsterdam
    Posts
    3,620
    Mentioned
    5 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by n3ss3s View Post
    Ray I have a miner which works, everything else works fully except for SRL walking.

    Smartz, tornaado_peluri@hotmail.com

    @nawbz, dont add..

    Masta everybody has their own 'direction' of scripting..
    I know. I mean that you can keep making those functions\procedures, not many people will use them (maybe none). But if you make a pwnage kicking script with uber 1337 object finding, many people will use it. You will become famous!
    Verrekte Koekwous

  12. #12
    Join Date
    Oct 2006
    Location
    finland, helsinki
    Posts
    2,501
    Mentioned
    3 Post(s)
    Quoted
    2 Post(s)

    Default

    Nesses make a object finder that detects if the door is open using TPA's

    Heres a fast one i created

    SCAR Code:
    Program Test;
    {.Include SRL/SRL.Scar}

    Function DoorPixels(DoorColor, x1, y1, x2, y2: Integer): Integer;
    Var
      DoorTPA: TPointArray;
    Begin
      FindColorsTolerance(DoorTPA, DoorColor, x1, y1, x2, y2, 10);
      Result := GetArrayLength(DoorTPA)-1;
    End;

    Function OpenDoor(DoorColor, x1, y1, x2, y2: Integer): Boolean;
    Var
      i, X, Y, DoorPixelAmount: Integer;
      DoorTPA, DoorTPA2: TPointArray;
    Begin
      LowestAngle;
      MakeCompass('n');
      Wait(300+Random(300));
      DoorPixelAmount := DoorPixels(DoorColor, x1, y1, x2, y2);
      Writeln('Found: '+IntToStr(DoorPixelAmount)+' Door Pixels');
      If(DoorPixelAmount > 200)Then
        Writeln('Door is closed')
      Else Writeln('Door is open');
      HighestAngle;
    End;

    Begin
      SetupSRL;         //MSCX-100, MSCY-100, MSCX+100, MSCY+100
      OpenDoor(4615805, MSCX-100, MSCY-100, MSCX+100, MSCY+100);
    End.

    Test in edge at the stove.

    Code:
    • Narcle: I recall Jukka releasing a bunch of scripts like this before... Its how he rolls I think. rofl
    • Solarwind: Dude, you are like... t3h s3x.
    • Hy71194: JuKKa you're a machine! You released 3 scripts in 10 minutes! :O
    • benjaa: woah.... Jukka is the man Guildminer pwns all
    • NaumanAkhlaQ: And JuKKa Is my Her0!

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

    Default

    Quote Originally Posted by JuKKa View Post
    Nesses make a object finder that detects if the door is open using TPA's

    Heres a fast one i created

    SCAR Code:
    Program Test;
    {.Include SRL/SRL.Scar}

    Function DoorPixels(DoorColor, x1, y1, x2, y2: Integer): Integer;
    Var
      DoorTPA: TPointArray;
    Begin
      FindColorsTolerance(DoorTPA, DoorColor, x1, y1, x2, y2, 10);
      Result := GetArrayLength(DoorTPA)-1;
    End;

    Function OpenDoor(DoorColor, x1, y1, x2, y2: Integer): Boolean;
    Var
      i, X, Y, DoorPixelAmount: Integer;
      DoorTPA, DoorTPA2: TPointArray;
    Begin
      LowestAngle;
      MakeCompass('n');
      Wait(300+Random(300));
      DoorPixelAmount := DoorPixels(DoorColor, x1, y1, x2, y2);
      Writeln('Found: '+IntToStr(DoorPixelAmount)+' Door Pixels');
      If(DoorPixelAmount > 200)Then
        Writeln('Door is closed')
      Else Writeln('Door is open');
      HighestAngle;
    End;

    Begin
      SetupSRL;         //MSCX-100, MSCY-100, MSCX+100, MSCY+100
      OpenDoor(4615805, MSCX-100, MSCY-100, MSCX+100, MSCY+100);
    End.

    Test in edge at the stove.
    Or you could get it's angle and compare it to the door's minimap angle.



    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)

  14. #14
    Join Date
    Dec 2006
    Location
    Copy pastin to my C#
    Posts
    3,788
    Mentioned
    8 Post(s)
    Quoted
    29 Post(s)

    Default

    Yeah... Btw Wizzy, Im having sometimes problems with MakeCompass, I do activateclient and all, but MakeCompass doesn't do anything YAY WORKS!
    EDIT:
    What kind of door is this for?
    Misthalin, what about it?

    EE: Masta, true, but for example CM4D (coal miner for desert) has good place for obj finding, the rocks. But then the walking is hard to get stable =( Im trying to think of some script that people would love, and also had objects to find. Like, a killer is nice, but they arent so popular as ess miners etc and only one object to find, and the NPC usually differs from the nature so a simple like FindColorTolerance is enough...

    Yay 2,8k posts..

    EEE: Also Wizzy if I may request, could the 75-year old woman bla bla be closed? Its just a place for pc++

  15. #15
    Join Date
    Nov 2006
    Posts
    1,103
    Mentioned
    0 Post(s)
    Quoted
    6 Post(s)

    Default

    or if it has the same direction as any white points in the area...
    Infractions, reputation, reflection, the dark side of scripting, they are.

  16. #16
    Join Date
    Dec 2006
    Location
    Copy pastin to my C#
    Posts
    3,788
    Mentioned
    8 Post(s)
    Quoted
    29 Post(s)

    Default

    Yeah, but just need to make sure the map is north.

    EDIT: Charmz, Wizzy, Killerdou.... My door opener is somehow ub3rspecial, legends are viewing it wtf..

  17. #17
    Join Date
    Nov 2006
    Posts
    1,103
    Mentioned
    0 Post(s)
    Quoted
    6 Post(s)

    Default

    how am i a legend plox
    Infractions, reputation, reflection, the dark side of scripting, they are.

  18. #18
    Join Date
    Dec 2006
    Location
    Copy pastin to my C#
    Posts
    3,788
    Mentioned
    8 Post(s)
    Quoted
    29 Post(s)

    Default

    Well you have your name like everywhere in the WizzyPlugin

    EDIT: Now I know.... Clarion v0.8

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

    Default

    Boreas, is viewing

  20. #20
    Join Date
    Apr 2007
    Location
    Texas
    Posts
    1,668
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    forgive me for the semi grave dig, but i was helping out skilld u on msn, and i thought that it would be helpfull for people to know that this function still works great and can save you quite a bit of trouble opening dorrs.

    tested and works.
    [IMG]http://farm3.static.flickr.com/2120/2052732965_348f3629d0_o.jpg[/IMG]

  21. #21
    Join Date
    Dec 2006
    Location
    Banville
    Posts
    3,914
    Mentioned
    12 Post(s)
    Quoted
    98 Post(s)

    Default

    Are the doors in mithalin different from Members/Other?
    The jealous temper of mankind, ever more disposed to censure than
    to praise the work of others, has constantly made the pursuit of new
    methods and systems no less perilous than the search after unknown
    lands and seas.

  22. #22
    Join Date
    Dec 2006
    Location
    Copy pastin to my C#
    Posts
    3,788
    Mentioned
    8 Post(s)
    Quoted
    29 Post(s)

    Default

    It depends of the area, what I've seen, Misthalin doors differ from Asgarnia etc, fally doors aren't as dark I think.

    Thank you Greg

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. My OpenDoor and BuyRune function
    By tim46 in forum RS3 Outdated / Broken Scripts
    Replies: 2
    Last Post: 06-14-2007, 08:01 PM
  2. My opendoor Function(worked on everydoor i tried)
    By Bramble in forum RS3 Outdated / Broken Scripts
    Replies: 7
    Last Post: 12-12-2006, 10:43 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
  •