Results 1 to 4 of 4

Thread: Script to pickup this #?

  1. #1
    Join Date
    Jan 2012
    Posts
    83
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default Script to pickup this #?

    Is it possible for me to write a script that will recognize the number
    "...for a total price of (x) gp."


    if so how...?
    Last edited by halgboy_tbc; 04-07-2012 at 03:02 AM.

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

    Default

    what? I didn't understand the question.. do u mean you want to count the #of GP in the invent or bank? or do u mean u want to withdraw -X amount of gp? or what? it isn't clear..

    EDIT: Just saw the pic u just posted..
    Try looking at the ItemAmount function or modify it and make one.. easy
    I am Ggzz..
    Hackintosher

  3. #3
    Join Date
    Jul 2008
    Location
    NSW, Australia
    Posts
    881
    Mentioned
    0 Post(s)
    Quoted
    3 Post(s)

    Default

    Hmm the Item amount function probably isn't going to work on that Font.
    You may need to make your own font set for the G.E number's which won't take very long at all and use that its only 10 bitmap's

  4. #4
    Join Date
    Mar 2007
    Posts
    5,125
    Mentioned
    275 Post(s)
    Quoted
    901 Post(s)

    Default

    What I tested with:


    Simba Script:

    Simba Code:
    program Text;
      {$i SRL/srl.simba}

    function GetPrice: string;
    begin
      Result := GetTextAtExWrap(146, 285, 351, 298, 0, 5, 2, 39372, 5, StatChars);
    end;

    begin
    ClearDebug;
    writeln(GetPrice);
    end.

    Result:
    Code:
    1'295
    Successfully executed.
    Hope that is what you are looking for.

    Forum account issues? Please send me a PM

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
  •