Results 1 to 7 of 7

Thread: Exclude colours

  1. #1
    Join Date
    Jul 2008
    Posts
    136
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Exclude colours

    how to exclude colours dynamically in game ,
    e.g finds a colour but wrong uptext so exclude that colour .

  2. #2
    Join Date
    Nov 2011
    Posts
    24
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Well from what I've seen in some tutorials, instead of making your script exclude colors dynamically you should think of other ways to solve it. Most problems don't have only one answer in scripting.

    You could probably just make it to where it checks the uptext and if false then move on. Like in the MSI Fishing Guild Fisher it would check spot but then check uptext and if not the correct uptext then it moves on to the next identifiable color/shape. Like have a main thing that checks for correct uptext then call it when you believe it may be needed in other procedures/functions. Hope I helped.
    It's not brainfreeze. It's Flavo-Masochism.

  3. #3
    Join Date
    Oct 2010
    Posts
    1,255
    Mentioned
    0 Post(s)
    Quoted
    15 Post(s)

    Default

    Quote Originally Posted by I Am Legend View Post
    how to exclude colours dynamically in game ,
    e.g finds a colour but wrong uptext so exclude that colour .
    Simba Code:
    If Not Uptext..... Then
    Begin
      GetMousePos(X, Y);
      C := GetColor(X, Y);
      ColorBlackList[...] := C;

    The ... would be position of the last color inside + 1, and then run a command after retrieving your TPA/ATPA to delete all colors in your ColorBlackList from the arrays.
    I'm back

  4. #4
    Join Date
    Feb 2007
    Location
    Switzerland
    Posts
    583
    Mentioned
    1 Post(s)
    Quoted
    50 Post(s)

    Default

    I would suggest to exclude TPAs with help of colours. When you have an object next to your target object, that "coincidentally" got the same colours (thx Jagex ), then you could easily exclude it using unique colours of the annoying object.

    (At least it's how I do in my script)

  5. #5
    Join Date
    Oct 2010
    Posts
    1,255
    Mentioned
    0 Post(s)
    Quoted
    15 Post(s)

    Default

    Quote Originally Posted by Gala View Post
    I would suggest to exclude TPAs with help of colours. When you have an object next to your target object, that "coincidentally" got the same colours (thx Jagex ), then you could easily exclude it using unique colours of the annoying object.

    (At least it's how I do in my script)
    Excluded 1 of 2 objects which have the same colors by using unique colors, indarasting...
    I'm back

  6. #6
    Join Date
    Feb 2011
    Location
    The Future.
    Posts
    5,600
    Mentioned
    396 Post(s)
    Quoted
    1598 Post(s)

    Default

    Quote Originally Posted by Gala View Post
    I would suggest to exclude TPAs with help of colours. When you have an object next to your target object, that "coincidentally" got the same colours (thx Jagex ), then you could easily exclude it using unique colours of the annoying object.

    (At least it's how I do in my script)
    How do u get these unique colours.. I'm pretty sure it's extremely hard to differentiate between a player wearing a neitiznot helmet vs. a dropped water rune on the floor.. I've tried for hours on that and ended up doing RaASTPA then going to each one for uptexts.
    I am Ggzz..
    Hackintosher

  7. #7
    Join Date
    Feb 2007
    Location
    Switzerland
    Posts
    583
    Mentioned
    1 Post(s)
    Quoted
    50 Post(s)

    Default

    Idk if it works for you, but this is my situation: I have to exclude all found Tpoints on the soulwars portal in Edgeville (it has similar colours as yew trees)
    But the portal has also a unique color (beige). With this, you can remove all Tpoints you dont want to have. Tpa -> MiddleTpa -> Tpoint -> remove all Tpoints within a circle with radius r.

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
  •