Page 8 of 31 FirstFirst ... 67891018 ... LastLast
Results 176 to 200 of 767

Thread: [Unofficial] OldschoolRS07 Include

  1. #176
    Join Date
    Feb 2013
    Location
    Ames, Iowa
    Posts
    11
    Mentioned
    0 Post(s)
    Quoted
    9 Post(s)

    Default

    I have been working with DTMs with a little bit of success. The constant rotation of the minimap still causes the Radial DTM function to fail randomly after working 10 times before.

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

    Default

    Quote Originally Posted by BoxxyBabee View Post
    I have been working with DTMs with a little bit of success. The constant rotation of the minimap still causes the Radial DTM function to fail randomly after working 10 times before.
    I'm having most success with TPA and ATPA walking


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

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

    Default

    Quote Originally Posted by ironup View Post
    \Simba\Scripts\[07] Draynor Willow Banker [1.1].simba(137:3): Identifier expected at line 136
    Compiling failed.

    Is this issue normal? didnt really find from any tutorial clue...?
    That's script related, please post issues with scripts in the creator's thread


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

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

    Default

    Quote Originally Posted by johnnyhart View Post
    Anyone got this working with SMART? Would really appreciate it if someone could help me get it running with SMART. Even if it's just a little hint. Thanks
    Works for me except since the last update it does not read uptext (properly) anymore so my script is broken

    Simba's GetColor does not work either.. I'm really confused what I did because it adds +25 to the Y offset for some reason when I didn't change anything :S

    EDIT: My fault... finally managed to fix my offsets, uptext works fine now.
    Last edited by J J; 02-25-2013 at 08:35 PM.

    Script source code available here: Github

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

    Default

    Quote Originally Posted by J J View Post
    Works for me except since the last update it does not read uptext (properly) anymore so my script is broken
    mine work fine, are you using setupsrl or smart?

    I didn't touch up-text I don't think


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

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

    Default

    Quote Originally Posted by DannyRS View Post
    mine work fine, are you using setupsrl or smart?

    I didn't touch up-text I don't think
    Yeah was my own fault for some reason it was adding 25 to the Y values so I just changed the globals to 0. It worked fine before, after I added SPS to my script it started to fail.

    Script source code available here: Github

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

    Default

    Quote Originally Posted by J J View Post
    Yeah was my own fault for some reason it was adding 25 to the Y values so I just changed the globals to 0. It worked fine before, after I added SPS to my script it started to fail.
    the offset's in main SRL mess with it lol does SPS work well for you? accuracy is bad for me


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

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

    Default

    Quote Originally Posted by DannyRS View Post
    the offset's in main SRL mess with it lol does SPS work well for you? accuracy is bad for me
    I edited SPS myself it works really well for me even though I'm in Al Kharid. I'll take a look at yours.

    PRO tip:
    KeyDown(17);
    Result := SPS_Walk07Path(Path);
    KeyUp(17);

    To make it run without checking if you have run % and setting run to true etc.

    Script source code available here: Github

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

    Default

    Quote Originally Posted by J J View Post
    I edited SPS myself it works really well for me even though I'm in Al Kharid. I'll take a look at yours.

    PRO tip:
    KeyDown(17);
    Result := SPS_Walk07Path(Path);
    KeyUp(17);

    To make it run without checking if you have run % and setting run to true etc.
    didn't release my sps edit publicly :P


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

  10. #185
    Join Date
    Feb 2013
    Posts
    18
    Mentioned
    0 Post(s)
    Quoted
    6 Post(s)

    Default

    Currently getting this error:

    Error: Exception: Font [P07UpChars] not found. at line 226
    The following DTMs were not freed: [0, 1]

    Fonts location: C:\Simba\Fonts\P07UpChars

    Any help please? New to Simba and Pascal, just getting started.

    Cheers.

    EDIT: As far as I can see it should be found, it's in the right location.
    Last edited by Fishh; 02-25-2013 at 09:20 PM.

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

    Default

    Quote Originally Posted by Fishh View Post
    Currently getting this error:

    Error: Exception: Font [P07UpChars] not found. at line 226
    The following DTMs were not freed: [0, 1]

    Fonts location: C:\Simba\Fonts\P07UpChars

    Any help please? New to Simba and Pascal, just getting started.

    Cheers.
    Restart Simba to load the new font's
    Last edited by DannyRS; 02-25-2013 at 09:23 PM.


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

  12. #187
    Join Date
    Feb 2013
    Posts
    18
    Mentioned
    0 Post(s)
    Quoted
    6 Post(s)

    Default

    Quote Originally Posted by DannyRS View Post
    restart simba
    I'm officially a moron.

    Cheers, lol.

  13. #188
    Join Date
    Mar 2007
    Posts
    147
    Mentioned
    0 Post(s)
    Quoted
    5 Post(s)

    Default

    Hello, I managed to make a script using Simba. How do I add SMART to it?

  14. #189
    Join Date
    Mar 2012
    Location
    San Diego
    Posts
    760
    Mentioned
    4 Post(s)
    Quoted
    91 Post(s)

    Default

    Thank you for this, Danny. Going to use this on the scripts I make for 07scape

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

    Default

    Quote Originally Posted by Knoot View Post
    Hello, I managed to make a script using Simba. How do I add SMART to it?
    No idea, not my area of focus, you will have to wait for someone to update S.M.A.R.T in the official Includes, sorry!

    Quote Originally Posted by [PRO]metheus View Post
    Thank you for this, Danny. Going to use this on the scripts I make for 07scape
    No Problem, just trying to do my part!
    Last edited by DannyRS; 02-25-2013 at 11:51 PM.


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

  16. #191
    Join Date
    Jan 2012
    Posts
    369
    Mentioned
    6 Post(s)
    Quoted
    91 Post(s)

    Default

    Simba/Smart is quite easy to figure out, Danny would be nice if you could help us out with an improved SPS

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

    Default

    Quote Originally Posted by speedster View Post
    Simba/Smart is quite easy to figure out, Danny would be nice if you could help us out with an improved SPS
    Like I keep mentioning! SPS does not work very well in 07Scape, because of minimap wobble and color changes, so it's not really worth using it,

    Until maybe the creator's of it can find a way to make it more viable


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

  18. #193
    Join Date
    Mar 2006
    Location
    Belgium
    Posts
    3,564
    Mentioned
    111 Post(s)
    Quoted
    1475 Post(s)

    Default

    Nice job so far Danny

    Creds to DannyRS for this wonderful sig!

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

    Default

    Quote Originally Posted by Sjoekeloe View Post
    Nice job so far Danny
    Aww thanks, guna go to bed now, it's been another long day of answering PM's lol


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

  20. #195
    Join Date
    Jan 2012
    Posts
    40
    Mentioned
    0 Post(s)
    Quoted
    7 Post(s)

    Default

    Quote Originally Posted by DannyRS View Post
    The mouse must be over the client and you must have focus of the window for the key press to be sent to the client, I never tested the full 360 degree's one by one tho, so some may be broken,




    TPA or DTM probably but I'm still looking into what's best
    I was experimenting with the compass functions and P07_MakeCompassDegree(k) didn't work too well. When I rotated the compass and ran the script again, it barely moved the compass, not making it the degrees I wanted. P07_MakeCompassNorth works and is close enough North for me :P

    Also for walking, I used FindColor and Mouse. I don't remember how to do DTMs so I might look into it again.

  21. #196
    Join Date
    May 2012
    Posts
    1
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    [Hint] C:\Simba\Includes\SRL/SRL/core/animation.simba(257:3): Variable 'X' never used at line 256
    [Hint] C:\Simba\Includes\SRL/SRL/core/animation.simba(257:3): Variable 'Y' never used at line 256
    [Error] C:\Simba\Includes\P07Include.Simba(67:62): Invalid number of parameters at line 66
    Compiling failed.

    This is what I get when I try to run a script, it's got to to with the include I believe but can't figure out how to fix it I'm trying haha

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

    Default

    Quote Originally Posted by Maxipads View Post
    [Hint] C:\Simba\Includes\SRL/SRL/core/animation.simba(257:3): Variable 'X' never used at line 256
    [Hint] C:\Simba\Includes\SRL/SRL/core/animation.simba(257:3): Variable 'Y' never used at line 256
    [Error] C:\Simba\Includes\P07Include.Simba(67:62): Invalid number of parameters at line 66
    Compiling failed.

    This is what I get when I try to run a script, it's got to to with the include I believe but can't figure out how to fix it I'm trying haha
    You don't run the script..

  23. #198
    Join Date
    Feb 2013
    Posts
    13
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default

    Error: Exception: Font [P07UpChars] not found. at line 226

    I keep getting the dame font errors and I have tried restarting....

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

    Default

    Quote Originally Posted by SlaveCooking View Post
    Error: Exception: Font [P07UpChars] not found. at line 226

    I keep getting the dame font errors and I have tried restarting....
    Read the instructions in my first post, it tells you what to do with the files


    Quote Originally Posted by Maxipads View Post
    [Hint] C:\Simba\Includes\SRL/SRL/core/animation.simba(257:3): Variable 'X' never used at line 256
    [Hint] C:\Simba\Includes\SRL/SRL/core/animation.simba(257:3): Variable 'Y' never used at line 256
    [Error] C:\Simba\Includes\P07Include.Simba(67:62): Invalid number of parameters at line 66
    Compiling failed.

    This is what I get when I try to run a script, it's got to to with the include I believe but can't figure out how to fix it I'm trying haha
    You are putting the wrong parameter's into something in your script, or you didn't put all files in their correct places
    Last edited by DannyRS; 02-26-2013 at 06:26 AM.


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

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

    Default

    @DannyRS

    Simba Code:
    function P07_DidClick(Red: Boolean; Time: integer): boolean;
    var
      TimeOut, x, y, w, h, R, G: integer;
      B: TBox;
    begin
      GetMousePos(x, y);
      GetClientDimensions(w, h);
      B := IntToBox(x - 15, y - 15, x + 15, y + 15);
      if B.x1 < 0 then B.x1 := 0;
      if B.y1 < 0 then B.y1 := 0;
      if B.x2 > w then B.x2 := w;
      if B.y2 > h then B.y2 := h;
      TimeOut := GetSystemTime + Time;
      while (GetSystemTime < TimeOut) do
      begin
        R := CountColorTolerance(255, B.x1, B.y1, B.x2, B.y2, 15);
        G := CountColorTolerance(65535, B.x1, B.y1, B.x2, B.y2, 15);
        if Red then
        begin
          if (G > 8) then
            Exit;
          Result := (R > 20);
        end else
        begin
          if (R > 5) then
            Exit;
          Result := (G > 35);
        end;
        if Result then
          Exit;
      end;
    end;

    function P07_DidRedClick: Boolean;
    begin
      Result := P07_DidClick(true, 1000);
    end;

    function P07_DidYellowClick: Boolean;
    begin
      Result := P07_DidClick(false, 1000);
    end;

    Might come in handy

    Forum account issues? Please send me a PM

Page 8 of 31 FirstFirst ... 67891018 ... LastLast

Thread Information

Users Browsing this Thread

There are currently 4 users browsing this thread. (0 members and 4 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
  •