Page 2 of 3 FirstFirst 123 LastLast
Results 26 to 50 of 74

Thread: SRL Fixes Because Of RS Update [Jan 16th 2012]

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

    Default

    Quote Originally Posted by Home View Post
    Doesn't work. Yet those uses new fonts, compare "4" to XpChars and you will see.

    ~Home
    :S But it's getting the XP for me :S It's just the last digit that it messes up on.
    I am Ggzz..
    Hackintosher

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

    Default

    Quote Originally Posted by ggzz View Post
    :S But it's getting the XP for me :S It's just the last digit that it messes up on.
    Odd.. For me it messes it up totally :S


    ~Home

  3. #28
    Join Date
    Jan 2012
    Posts
    12
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Wowww!! Nice Quick Fix!!! Thanks A Bunch!!!

  4. #29
    Join Date
    Nov 2011
    Location
    Puerto Rico
    Posts
    905
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by lilcmp1 View Post
    You are a beast! My rcer is working 100%
    what rcer you using

  5. #30
    Join Date
    Dec 2007
    Posts
    2,112
    Mentioned
    71 Post(s)
    Quoted
    580 Post(s)

    Default

    Doesnt work when other screens are open eg the xp setup screen

    Edit:

    Quote Originally Posted by illuminatiswag View Post
    what rcer you using
    Stay on topic

  6. #31
    Join Date
    Nov 2011
    Location
    Puerto Rico
    Posts
    905
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by pur3b100d View Post
    Doesnt work when other screens are open eg the xp setup screen
    exatcly what do we have to open so it works then

  7. #32
    Join Date
    Oct 2011
    Posts
    438
    Mentioned
    1 Post(s)
    Quoted
    3 Post(s)

    Default

    tested! works perfect thank-you! will post a proggy once i get a good one

  8. #33
    Join Date
    Nov 2011
    Location
    Puerto Rico
    Posts
    905
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Home View Post
    GetChooseOptions:

    Simba Code:
    Function GetChooseOptions(TextType: string): Array of TOptions;
    var
       B,BB: TBox;
       TPA, TPA1, TPA2: TPointArray;
       aTPA, tempatpa: T2DPointArray;
       I, L, target, bmp,w,h, cts: Integer;
       Colors: TIntegerArray;
    begin
      target := GetImageTarget;
      GetClientDimensions(B.X2, B.Y2);
      B := IntToBox(0, 0, B.X2-1, B.Y2-1);
      cts := GetColorToleranceSpeed;
      ColorToleranceSpeed(1);
      FindColorsTolerance(TPA1, 1842204, B.X1, B.Y1, B.X2, B.Y2, 0);
      FindColorsTolerance(TPA2, 2302755, B.X1, B.Y1, B.X2, B.Y2, 0);
      TPA := CombineTPA(TPA1, TPA2);
      If Length(TPA) < 10 Then
        Exit;

      B := IntToBox(0, 0, 0, 0);
      aTPA := SplitTPA(TPA, 10);
      SortATPASize(aTPA, True);
      B := GetTPABounds(aTPA[0]);
      //Object Blue, Player White, Item Orange, Action Tan, NPC Yellow, Level Green
      Colors := [14342147, 14079443, 3832268, 9677229, 840143{, 710915}];

      SetLength(aTPA, Length(Colors));
      for i := 0 to High(Colors) do
        FindColorsTolerance(aTPA[i], Colors[i], B.X1, B.Y1, B.X2, B.Y2, 70);
      TPA := MergeATPA(aTPA);
      FindColorsTolerance(TPA1, 986117, B.X1, B.Y1, B.X2, B.Y2, 24);//shadow

      bmp := CreateBitmap(B.X2-B.X1+2, B.Y2-B.Y1+2);
      OffsetTPA(TPA, Point(-B.X1, -B.Y1));
      OffsetTPA(TPA1, Point(-B.X1, -B.Y1));
      FastDrawClear(bmp, 0);
      DrawTPABitmap(bmp, TPA, clRed);
      DrawTPABitmap(bmp, TPA1, clPurple);
      ocr_FilterUpTextByCharacteristics(GetMufasaBitmap(bmp));
      GetbitmapSize(bmp,w,h);
      SetTargetBitmap(bmp);  // new target for findcolorstolerance.
      findcolorstolerance(TPA, clRed, 0, 0, w-1,h-1, 0);
      ATPA := SplitTPAEx(TPA, 15, 2);
      L := High(ATPA);
      SortATPAFromFirstPointY(ATPA, Point(w/2,0));

      SetArrayLength(Result, Length(ATPA));
      for i := 0 to high(ATPA) do
      begin
        TPA := ATPA[i];
        tempatpa := SplitTPAEx(TPA, 1, 10); // Split one into characters
        SortATPAFromFirstPointX(tempatpa, Point(0, 0));
        Result[i].Str := GetTextATPA(tempatpa, 4, 'UpCharsEx');
        BB := GetTPABounds(ATPA[i]);
        Result[i].Bounds := IntToBox(BB.X1+B.X1, BB.Y1+B.Y1, BB.X2+B.X1, BB.Y2+B.Y1);
        setlength(tempatpa,0);
        setlength(TPA,0);
      end;
      ColorToleranceSpeed(cts);
      SetImageTarget(target);
      FreeBitmap(bmp);
    end;


    GetSkillInfo:

    Simba Code:
    function GetSkillInfo(Skill: Variant; Amount : Boolean): Integer;
    var
      TP: TPoint;
      Box : TBox;
      TPA : TPointArray;
      Cts : Integer;

    begin
      Result := -1;
      GameTab(tab_Stats);
      TP := SkillToCoords(Skill);
      if (not(Amount)) then
        TP := Point(TP.x + 15,TP.y + 12);
      CTS := GetColorToleranceSpeed;
      ColorToleranceSpeed(0);
      if not FindColors(TPA, 36095, TP.x - 2, TP.y - 2, TP.x + 15, TP.y + 15) then
      begin
        ColorToleranceSpeed(CTS);
        exit;
      end;
      Box := GetTPABounds(TPA);
      Result := StrToIntDef(GetNumbers(GetTextAtEx(Box.x1 - 2, Box.y1 -1, 100,
        StatChars, False, True, 0, 3, 36095, 3, True, tr_Digits)), -1);
      ColorToleranceSpeed(CTS);
    end;

    Tested.

    But more testing is always welcome before commit.


    ~Home
    i got the first one were it supposed to go but where does second one go it isnt in srl/srl/core

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

    Default

    Quote Originally Posted by illuminatiswag View Post
    i got the first one were it supposed to go but where does second one go it isnt in srl/srl/core
    To GameTab.simba.

    That will make your GetLevel functions work. GetXp is still outdated and few other functions.


    ~Home

  10. #35
    Join Date
    Dec 2011
    Posts
    113
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    You work fast, you are a SRL god !!

    This works awesome!!

    Thanks

    p.s. ***A MUST***

    Just toggle off the pop-up by right clicking on the exp counter (top right same place it has always been) than it won't interfere with all the set colors in most script. Especially when they have the whole color spectrum on that popup.
    Last edited by shanghai88; 01-16-2012 at 08:33 PM.

  11. #36
    Join Date
    Nov 2011
    Location
    Puerto Rico
    Posts
    905
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Home View Post
    To GameTab.simba.

    That will make your GetLevel functions work. GetXp is still outdated and few other functions.


    ~Home
    Thanks you should add in OP were each thing goes like not where its located and junk just name of file

  12. #37
    Join Date
    Dec 2011
    Posts
    28
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    home can you make a fix that i can back again plz

  13. #38
    Join Date
    Jan 2012
    Posts
    27
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Font code works but when I do the 2nd one I get errors in the script

  14. #39
    Join Date
    Dec 2011
    Posts
    14
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Some Scripts arent working good though, the banking system is but not 100% Thanks to Home and Kyle Undefined as always for support

  15. #40
    Join Date
    Jan 2007
    Posts
    8,876
    Mentioned
    123 Post(s)
    Quoted
    327 Post(s)

    Default

    Home: Use github's pull request thing

  16. #41
    Join Date
    Apr 2008
    Location
    Marquette, MI
    Posts
    15,252
    Mentioned
    138 Post(s)
    Quoted
    680 Post(s)

    Default

    GetXP, GetChooseOptions, GetSkillInfo, and XPTillNextLevel are all fixed in the latest SRL. Should be automatically updated within an hour. Home, please update the first post with what's been fixed and what hasn't.

    So people know, Narcle is working on some combat fixes and XP bar fixes.

  17. #42
    Join Date
    Jan 2012
    Posts
    27
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Coh3n View Post
    GetXP, GetChooseOptions, GetSkillInfo, and XPTillNextLevel are all fixed in the latest SRL. Should be automatically updated within an hour. Home, please update the first post with what's been fixed and what hasn't.

    So people know, Narcle is working on some combat fixes and XP bar fixes.
    Thank you!

  18. #43
    Join Date
    Sep 2007
    Location
    Michigan
    Posts
    3,862
    Mentioned
    2 Post(s)
    Quoted
    1 Post(s)

    Default

    Fonts update is required, soon as I confirm new fonts are working I'll send them to Wizzup. There's a lot of XP bar changes and enhances that we can use. I don't have time to make new functions for it all but I'll get what we had before working.
    (Scripts outdated until I update for new SRL changes)
    AK Smelter & Crafter [SRL-Stats] - Fast Fighter [TUT] [SRL-Stats]
    If you PM me with a stupid question or one listed in FAQ I will NOT respond. -Narcle
    Summer = me busy, won't be around much.

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

    Default

    Quote Originally Posted by Coh3n View Post
    GetXP, GetChooseOptions, GetSkillInfo, and XPTillNextLevel are all fixed in the latest SRL. Should be automatically updated within an hour. Home, please update the first post with what's been fixed and what hasn't.

    So people know, Narcle is working on some combat fixes and XP bar fixes.
    Updated.


    ~Home

  20. #45
    Join Date
    Dec 2011
    Posts
    113
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Your new function also made my old script so much faster, thanks man!

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

    Default

    Quote Originally Posted by Narcle View Post
    Fonts update is required, soon as I confirm new fonts are working I'll send them to Wizzup. There's a lot of XP bar changes and enhances that we can use. I don't have time to make new functions for it all but I'll get what we had before working.
    I will take a look at them tomorrow, if you have some functions still broke / not functioning

    Good job Narcle + Coh3n.


    ~Home

  22. #47
    Join Date
    Jan 2012
    Posts
    27
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Home View Post
    GetSkillInfo:

    Simba Code:
    function GetSkillInfo(Skill: Variant; Amount : Boolean): Integer;
    var
      TP: TPoint;
      Box : TBox;
      TPA : TPointArray;
      Cts : Integer;

    begin
      Result := -1;
      GameTab(tab_Stats);
      TP := SkillToCoords(Skill);
      if (not(Amount)) then
        TP := Point(TP.x + 15,TP.y + 12);
      CTS := GetColorToleranceSpeed;
      ColorToleranceSpeed(0);
      if not FindColors(TPA, 36095, TP.x - 2, TP.y - 2, TP.x + 15, TP.y + 15) then
      begin
        ColorToleranceSpeed(CTS);
        exit;
      end;
      Box := GetTPABounds(TPA);
      Result := StrToIntDef(GetNumbers(GetTextAtEx(Box.x1 - 2, Box.y1 -1, 100,
        StatChars, False, True, 0, 3, 36095, 3, True, tr_Digits)), -1);
      ColorToleranceSpeed(CTS);
    end;

    Progress:
    GetXP, GetChooseOptions, GetSkillInfo, and XPTillNextLevel = Fixed;

    Combat Stuff and XP Bar = Under Developement.


    ~Home
    When I do this I get this. Anyone help me?



    ImageShack.us

  23. #48
    Join Date
    Nov 2011
    Posts
    27
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    ------ Mining level (0) not met for ROCK_SILVER (20)
    [0:05:53]: [*************88] ------ Mining level (0) not met for ROCK_IRON (15)
    [0:05:53]: [***************8 ] ------ Mining level (0) not met for ROCK_TIN (1)
    [0:05:53]: [ ********88 ] ------ Mining level (0) not met for ROCK_MITHRIL (55)
    [0:05:53]: [ *************** ] ------ Players Found: 1
    [0:05:53]: [ ************* ] ------ Players Found: 1
    [0:05:53]: [ **************** ] ---- False reason set to: "Mining requirement not met (0/55)"
    [0:05:53]: [**********8 ] -- MSI_AutoObjects: False
    [0:06:03]: [******] -- MSI_UnsetPlayer
    [0:06:03]: [ **************8 ] ---- Failed to use script: Al Kharid Miner
    [0:06:03]: [******************* ] ---- MSI_SetSkillLevels
    [0:06:03]: [ ************] ------ [HOOKED] CharacterStats_FunctionCall: CharacterStats
    [0:06:03]: [ *************8 ] ---------- Bobzilla_GetData: Getting skill levels
    Last edited by indian12; 01-16-2012 at 09:16 PM. Reason: Didnt want to display my user

  24. #49
    Join Date
    Jan 2012
    Posts
    32
    Mentioned
    0 Post(s)
    Quoted
    10 Post(s)

    Default

    it is working now
    thanks a lot

  25. #50
    Join Date
    Nov 2011
    Posts
    27
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Angry No it isn't.

    Quote Originally Posted by ownagelouis View Post
    it is working now
    thanks a lot
    ...

Page 2 of 3 FirstFirst 123 LastLast

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
  •