Results 1 to 7 of 7

Thread: Getting price items bought/sold from GE

  1. #1
    Join Date
    Aug 2012
    Posts
    6
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Getting price items bought/sold from GE

    I want to get the price that items buy/sell on the GE. For example, if I bought a feather, I would want to read the following text to get my desired data:



    I understand that I have to use the getTextAt method however I'm unsure as to exactly how I would implement this into my script.

    Thanks in advance for the help

  2. #2
    Join Date
    Jan 2008
    Location
    Ontario, Canada
    Posts
    7,805
    Mentioned
    5 Post(s)
    Quoted
    3 Post(s)

    Default

    Have you looked at the GrandExchange.simba? It might have the methods you need.
    Writing an SRL Member Application | [Updated] Pascal Scripting Statements
    My GitHub

    Progress Report:
    13:46 <@BenLand100> <SourceCode> @BenLand100: what you have just said shows you 
                        have serious physchological problems
    13:46 <@BenLand100> HE GETS IT!
    13:46 <@BenLand100> HE FINALLY GETS IT!!!!1

  3. #3
    Join Date
    Aug 2012
    Posts
    6
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Nava2 View Post
    Have you looked at the GrandExchange.simba? It might have the methods you need.
    Already looked in GrandExchange.simba - there's nothing relevant to reading text in there. Thanks for the help though.

  4. #4
    Join Date
    Jan 2008
    Location
    Ontario, Canada
    Posts
    7,805
    Mentioned
    5 Post(s)
    Quoted
    3 Post(s)

    Default

    Check the documentation for GetTextAt, but I think it requires the top left point, just do a find colour of that, get the top left, then pass that pt into the GetTextAt with the appropriate parameters.
    Writing an SRL Member Application | [Updated] Pascal Scripting Statements
    My GitHub

    Progress Report:
    13:46 <@BenLand100> <SourceCode> @BenLand100: what you have just said shows you 
                        have serious physchological problems
    13:46 <@BenLand100> HE GETS IT!
    13:46 <@BenLand100> HE FINALLY GETS IT!!!!1

  5. #5
    Join Date
    Feb 2006
    Posts
    3,044
    Mentioned
    4 Post(s)
    Quoted
    21 Post(s)

    Default

    Simba Code:
    program new;
    {$i SRL\SRL.simba}

    var
      Price: Integer;
    begin
      SetupSRL;
      Price := StrToInt(ExtractFromStr(GetTextAtExWrap(156, 283, 338, 300, 0, 50, 10, 39372, 5, StatChars), Numbers));
      WriteLn(IntToStr(Price));
    end.


    Should do the trick

    Don't just copy it, try learn from it. Like Nava said above, look into Docs and same time look above code.

    ~Home

  6. #6
    Join Date
    Aug 2012
    Posts
    6
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Thanks guys - such a great community here, always ready to help!

  7. #7
    Join Date
    Dec 2011
    Location
    The Netherlands
    Posts
    1,631
    Mentioned
    47 Post(s)
    Quoted
    254 Post(s)

    Default

    This has been asked multiple times, here is another topic if you run into any errors:
    http://villavu.com/forum/showthread....ighlight=price

    Script source code available here: Github

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
  •