Results 1 to 13 of 13

Thread: Altar Portals

  1. #1
    Join Date
    Jun 2007
    Posts
    1,312
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Altar Portals

    Well, I got everything ready except this.
    The Portal is always 'floating up and down' so the colors change a bit no matter what.
    I could use tolerance I guess, but I want to know if theres an alternative.
    Thanks.

  2. #2
    Join Date
    Aug 2007
    Posts
    1,404
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    SCAR Code:
    Function EnterTemple: Boolean;
    var
     Talisman,a,b,I: Integer;
     Box,Box2: TBox;
    begin
      GameTab(4)
      Talisman := DTMFromString('78DA63B466626078C88002AA8B8A18FE03694' +
           '620FE0F048CCE4035B718D000231209A43D816AEEE05603C63E40' +
           '354F09A87107AA7949408D0350CD2B22D47C22A0C602A8E61D013' +
           '5664035AF09A8B121EC6600112A121B');
      if 1=1 then
      begin
        if FindDTM(Talisman,a,b,MIx1,MIy1,MIx2,MIy2) then
        begin
          Mouse(a,b,7,7,true)
        end;
      end;
      repeat
        if FindColorTolerance(a,b,5333885,MSx1,MSy1,MSx2,MSy2,10) then
        begin
          Wait(100+random(1000))
          MMouse(a+10,b+10,20,20)
          if IsUpText('ysterious') then
          begin
            GetMousePos(a,b)
            Mouse(a,b,0,0,true)
            Result:= True;
            Break;
          end else
          begin
            Box:= IntToBox(a-15,b-15,a+15,b+15)
            if FindColorSkipBoxTolerance(a,b,5333885,MSx1,MSy1,MSx2,MSy2,10,Box) then
            begin
              MMouse(a+10,b+10,20,20)
              if IsUpText('ysterious') then
              begin
                GetMousePos(a,b)
                Mouse(a,b,0,0,true)
                Result:= True;
                Break;
              end else
              begin
                Box2:= IntToBox(a-15,b-15,a+15,b+15)
                if FindColorSkipBoxArrayTolerance(a,b,5333885,MSx1,MSy1,MSx2,MSy2,10,[Box, Box2])then
                begin
                  MMouse(a+10,b+10,20,20)
                  if IsUpText('ysterious') then
                  begin
                    GetMousePos(a,b)
                    Mouse(a,b,0,0,true)
                    Result:= True;
                    Break;
                  end;
                end;
              end;
            end;
          end;
        end;
        Wait(10+random(10))
        I:= I + 1;
      until(I >= 3000)
      FlagNWait;
      Wait(5000+random(5000))
      FreeDTM(Talisman)
    end;

    Try that one. If you wonder why it is "if 1=1", I can tell you it is because you can replace it with another booleanvalue. For example, if the account uses tally or tiara.

    Remember to credit me, etc, if you choose to use it

    GL with your script,
    -Knives

  3. #3
    Join Date
    Jun 2007
    Posts
    1,312
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Not the altar, the portal inside the altar...lol
    EDIT
    Actually, I think I'm going to make an autocolor thing. It'll teach me something new =/
    ...Maybe

  4. #4
    Join Date
    Aug 2007
    Posts
    1,404
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    OH THE PORTAL! The portal OUT of the temple. I should really learn to understand what I read.

    I would put a loop with if FindObj. Break the loop if it finds the portal and wait 10+random(10) if it doesn't find it. That will you will search for the color once every 10-20th milliseconds. And since you're in a loop it would most likely find it no matter what...

    -Knives

  5. #5
    Join Date
    Jun 2007
    Posts
    1,312
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Yeah, I think that may be what I have to do, since trying to auto-color it would still be impossible since the pixels keep changing..I would have to know at least one of the pixels colors, and I don't think any of them are constant in there.
    I'm gonna do some research, and maybe invent a 'FindColorProximity'

    Thanks Knives.

  6. #6
    Join Date
    Aug 2007
    Posts
    1,404
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    FindObj uses a mixture of up-text and color with tolerance.

    With the loop and what I said before, it should find it, assuming you pick a good color and set the tolerance on a good level.

    Something like this:
    SCAR Code:
    repeat
        if FindObj(a,b,'ortal',10733771,15) then
        begin
          Mouse(a,b,0,0,true)
          FlagNWait;
          Break;
          Wait(5000+random(5000))
        end;
        Wait(10+random(10))
        Inc(I)
      until(I >= 2500)

    But if you wish to make a new function, just do that. Always good training.

    -Knives

  7. #7
    Join Date
    Dec 2006
    Location
    Sweden
    Posts
    10,812
    Mentioned
    3 Post(s)
    Quoted
    16 Post(s)

    Default

    Look at Wizzy's ess miner pl0x? :|


    Send SMS messages using Simba
    Please do not send me a PM asking for help; I will not be able to help you! Post in a relevant thread or make your own! And always remember to search first!

  8. #8
    Join Date
    Aug 2007
    Posts
    1,404
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    Me > Wizzup

    You might aswell get used to it... JK

    But seriously, my way works, Wizzup's works. His choice.

    -Knives

  9. #9
    Join Date
    Jun 2007
    Posts
    1,312
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Where can I find the tolerance function? I'm interested in how it was setup, because my function is going to be similar.
    And the proximity function may work in the exact same way as I have in mind, meaning I'd be wasting a few goods hours in a 'not-as-powerful' version of it.
    (and mine will be superior to yours since it will be universal =D ...and impossible in certain places. )

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

    Default

    Autocoloring is more than just getting the value from a pixel 0_0.

    But anyway, you know what a DTM is?
    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.

  11. #11
    Join Date
    Jun 2007
    Posts
    1,312
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Would a DTM work with a constantly changing object? O_o
    I thought autocloring was getting the coordinates of 2 or more matched pixels, and using the x/y mod to find to value of the pixel you are looking for.
    Either way, I don't think DTMs or autocoloring would work with the portal, and that it would have to use timing/multiple frames.

  12. #12
    Join Date
    Aug 2007
    Posts
    1,404
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    Dude, use my idea before n3ss3s comes in here with his TPoints *Looks over shoulder* Mine works. Or... It did last time I checked.

    -Knives

  13. #13
    Join Date
    Jun 2007
    Posts
    1,312
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    lol, OK knives, I'll use yours for now. But what is this 'FlagNWait' you speak of? Or inc?
    Thanks man
    and it looks like meta stole ANOTHER of my ideas. Last time I'm posting anything concerning what I'm thinking, because theres always some rat-thief around...

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. gilded altar helper
    By hamster in forum First Scripts
    Replies: 25
    Last Post: 12-08-2008, 04:41 AM
  2. a little bit of help at the gilded altar
    By TheSmit1967 in forum First Scripts
    Replies: 2
    Last Post: 12-07-2008, 10:41 PM
  3. Altar Finding
    By Jackrawl in forum OSR Help
    Replies: 3
    Last Post: 10-13-2007, 04:41 PM
  4. Zmi-altar
    By butterl04 in forum RS3 Outdated / Broken Scripts
    Replies: 0
    Last Post: 10-06-2007, 10:21 AM
  5. A new rc altar script?
    By Mr beat in forum RS3 Outdated / Broken Scripts
    Replies: 11
    Last Post: 09-23-2007, 08:39 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •