Page 13 of 31 FirstFirst ... 3111213141523 ... LastLast
Results 301 to 325 of 767

Thread: [Unofficial] OldschoolRS07 Include

  1. #301
    Join Date
    Feb 2013
    Posts
    465
    Mentioned
    6 Post(s)
    Quoted
    221 Post(s)

    Default

    @tombraider you coudl use these simple funcions

    Code:
     
    function getHp:double;
    var
      green,red:TpointArray;
      x,y:integer;
    begin
        FindColorsTolerance(green,65280,240,70,275,170,0);
      FindColorsTolerance(red,255,240,70,275,170,0);
      result:=100*length(green)/(length(green)+length(red));
    end;
    
    function inCombat:boolean;
    var 
      x,y:integer;
    begin
      result:=findcolortolerance(x,y,65280,240,70,275,170,5);
    end;
    They work well enough for a start.

  2. #302
    Join Date
    Jun 2012
    Posts
    15
    Mentioned
    0 Post(s)
    Quoted
    5 Post(s)

    Default

    Thank you! Looking forward to it.

    @Wthomas above:
    This would only check every healthbar available at that time i need to check my characters healthbar accurately for any randoms that appear and start to attack me.

  3. #303
    Join Date
    Nov 2012
    Posts
    2,351
    Mentioned
    55 Post(s)
    Quoted
    603 Post(s)

    Default

    Everyone having uptext issues (mouse hovering and not clicking), Please run this for me:

    Simba Code:
    Program UpTextDebugger;

    {$I SRL/SRL.Simba}
    {$I SRL/SRL/Misc/Debug.Simba}
    {$I P07Include.Simba}

    // Drag green target from Simba onto mainscreen of runescape
    // Click run, within 5 seconds hover over something ingame, Wait
    // 5 Sec for debug output, Show Everything, Including image that
    // Will open up, or locate it where you ran this script from
    // To Danny, via PM or Here :
    //     http://villavu.com/forum/showthread.php?t=96863

    Var
      TCTS: Integer;
      TCTSHM,TCTSSM: Extended;
      DebuggerTPA: TPointArray;

    Begin
      Wait(5000);
      SetupP07Include;
      GetColorspeed2Modifiers(TCTSHM,TCTSSM);
      TCTS:=GetColorToleranceSpeed;
      WriteLn('CTS   : '+ToStr(TCTS));
      WriteLn('CTSHM : '+ToStr(TCTSHM));
      WriteLn('CTSSM : '+ToStr(TCTSSM));
      WriteLn('UpTxT : '+ToStr(P07_GetUpText));
      SetColorspeed2Modifiers(0.00,0.00);
      SetColorToleranceSpeed(0);
      WriteLn('UpTxT0: '+ToStr(P07_GetUpText));
      SetColorspeed2Modifiers(0.02,0.02);
      SetColorToleranceSpeed(1);
      WriteLn('UpTxT1: '+ToStr(P07_GetUpText));
      SetColorspeed2Modifiers(TCTSHM,TCTSSM);
      SetColorToleranceSpeed(TCTS);
      SetLength(DebuggerTPA,4);
      DebuggerTPA:=[Point(8,8),Point(170,8),Point(170,21),Point(8,21)]
      DebugTPA(DebuggerTPA,'DebuggerTPA');
    End.


    Programming is like trying keep a wall of shifting sand up, you fix one thing but somewhere else starts crumbling

  4. #304
    Join Date
    Feb 2013
    Posts
    14
    Mentioned
    0 Post(s)
    Quoted
    11 Post(s)

    Default

    Quote Originally Posted by DannyRS View Post
    Everyone having uptext issues (mouse hovering and not clicking), Please run this for me:

    Simba Code:
    Program UpTextDebugger;

    {$I SRL/SRL.Simba}
    {$I SRL/SRL/Misc/Debug.Simba}
    {$I P07Include.Simba}

    // Drag green target from Simba onto mainscreen of runescape
    // Click run, within 5 seconds hover over something ingame, Wait
    // 5 Sec for debug output, Show Everything, Including image that
    // Will open up, or locate it where you ran this script from
    // To Danny, via PM or Here :
    //     http://villavu.com/forum/showthread.php?t=96863

    Var
      TCTS: Integer;
      TCTSHM,TCTSSM: Extended;
      DebuggerTPA: TPointArray;

    Begin
      Wait(5000);
      SetupP07Include;
      GetColorspeed2Modifiers(TCTSHM,TCTSSM);
      TCTS:=GetColorToleranceSpeed;
      WriteLn('CTS   : '+ToStr(TCTS));
      WriteLn('CTSHM : '+ToStr(TCTSHM));
      WriteLn('CTSSM : '+ToStr(TCTSSM));
      WriteLn('UpTxT : '+ToStr(P07_GetUpText));
      SetColorspeed2Modifiers(0.00,0.00);
      SetColorToleranceSpeed(0);
      WriteLn('UpTxT0: '+ToStr(P07_GetUpText));
      SetColorspeed2Modifiers(0.02,0.02);
      SetColorToleranceSpeed(1);
      WriteLn('UpTxT1: '+ToStr(P07_GetUpText));
      SetColorspeed2Modifiers(TCTSHM,TCTSSM);
      SetColorToleranceSpeed(TCTS);
      SetLength(DebuggerTPA,4);
      DebuggerTPA:=[Point(8,8),Point(170,8),Point(170,21),Point(8,21)]
      DebugTPA(DebuggerTPA,'DebuggerTPA');
    End.
    Compiled successfully in 1029 ms.
    Checking P07Include VersionNumber
    Local : 1.7 / Latest : 1.7
    You Have The Latest Version of P07Include
    CTS : 1
    CTSHM : 0.2
    CTSSM : 0.2
    UpTxT :
    UpTxT0: !  %
    UpTxT1: !  %
    Successfully executed.

    this is what it said, and showed me the picture of "chop oak tree"

  5. #305
    Join Date
    Nov 2007
    Location
    Under your bed.
    Posts
    76
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default

    When I try to run this on my computer it works perfectly, however, when I try to run it on a VM, I get an upchar error, is this normal?

    Simba Code:
    Error: Exception: Font [P07UpChars] not found. at line 108
    The following DTMs were not freed: [0, 1, 2, 3]

    Thanks.

    EDIT: Added code
    Last edited by Finiahmad; 02-27-2013 at 07:33 PM.

  6. #306
    Join Date
    Nov 2012
    Posts
    2,351
    Mentioned
    55 Post(s)
    Quoted
    603 Post(s)

    Default

    Quote Originally Posted by Rico1993 View Post
    Compiled successfully in 1029 ms.
    Checking P07Include VersionNumber
    Local : 1.7 / Latest : 1.7
    You Have The Latest Version of P07Include
    CTS : 1
    CTSHM : 0.2
    CTSSM : 0.2
    UpTxT :
    UpTxT0: ! %
    UpTxT1: ! %
    Successfully executed.

    this is what it said, and showed me the picture of "chop oak tree"
    need to see the picture (uncompressed)


    Quote Originally Posted by Finiahmad View Post
    When I try to run this on my computer it works perfectly, however, when I try to run it on a VM, I get an uptext error, is this normal?

    Thanks.
    Nope not normal, try debug script above please(on VM), will help me fix
    Last edited by DannyRS; 02-27-2013 at 07:32 PM.


    Programming is like trying keep a wall of shifting sand up, you fix one thing but somewhere else starts crumbling

  7. #307
    Join Date
    Nov 2007
    Location
    Under your bed.
    Posts
    76
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default

    Quote Originally Posted by DannyRS View Post
    need to see the picture (uncompressed)




    Nope not normal, try debug script above please(on VM), will help me fix
    Sorry I meant UpChars not Uptext, sorry!
    Please see my edit

  8. #308
    Join Date
    Jan 2012
    Posts
    4
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    Hey, i was wondering if this include works with creating a custom walk path as seen in this tutorial:

    http://villavu.com/forum/showthread....hlight=reality

    Greatly appreciate any help

  9. #309
    Join Date
    Nov 2012
    Posts
    2,351
    Mentioned
    55 Post(s)
    Quoted
    603 Post(s)

    Default

    Quote Originally Posted by Sayerp View Post
    Hey, i was wondering if this include works with creating a custom walk path as seen in this tutorial:

    http://villavu.com/forum/showthread....hlight=reality

    Greatly appreciate any help
    SPS Does not work well in 07, I'm looking into it

    Quote Originally Posted by Finiahmad View Post
    Sorry I meant UpChars not Uptext, sorry!
    Please see my edit
    Did you forget to install the font on VM like you did on PC?
    Last edited by DannyRS; 02-27-2013 at 07:46 PM.


    Programming is like trying keep a wall of shifting sand up, you fix one thing but somewhere else starts crumbling

  10. #310
    Join Date
    Nov 2007
    Location
    Under your bed.
    Posts
    76
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default

    Quote Originally Posted by DannyRS View Post
    SPS Does not work well in 07, I'm looking into it



    Did you forget to install the font on VM like you did on PC?
    Ah, i forgot the littlest thing
    Thanks it worked, great job on making this btw thanks!

  11. #311
    Join Date
    Jan 2012
    Posts
    4
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    Quote Originally Posted by DannyRS View Post
    SPS Does not work well in 07, I'm looking into it



    Did you forget to install the font on VM like you did on PC?
    Ohh, ok thank you :P I'm just curious if you do manage to get SPS to work, would it be similar to how this is now (Just adding P07_xxxx) ?

  12. #312
    Join Date
    Dec 2012
    Posts
    7
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    I'm trying to use P07_UseKey but it doesn't do anything?
    Last edited by vation; 02-27-2013 at 08:45 PM.

  13. #313
    Join Date
    Mar 2012
    Location
    127.0.0.1
    Posts
    3,383
    Mentioned
    95 Post(s)
    Quoted
    717 Post(s)

    Default

    SMART Graphics seem to be broken.
    I'll test some more, and maybe post a fix.

    Edit: False alarm, I just broke it when I was editting SMART
    Last edited by NKN; 02-27-2013 at 09:44 PM.

  14. #314
    Join Date
    Feb 2013
    Posts
    9
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default

    So I've read every page of this thread and i'm still totally dumbfounded (the only person with a similar problem was insanity and he stopped replying, around page 2) as to how this isn't working for me. I am a total noob to this program/site, And anytime given to help me is appreciated. Here's my error and what I've done so far:
    Error:

    What it said on the console: [Error] C:\Program Files\Simba\Scripts\Killer06's EssMiner 1.02 (1).simba(308:50): Type mismatch at line 307
    What it said in the code (on line 307): if(P07_ContainsText(P07_GetUpText, 'ubur' )) then

    1. All extensions updated (SPL,SPS,MSI)
    2. Your include folder in the includes folder (C:\Program Files\Simba\Includes)
    3. Your fonts folder in the fonts folder (C:\Program Files\Simba\Fonts)
    4. I've uninstalled and re installed simba
    5. I've re-downloaded the script as well (http://villavu.com/forum/showthread.php?t=97208)
    6. I've ran your uptext debugger and idk what it did but I ran it..
    7. Also tested the slr, and it went into S.M.A.R.T and I had the eoc thing running
    Last edited by Kasterey; 02-27-2013 at 10:27 PM.

  15. #315
    Join Date
    Sep 2010
    Posts
    5,762
    Mentioned
    136 Post(s)
    Quoted
    2739 Post(s)

    Default

    Quote Originally Posted by Kasterey View Post
    So I've read every page of this thread and i'm still totally dumbfounded (the only person with a similar problem was insanity and he stopped replying, around page 2) as to how this isn't working for me. I am a total noob to this program/site, And anytime given to help me is appreciated. Here's my error and what I've done so far:
    Error:

    What it said on the console: [Error] C:\Program Files\Simba\Scripts\Killer06's EssMiner 1.02 (1).simba(308:50): Type mismatch at line 307
    What it said in the code (on line 307): if(P07_ContainsText(P07_GetUpText, 'ubur' )) then

    1. All extensions updated (SPL,SPS,MSI)
    2. Your include folder in the includes folder (C:\Program Files\Simba\Includes)
    3. Your fonts folder in the fonts folder (C:\Program Files\Simba\Fonts)
    4. I've uninstalled and re installed simba
    5. I've re-downloaded the script as well (http://villavu.com/forum/showthread.php?t=97208)
    6. I've ran your uptext debugger and idk what it did but I ran it..
    7. Also tested the slr, and it went into S.M.A.R.T and I had the eoc thing running
    Thats the anti leech in his script it's not the include

  16. #316
    Join Date
    Feb 2013
    Posts
    9
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default

    Quote Originally Posted by rjj95 View Post
    Thats the anti leech in his script it's not the include
    You've saved me from more rage, thanks man ahahaha was about to start hitting things.

  17. #317
    Join Date
    Feb 2013
    Posts
    64
    Mentioned
    0 Post(s)
    Quoted
    21 Post(s)

    Default

    Any chance we could get a IsCasting or IsShooting method? (Checks to see if player is shooting spells/shooting arrows)?

    <3

  18. #318
    Join Date
    Feb 2013
    Posts
    465
    Mentioned
    6 Post(s)
    Quoted
    221 Post(s)

    Default

    @kiwiownage: you could write one yourself, in context you could just check for the number of pixels changing over your character using PixelShift(box:Tbox,time:integer)


  19. #319
    Join Date
    Nov 2012
    Posts
    2,351
    Mentioned
    55 Post(s)
    Quoted
    603 Post(s)

    Default

    Quote Originally Posted by wthomas View Post
    @kiwiownage: you could write one yourself, in context you could just check for the number of pixels changing over your character using PixelShift(box:Tbox,time:integer)

    If someone could make a PixelShift and test it till it's good, I could add it, busy trying to fix up-text atm, cant mess with PixelShift


    Programming is like trying keep a wall of shifting sand up, you fix one thing but somewhere else starts crumbling

  20. #320
    Join Date
    Feb 2013
    Posts
    64
    Mentioned
    0 Post(s)
    Quoted
    21 Post(s)

    Default

    Quote Originally Posted by wthomas View Post
    @kiwiownage: you could write one yourself, in context you could just check for the number of pixels changing over your character using PixelShift(box:Tbox,time:integer)

    Ive tried but it doesn't seem to work :/

    Function IsCasting: Boolean;
    Begin
    PBox := IntToBox(238, 169, 279, 217);
    Result := (AveragePixelShift(PBox, 250, 350) > 45);
    End;

  21. #321
    Join Date
    Feb 2013
    Posts
    64
    Mentioned
    0 Post(s)
    Quoted
    21 Post(s)

    Default

    nvm! fixed it!

  22. #322
    Join Date
    Sep 2010
    Posts
    5,762
    Mentioned
    136 Post(s)
    Quoted
    2739 Post(s)

    Default

    Check out this cool new toy I found:

    Simba Code:
    function Bank: Boolean;
    var
      i, CTS, c, Timeout: Integer;
      TPA, TPA1, TPA2: TPointArray;
      ATPA: T2DPointArray;
      P: TPoint;
    begin
      Result := False;
      CTS := GetColorToleranceSpeed;
      ColorToleranceSpeed(2);
      Timeout := 5000 + Random(1000);
      SetColorSpeed2Modifiers(BankHue_1, BankSat_1);
      FindColorsTolerance(TPA1, BankCol_1, MSX1, MSY1, MSX2, MSY2, BankTol_1);
      SetColorSpeed2Modifiers(BankHue_2, BankSat_2);
      FindColorsTolerance(TPA2, BankCol_2, MSX1, MSY1, MSX2, MSY2, BankTol_2);
      SetColorSpeed2Modifiers(0.2, 0.2);
      ColorToleranceSpeed(CTS);
      CombineTPAWrap(TPA1, TPA2, TPA);
      SplitTPAWrap(TPA, 5, ATPA);
      SortATPASize(ATPA, True);
      if Length(TPA) < 1 then
        Exit;
      for i := 0 to High(ATPA) do
        if Length(ATPA[i]) > 30 then
        begin
          P := MiddleTPA(ATPA[i]);
          HumanMMouse(P.X, P.Y, RandomRange( - 5, 5), RandomRange( - 5, 5));
          if (P07_IsUpTextMultiCustom(['Use', 'Bank', 'ooth'])) then
          begin
            case LowerCase(ClickMethod) of
              'booth':
                Begin
                  RandomLeftClick;
                  clickmouse2(mouse_Right);
                  RandomChooseWait;
                  P07_ChooseOptionMultiHuman(['Use-q']);
                  Exit;
                End;
              'chest':
                Begin
                  RandomRightClick;
                  clickmouse2(mouse_Left);
                  Wait(RandomRange(100, 700));
                  Exit;
                End;
            End;
            Exit;
        End;
      End;
    End;

    That is some precise-ass object clicking, maybe you can add universal booth hover

  23. #323
    Join Date
    Nov 2012
    Posts
    2,351
    Mentioned
    55 Post(s)
    Quoted
    603 Post(s)

    Default

    Quote Originally Posted by rjj95 View Post
    Check out this cool new toy I found:

    That is some precise-ass object clicking, maybe you can add universal booth hover
    Would probably be worth adding, but we've got a bigger problem with up-text atm


    Programming is like trying keep a wall of shifting sand up, you fix one thing but somewhere else starts crumbling

  24. #324
    Join Date
    Jan 2013
    Posts
    11
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default

    How can i update my 1.6 to 1.7?

  25. #325
    Join Date
    Sep 2010
    Posts
    5,762
    Mentioned
    136 Post(s)
    Quoted
    2739 Post(s)

    Default

    Is makecompass degree working for anyone else? It worked for me twice then suddenly stopped working

    Simba Code:
    P07_MakeCameraAngleHigh;
      P07_MakeCompassDegree(CompassDegree + Random(10));

Page 13 of 31 FirstFirst ... 3111213141523 ... 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
  •