Page 7 of 31 FirstFirst ... 5678917 ... LastLast
Results 151 to 175 of 767

Thread: [Unofficial] OldschoolRS07 Include

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

    Default

    Quote Originally Posted by DannyRS View Post
    It's best to write your own, but I added P07_FindObj (Official SRL FindObj by Starblaster), if you can find a tutorial on using that, maybe give that a go
    I attempted to use FindColor and Mouse as it works for my walking (I have no idea what SPS is, I'm a newb) but it did nothing when I ran the script. I know that the script completed the procedure because the Writeln I put after the procedure showed.

    Just tried P07_FindObj and it worked! Thank you very much!

    Also, I don't feel the neccessity of making a new thread for such a small issue, but what does the variant "button" mean?
    Simba Code:
    procedure Mouse(mousex, mousey, ranx, rany: Integer; button: variant);

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

    Default

    Quote Originally Posted by SmellyPenguin View Post
    I attempted to use FindColor and Mouse as it works for my walking (I have no idea what SPS is, I'm a newb) but it did nothing when I ran the script. I know that the script completed the procedure because the Writeln I put after the procedure showed.

    Just tried P07_FindObj and it worked! Thank you very much!

    Also, I don't feel the neccessity of making a new thread for such a small issue, but what does the variant "button" mean?
    Simba Code:
    procedure Mouse(mousex, mousey, ranx, rany: Integer; button: variant);
    Which mouse button you want to use. Such as mouse_left or mouse_right.
    mouse_Right = 0
    mouse_Left = 1
    mouse_Middle = 2

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

    Default

    Thank you BoxxyBabee.

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

    Default

    I am not able to call the RadialWalk function. Getting the following error written and the Globals include opens up to line 664:

    "Error: Exception: The bitmap[0] does not exist at line 664
    The following DTMs were not freed: [0, 1]"

    I assume this has to do with not being able to use SetUpSRL. Any work around?

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

    Default

    Quote Originally Posted by BoxxyBabee View Post
    I am not able to call the RadialWalk function. Getting the following error written and the Globals include opens up to line 664:

    "Error: Exception: The bitmap[0] does not exist at line 664
    The following DTMs were not freed: [0, 1]"

    I assume this has to do with not being able to use SetUpSRL. Any work around?
    As far as I know radial walk cannot be used because it's built around the official minimap :/


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

  6. #156
    Join Date
    Feb 2012
    Location
    DON'T PM ME ASKING FOR STUFF
    Posts
    2,170
    Mentioned
    38 Post(s)
    Quoted
    423 Post(s)

    Default

    Danny, You know if we are making a SPS map for this RS?

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

    Default

    Quote Originally Posted by xtrapsp View Post
    Danny, You know if we are making a SPS map for this RS?
    The map has to be client hacked / made from scratch by screenshotting, and with the minimap color's changing soo much constantly, map rotating by it'self -+25 degrees off the true north, SPS is not very viable

    I tried it, and it only worked just barely and broke pretty bad once I relogged and got new map colors


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

  8. #158
    Join Date
    Feb 2012
    Location
    DON'T PM ME ASKING FOR STUFF
    Posts
    2,170
    Mentioned
    38 Post(s)
    Quoted
    423 Post(s)

    Default

    Quote Originally Posted by DannyRS View Post
    The map has to be client hacked / made from scratch by screenshotting, and with the minimap color's changing soo much constantly, map rotating by it'self -+25 degrees off the true north, SPS is not very viable

    I tried it, and it only worked just barely and broke pretty bad once I relogged and got new map colors
    I'm pretty sure there was a method where you could remove the minimap over the top bit? So it is just a block of the minimap... I think it was somewhere in the blackbook of Runescape

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

    Default

    Quote Originally Posted by xtrapsp View Post
    I'm pretty sure there was a method where you could remove the minimap over the top bit? So it is just a block of the minimap... I think it was somewhere in the blackbook of Runescape
    I was trying to mod open source private server software to draw a full map from the array file the client has, but I'm bad at java, I got very close, but not quite


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

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

    Default

    I'm not sure if you added this in a future release but I've made this for a script
    Simba Code:
    Function P07_WaitChooseOptionMulti(Text: TStringArray; MaxTime: Integer): Boolean;
    var
      T: Integer;

    begin
      MarkTime(T);
      while TimeFromMark(T) < MaxTime do
      begin
        if P07_ChooseOptionMulti(Text) then
        begin
          Result := True;
          break;
        end;
        Wait(RandomRange(20, 60));
      end;
    end;

    Pretty much the same as your WaitUptext one.

    Script source code available here: Github

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

    Default

    @J J

    I think the way I wrote chooseoption will make that kinda useless, because it will move the mouse away from the options box to close it if the option is not found, just like the SRL one does,

    Whats the advantage from doing it like that? I added a GetChooseOptions: TStringArray; to the next release that could be used to constantly monitor the window for X amount of time, what's the point of waitiption multi? Just to have a wait at the end? Or something else?

    I could use that to make it check the options and compare the strings every loop and then choose the option when found? Is that what you want?

    Also if your writing a script and post something I'll likely add to the Include, don't name it with P07_ because when I commit the update, you'll get Duplicate identifiers !!
    Last edited by DannyRS; 02-25-2013 at 12:55 PM.


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

  12. #162
    Join Date
    Dec 2006
    Posts
    5
    Mentioned
    0 Post(s)
    Quoted
    3 Post(s)

    Default

    What do you suggest using for walking right now in 07?

  13. #163
    Join Date
    Dec 2011
    Posts
    29
    Mentioned
    0 Post(s)
    Quoted
    12 Post(s)

    Default

    The compass and camera angle aren't working at all.

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

    Default

    Quote Originally Posted by uaexed View Post
    The compass and camera angle aren't working at all.
    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,


    Quote Originally Posted by unfeared View Post
    What do you suggest using for walking right now in 07?
    TPA or DTM probably but I'm still looking into what's best


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

  15. #165
    Join Date
    Feb 2013
    Posts
    21
    Mentioned
    0 Post(s)
    Quoted
    10 Post(s)

    Default

    Reason why the uptext doesnt work in my browser to my simple script picker

    (*
    GetUpText
    ~~~~~~~~~

    .. code-block:: pascal

    function GetUpText : string;

    Returns the text in the upperleft corner of Project06 (often referred to as UpText).

    .. note::

    by DannyRS

    Example:

    .. code-block:: pascal

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

    Default

    Quote Originally Posted by Nations_collapse View Post
    Reason why the uptext doesnt work in my browser to my simple script picker

    (*
    GetUpText
    ~~~~~~~~~

    .. code-block:: pascal

    function GetUpText : string;

    Returns the text in the upperleft corner of Project06 (often referred to as UpText).

    .. note::

    by DannyRS

    Example:

    .. code-block:: pascal

    I coppied the Layout of my other project and missed updating that documentation... Rest assured it is UpText for 07 and not a private server,

    I'm only human and currently doing this completely by myself, so bear with me lol,

    Did you use "SetupSRL"? Remove it if you did, and it should work


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

  17. #167
    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
    @J J

    I think the way I wrote chooseoption will make that kinda useless, because it will move the mouse away from the options box to close it if the option is not found, just like the SRL one does,

    Whats the advantage from doing it like that? I added a GetChooseOptions: TStringArray; to the next release that could be used to constantly monitor the window for X amount of time, what's the point of waitiption multi? Just to have a wait at the end? Or something else?

    I could use that to make it check the options and compare the strings every loop and then choose the option when found? Is that what you want?

    Also if your writing a script and post something I'll likely add to the Include, don't name it with P07_ because when I commit the update, you'll get Duplicate identifiers !!
    Oh I didn't really look at the code. If that is indeed what happens then it doesn't make sense.
    I just wanted to right click then wait like 500 ms for a certain option to appear.

    Script source code available here: Github

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

    Default

    Quote Originally Posted by J J View Post
    Oh I didn't really look at the code. If that is indeed what happens then it doesn't make sense.
    I just wanted to right click then wait like 500 ms for a certain option to appear.
    Adding to a commit in a moment, along with 1-28 (used to be 0-27) array changes YoHoJo wanted, sorry everyone! please update your scripts


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

  19. #169
    Join Date
    Dec 2011
    Posts
    29
    Mentioned
    0 Post(s)
    Quoted
    12 Post(s)

    Default

    Will we be seeing SPS for 07 from you?

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

    Default

    Quote Originally Posted by uaexed View Post
    Will we be seeing SPS for 07 from you?
    SPS doesn't work well on OldRS Minimap, so unlikely, sorry

    Maybe if I can get it working to a higher accuracy


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

  21. #171
    Join Date
    Feb 2013
    Posts
    5
    Mentioned
    0 Post(s)
    Quoted
    5 Post(s)

    Default

    Getting this error after 1.5 update:
    Exception: Range check error at line 636
    Line 636: If (Not FindColorTolerance(X,Y,13758452,600,175,620,197,16 )) Then

  22. #172
    Join Date
    Feb 2013
    Posts
    5
    Mentioned
    0 Post(s)
    Quoted
    5 Post(s)

    Default

    My bad, I didn't have the rs client targeted

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

    Default

    Quote Originally Posted by johnnyhart View Post
    Getting this error after 1.5 update:
    Exception: Range check error at line 636
    Line 636: If (Not FindColorTolerance(X,Y,13758452,600,175,620,197,16 )) Then
    What function did you call?

    Quote Originally Posted by johnnyhart View Post
    My bad, I didn't have the rs client targeted
    Ah ok np


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

  24. #174
    Join Date
    Feb 2013
    Posts
    5
    Mentioned
    0 Post(s)
    Quoted
    5 Post(s)

    Default

    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

  25. #175
    Join Date
    Nov 2012
    Posts
    2,351
    Mentioned
    55 Post(s)
    Quoted
    603 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
    As far as I know this include will be buggy in smart, no Idea tho ^^


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

Page 7 of 31 FirstFirst ... 5678917 ... LastLast

Thread Information

Users Browsing this Thread

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