Results 1 to 13 of 13

Thread: how to get in...

  1. #1
    Join Date
    Sep 2007
    Posts
    415
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default how to get in...

    for my script i need to get how to get into the falador cow pen, as i am making a falador south cow killer..i've got the walk from east bank all the way to around the tree near the cow pen, i need for it to click somewhere outside the pen near the gate, just in case the gate is closed, he could open it...here's what i have so far

    SCAR Code:
    program New;
    {.include srl/srl.scar}

    var
    x,y: integer;

    procedure ToPen;
    begin
      Makecompass('n');
      radialwalk(findfallyroadcolor,180,240,30,1,1);
        repeat
          radialwalk(findfallyroadcolor,180,200,40,1,1);
          wait(1000);
        until(findsymbolin(x,y,'tree',628,8,704,165));
      mouse(x + 10,y + 10,10,10,true);
    end;

    procedure ToBank;
    begin
    end;

    begin
    SetupSRL;
    activateclient;
    ToPen;
    end.
    Quote Originally Posted by That guy that wrote forefeathers
    <munklez>haha im too lazy, girls annoy me
    <munklez> they always wanna like, do stuff
    <munklez> and i just wanna program
    <munklez> and they always take all my money

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

    Default

    hmmd DTM?
    ~Hermen

  3. #3
    Join Date
    Sep 2007
    Posts
    415
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    well, dtm's have never really worked for me before..and now ffs it can't find the fally roadcolor...
    Quote Originally Posted by That guy that wrote forefeathers
    <munklez>haha im too lazy, girls annoy me
    <munklez> they always wanna like, do stuff
    <munklez> and i just wanna program
    <munklez> and they always take all my money

  4. #4
    Join Date
    Feb 2007
    Location
    Het ademt zwaar en moedeloos vannacht.
    Posts
    7,211
    Mentioned
    26 Post(s)
    Quoted
    72 Post(s)

    Default

    Chickenpen over there is normal road colour.
    I made a new script, check it out!.

  5. #5
    Join Date
    Sep 2007
    Posts
    415
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Markus View Post
    Chickenpen over there is normal road colour.
    i don't understand what you mean by that, i'm trying to go to cow pen..

    nor do i understand radialroadwalk, which is what i know should be in place of my radialwalk...
    Quote Originally Posted by That guy that wrote forefeathers
    <munklez>haha im too lazy, girls annoy me
    <munklez> they always wanna like, do stuff
    <munklez> and i just wanna program
    <munklez> and they always take all my money

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

    Default

    he means when you start at bank and you do 2 steps down you will pass the falador wall after that theres normal roadcolor...

    try
    FindRoadColor;
    ~Hermen

  7. #7
    Join Date
    Sep 2007
    Posts
    415
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    yeah but i don't need that, i stop there, go a little past the woodcutting icon to the east, and i see the pen, i need a way to mapwalk right to the gate, so if it's closed it'll open and i can go in
    Quote Originally Posted by That guy that wrote forefeathers
    <munklez>haha im too lazy, girls annoy me
    <munklez> they always wanna like, do stuff
    <munklez> and i just wanna program
    <munklez> and they always take all my money

  8. #8
    Join Date
    Sep 2007
    Posts
    415
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    k guys this is where i think i need to be, if anyone knows and alternative that would work it'd be fine too

    EDIT: sorry guys double post :-( my bad
    Quote Originally Posted by That guy that wrote forefeathers
    <munklez>haha im too lazy, girls annoy me
    <munklez> they always wanna like, do stuff
    <munklez> and i just wanna program
    <munklez> and they always take all my money

  9. #9
    Join Date
    Jun 2007
    Location
    Belgium
    Posts
    333
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    what about finding the red color of the gate on the minimap, then when your there you could do a FindColorSpiralTolerance searching for the gate, and checking the uptext for the combination of 'gate' with 'open' and 'close'. If it find 'open' it needs to click so it open and you walk in and if it finds 'close' you just can enter.

  10. #10
    Join Date
    Sep 2007
    Posts
    415
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    well, the problem with just finding that red, is that there are the two other red gates close by, and it might would go to those, what i'm trying now is a radialwalk to the gate, which may work, and then what you said about searching and opening, thanks
    Quote Originally Posted by That guy that wrote forefeathers
    <munklez>haha im too lazy, girls annoy me
    <munklez> they always wanna like, do stuff
    <munklez> and i just wanna program
    <munklez> and they always take all my money

  11. #11
    Join Date
    Oct 2006
    Location
    Ontario,Canada
    Posts
    1,718
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    use doorprofiles. you can find them in core.

  12. #12
    Join Date
    Sep 2007
    Posts
    415
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    okie dokie...the radialwalk didn't work, so i am going with psychor's idea..well, is there any reason i would need to use findcolorspiraltolerance instead of just regular findcolor?

    o..getdoorcolor is like autocolor for doors right?
    Quote Originally Posted by That guy that wrote forefeathers
    <munklez>haha im too lazy, girls annoy me
    <munklez> they always wanna like, do stuff
    <munklez> and i just wanna program
    <munklez> and they always take all my money

  13. #13
    Join Date
    Jun 2007
    Location
    Belgium
    Posts
    333
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by drizzt View Post
    okie dokie...the radialwalk didn't work, so i am going with psychor's idea..well, is there any reason i would need to use findcolorspiraltolerance instead of just regular findcolor?
    You can set a tolerance and findcolorspiraltolerance searches in a spiral movement starting from the center

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
  •