Page 6 of 31 FirstFirst ... 4567816 ... LastLast
Results 126 to 150 of 767

Thread: [Unofficial] OldschoolRS07 Include

  1. #126
    Join Date
    Feb 2006
    Location
    Tracy/Davis, California
    Posts
    12,631
    Mentioned
    135 Post(s)
    Quoted
    418 Post(s)

    Default

    Quote Originally Posted by Wetish View Post
    @YoHoJo

    I was having some problems with it not obtaining any text because the coordinates were put off because of the navigation bar. Call this before your texting finding:
    Code:
    SRL_EnableNavBar;
    Thanks for help, I actually already call that.
    It's just that sometimes text is not ready properly if the screen/background is 'odd'. So just gotta move camera or something.

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

    Default

    Wow, I've been looking through some of the functions and I love them! So many possibilities with this bot! Also, I'm working on a rune essence miner (my first script). If I do release it, will omitting a couple breaks and quotes be substantial enough to act as an anti-leech function?

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

    Default

    Function P07_GetUpText: String;

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

    What does that do? Is that only got Project06? If not, what text is this referring to?

    Edit: Nevermind, I was thinking of something else :P
    Last edited by SmellyPenguin; 02-25-2013 at 03:10 AM.

  4. #129
    Join Date
    Aug 2007
    Posts
    539
    Mentioned
    20 Post(s)
    Quoted
    266 Post(s)

    Default

    Now how about 2007 SPS?

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

    Default

    Quote Originally Posted by ineedbot View Post
    Now how about 2007 SPS?
    No, if he releases it it should only be SRL members +

  6. #131
    Join Date
    Aug 2007
    Posts
    539
    Mentioned
    20 Post(s)
    Quoted
    266 Post(s)

    Default

    whatever, i do a comparison to the original sps and 06 sps, theres only like 15 changes... ill do it myself.

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

    Default

    Quote Originally Posted by ineedbot View Post
    whatever, i do a comparison to the original sps and 06 sps, theres only like 15 changes... ill do it myself.
    Don't release it if you do.

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

    Default

    Quote Originally Posted by rjj95 View Post
    Don't release it if you do.
    I don't think you can restrict his ability to release code that is allowed on these forums.

    "No, if he releases it it should only be SRL members +"

    Implies that that is your opinion.

  9. #134
    Join Date
    Feb 2009
    Posts
    2,155
    Mentioned
    4 Post(s)
    Quoted
    42 Post(s)

    Default

    Nothing works for me with this.....countColor doesn't even work........

    Countcolor(56656, P07_MIX1, P07_MIY1, P07_MIX2, P07_MIY2);

    Haven't looked into it yet.

  10. #135
    Join Date
    Feb 2012
    Location
    US
    Posts
    83
    Mentioned
    0 Post(s)
    Quoted
    17 Post(s)

    Default

    Quote Originally Posted by YoHoJo View Post
    Dropping no longer works.
    It right clicks, but doesn't find the ChooseOption texts.
    So DropAll just goes around right clicking random inveteracy slots until the end.

    Edit:
    Having trouble finding uptext at times
    ex:

    Is rturning:

    Or blank lines.
    Yeah, I'm having trouble with making mine drop stuff out of the inv... Damn ChooseOption. I tried calling SRL_EnableNavBar beforehand.. doesn't seem to do anything for me.

    I'll go mess around with it and see if I make any progress
    Zaros

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

    Default

    JUST FYI - I'm pretty sure if you call SetupSRL; this include will not work, I don't know what the hell goes on in there, but it breaks it, so smart pairing stuff must be called manually, and you need to switch SetupSRL; with SetupP07Include;

    When you load 07 applet in smart, does the smaller than current NavBar come with it too?

    Like I said I'm VMing not using smart, chrome browser, drag green target onto the main screen (don't drag it onto the navigation bar)


    Quote Originally Posted by Zaros View Post
    Yeah, I'm having trouble with making mine drop stuff out of the inv... Damn ChooseOption. I tried calling SRL_EnableNavBar beforehand.. doesn't seem to do anything for me.

    I'll go mess around with it and see if I make any progress
    @Zaros, please tell me this is P07_ChooseOptionMulti and not ChooseOption?, remember 99% of the official options won't work on 07,

    Quote Originally Posted by YoHoJo View Post
    Thanks for help, I actually already call that.
    It's just that sometimes text is not ready properly if the screen/background is 'odd'. So just gotta move camera or something.
    @YoHoJo, I'm guna guess here when you have smart enabled and you call SetupSRL, it offset's everything by 50 pixels? Alternatively the client is offset in smart by a few pixels, meaning it's looking in wrong place for the text, needs to be exact, because that's how I designed it,

    @YoHoJo @JPHamlett, Could you Both try it in a browser for me please, not smart, and see if it works, maybe then I can locate the issue with SetupSRL; and remedy it
    Last edited by DannyRS; 02-25-2013 at 06:53 AM.


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

  12. #137
    Join Date
    Feb 2012
    Location
    US
    Posts
    83
    Mentioned
    0 Post(s)
    Quoted
    17 Post(s)

    Default

    Quote Originally Posted by DannyRS View Post
    JUST FYI - I'm pretty sure if you call SetupSRL; this include will not work, I don't know what the hell goes on in there, but it breaks it, so smart pairing stuff must be called manually, and you need to switch SetupSRL; with SetupP07Include;

    When you load 07 applet in smart, does the smaller than current NavBar come with it too?

    Like I said I'm VMing not using smart, chrome browser, drag green target onto the main screen (don't drag it onto the navigation bar)




    @Zaros, please tell me this is P07_ChooseOptionMulti and not ChooseOption?, remember 99% of the official options won't work on 07,
    Yeah yeah, P07. I figured we could just assume at this point.. My bad

    No navbar, just the applet.
    Zaros

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

    Default

    Quote Originally Posted by Zaros View Post
    Yeah yeah, P07. I figured we could just assume at this point.. My bad

    No navbar, just the applet.
    Try it in a browser for me please? and just use a wait(2000); writeln(P07_GetUpText); I just tried it, works flawless for me :/

    I believe it's smart / setupsrl that is causing the problem


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

  14. #139
    Join Date
    Feb 2012
    Location
    US
    Posts
    83
    Mentioned
    0 Post(s)
    Quoted
    17 Post(s)

    Default

    Quote Originally Posted by DannyRS View Post
    Try it in a browser for me please? and just use a wait(2000); writeln(P07_GetUpText); I just tried it, works flawless for me :/

    I believe it's smart / setupsrl that is causing the problem
    Actually even in smart the uptext works pretty well (I tested it previously), the P07_ChooseOptionMulti doesn't for me. I think you're probably right about it being smart. Now if I could find that offset... lol
    Zaros

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

    Default

    Quote Originally Posted by Zaros View Post
    Actually even in smart the uptext works pretty well (I tested it previously), the P07_ChooseOptionMulti doesn't for me. I think you're probably right about it being smart. Now if I could find that offset... lol
    I don't know why SetupSRL breaks the font, I'll have to look into it lol, try P07_ChooseOptionMulti(['Something']); In a browser for me?

    If the uptext is sometimes working Idk why the hell the options is not because their the same font :/

    Everything still works for me in a browser


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

  16. #141
    Join Date
    Feb 2006
    Location
    Tracy/Davis, California
    Posts
    12,631
    Mentioned
    135 Post(s)
    Quoted
    418 Post(s)

    Default

    Danny, no it's just the Text being read wrong.

    I'm using, SMART and including/calling old SRL, but I use the EnableNavBar function which gets rid of any offsets problems.

    The UpText is read properly most of the times, but certain background etc cause it to be read all wrong.

    Also any plans to 'break this up' into separate include files just like SRL used to be?

    Also going back to my inventory slot comment, I really think we should keep it in line with how SRL standards always were. Making inv slot 1 called 1, and not 0, etc.

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

    Default

    Quote Originally Posted by YoHoJo View Post
    Danny, no it's just the Text being read wrong.

    I'm using, SMART and including/calling old SRL, but I use the EnableNavBar function which gets rid of any offsets problems.

    The UpText is read properly most of the times, but certain background etc cause it to be read all wrong.

    Also any plans to 'break this up' into separate include files just like SRL used to be?

    Also going back to my inventory slot comment, I really think we should keep it in line with how SRL standards always were. Making inv slot 1 called 1, and not 0, etc.
    Hmm, maybe the tolerance needs to be higher, but the text always works for me, is your brightness up full? The only backgrounds that should affect it is stuff like, snow behind white text and such, but if you make sure to use one string from the white and one from the Blue/Yellow/Orange, then it should be ok

    I was going to break it up eventually, but seeing as it's just me doing this, I'm keeping it all in one for ease of install, because I don't want to bite of more than I can chew,

    I'll change the inv and bank functions all to 1-28 rather than 0-27 when I commit the next update, but all the hate from people who already used it like this will be directed at you <3
    Last edited by DannyRS; 02-25-2013 at 07:38 AM.


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

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

    Default

    Hello I am new into these forums and learning scripting for 2007 RS. I am writing a simple bot that involves walking and I am trying to use the P07_FindMMFlag function to delay the next command until the Mini Map flag disappears. However I can not seem to get wait from the function or change the Boolean return regardless of the mini map flag being present or not.

  19. #144
    Join Date
    Feb 2006
    Location
    Tracy/Davis, California
    Posts
    12,631
    Mentioned
    135 Post(s)
    Quoted
    418 Post(s)

    Default

    We need to find some people willing and able to get randoms working , JJ will be one for sure!

    I'm to busy with school to take on something that big D: but I'll be writing regular scripts for sure!

    I just want to make this as much at SRL always has been before, and will defiantly help you convert/add more functions over in a few days when I get the time to do so.

    We should get a git up as I suggested in another thread so everyone can push and pull and whatever else so it'll all be more organized.

    Is character chat etc stuff ready? As in the yellow text above people's heads?
    Is that text same as UpText?
    That will be useful for logging out when we get randoms for now until we get them working again.

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

    Default

    Quote Originally Posted by BoxxyBabee View Post
    Hello I am new into these forums and learning scripting for 2007 RS. I am writing a simple bot that involves walking and I am trying to use the P07_FindMMFlag function to delay the next command until the Mini Map flag disappears. However I can not seem to get wait from the function or change the Boolean return regardless of the mini map flag being present or not.
    Click the minimap, maybe wait about 500ms, then call it, it should then wait till the flag disappears till it breaks that loop,

    @YoHoJo I don't know if the text is the same yet, I assume it is, but none of the chatbox text has been added to this
    Last edited by DannyRS; 02-25-2013 at 07:46 AM.


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

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

    Default

    Thank you that was it. Sorry to be noobish but currently I am only using your included functions and looking to expand. Do you have a suggestion for beginning movement includes/algorithms (Such as walking to the bank a decent distance away)

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

    Default

    Quote Originally Posted by BoxxyBabee View Post
    Thank you that was it. Sorry to be noobish but currently I am only using your included functions and looking to expand. Do you have a suggestion for beginning movement includes/algorithms (Such as walking to the bank a decent distance away)
    You'll have to search the tutorials section for walking methods that only use color such as DTM, TPA, and color's,

    Walking long distances is quite challenging in oldrs because of how much the color's shift when the minimap reloads


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

  23. #148
    Join Date
    Oct 2011
    Posts
    207
    Mentioned
    1 Post(s)
    Quoted
    20 Post(s)

    Default

    I do not know if it helps with uptext problem, but if you stop and start your script ,it will work without any problems. So for me its probably SMART problem.

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

    Default

    What would be the best method of detecting an NPC with your provided includes?

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

    Default

    Quote Originally Posted by SmellyPenguin View Post
    What would be the best method of detecting an NPC with your provided includes?
    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


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

Page 6 of 31 FirstFirst ... 4567816 ... LastLast

Thread Information

Users Browsing this Thread

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