Results 1 to 6 of 6

Thread: Tradescreen function...help plz

  1. #1
    Join Date
    Apr 2007
    Location
    Michigan -.-
    Posts
    1,357
    Mentioned
    2 Post(s)
    Quoted
    4 Post(s)

    Default Tradescreen function...help plz

    so it seems like the tradescreen and tradescreen2 functions arent working due to the updated trade interface on rs...

    i was hoping any1 had any ideas on making a few new ones that worked with the new tradescreen...

    i first tried making a bitmap of some of the text that is common to the screen and that didnt work...then i tried to use IsTextInAreaEx but im kinda unfamiliar with it and dont know how to manipulate the syntax for the text in the tradescreen (tried TradeChars) and that also didnt work...

    any1 got ideas on tradescreen detection functions?
    METAL HEAD FOR LIFE!!!

  2. #2
    Join Date
    Jun 2006
    Posts
    3,861
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    SCAR Code:
    function TradeScreen: Boolean;
    begin
      if (GetColor(246, 193) = 49152) then
        Result := True;
    end;
    That should work.

  3. #3
    Join Date
    Apr 2007
    Location
    Michigan -.-
    Posts
    1,357
    Mentioned
    2 Post(s)
    Quoted
    4 Post(s)

    Default

    thanks ill c if it works

    do u know if the tradescreen2 function needs a quick fix as well?
    METAL HEAD FOR LIFE!!!

  4. #4
    Join Date
    Jun 2006
    Posts
    3,861
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    You shouldn't need it. It might be broken, but you can just use TradeScreen. TradeScreen2 is the same thing (except maybe broken), but it just uses different coords to check for the green color in the accept button. So, if it really does need to be fixed, just get somebody to trade with you and use the color picker to pick a coordinate on the green accept text.

  5. #5
    Join Date
    May 2007
    Posts
    468
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    not too hard, or complicated.
    Originally Posted by YoHoJo
    I like hentai.

  6. #6
    Join Date
    Apr 2007
    Location
    Michigan -.-
    Posts
    1,357
    Mentioned
    2 Post(s)
    Quoted
    4 Post(s)

    Default

    sweet thanks

    i didnt know if the color picker was a good idea cuz the new tradescreen looked more dynamic and able to be color swapped a lil bit so yea...lol but works fine now thanks guys
    METAL HEAD FOR LIFE!!!

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Type mismatch (TradeScreen)
    By Bartgielen in forum OSR Help
    Replies: 14
    Last Post: 01-03-2009, 09:16 PM
  2. Replies: 2
    Last Post: 02-27-2008, 05:20 PM
  3. Replies: 2
    Last Post: 02-26-2008, 08:26 PM
  4. Tradescreen has been changed
    By The Claw in forum RS has been updated.
    Replies: 4
    Last Post: 08-05-2007, 10:00 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
  •