Results 1 to 13 of 13

Thread: SMART - Almost have it figured out.

  1. #1
    Join Date
    Feb 2013
    Posts
    3
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default SMART - Almost have it figured out.

    I understand how SMART loads the normal client. However RS07 doesn't use an iframe to load the page.

    I know the first param is the URL of the page which has the applet, but I don't see any possible way to get the second param, which looks like some kind of app ID (im not a java developer).

    I have looked through the source code of the 07 HTML page and have not seen a similar looking number. Normal RS has the number in the actual iframes page in some javascript, 07 does not.

    I have explicitly set the params having the second param as '' with no success. I am trying to be as vague as possible, any tips would be appreciated. My main questions are,

    - Does the second param have to be anything? If so, what type of information is it?
    - Why does the second param have a comma before it?

    I have gone as far as getting a java error, "Error starting smart, ensure the target page has an applet declaration" my guess it that it cannot find the applet because of the missing number.

    Thanks.

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

    Default

    Have you tried:

    Going into the Includes and editing the Syntax for the following?

    The SMART Client was coded in parameters of RS2/EOC (Applet ID and such)...

    Find out how to change the syntax and you should be fine
    "What can't hurt you, try it. What can kill you, do it!"

    Scripts Completed: 3
    Amount Released : 2

  3. #3
    Join Date
    Feb 2013
    Posts
    3
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    Thanks for responding Villa. I am slightly confused by your suggestion. The following what?

  4. #4
    Join Date
    Nov 2012
    Posts
    141
    Mentioned
    0 Post(s)
    Quoted
    43 Post(s)

    Default

    This should help you out, the following is taken from the Main class of SMART v8.0, from BenLand100's GitHub:
    Code:
    String path = new File(exec_args[0]).getAbsolutePath();
    System.load(path);
    String root = exec_args[1];
    String params = exec_args[2];
    int width = Integer.parseInt(exec_args[3]);
    int height = Integer.parseInt(exec_args[4]);
    String initseq = exec_args[5];
    String useragent = exec_args[6];
    You can just ignore iframes. Instead of parsing information from "http://www.runescape.com/game.ws?j=1", set the parameters yourself.
    Keep in mind that the second parameter has a "," added to it later in the chain. Make sure you delete that.
    Both of these parameters are concatenated in SMART, and that is the URL it accesses. Normally, it's something like "http://world1.runescape.com/,012deadbeef88".
    Last edited by Neodymium; 02-27-2013 at 09:44 PM.

  5. #5
    Join Date
    Feb 2013
    Posts
    3
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    Oh I was not aware SMART was open source, thanks Neodymium. I have found where the magic happens,
    Code:
    String jsInfoPage = downloadHTML(root + params);
    jsInfoPage = jsInfoPage.substring(Math.max(jsInfoPage.indexOf("<applet"), jsInfoPage.indexOf("write('<app")), jsInfoPage.indexOf("</applet>"));
    root = Param[0]
    params = Param[1]
    (I think)

    So I guess it is just combining the strings, even still, if I set the second param to blank it causes an error from SmartSpawnScript. If I set it to something non-url destructive like a # or a ' ' it still cannot load the page.

    I cant believe that this code grabs the HTML generated after the JavaScript is ran. Quite remarkable IMO, must it be emulating an entire browser?

    Anyways I am quite stuck. Thanks for your guys help so far.

    EDIT: I am a complete noob. The answer was right in front of me the entire time... I figured it out thanks so much guys. I tend to over think things a lot...
    Last edited by Nuclaer; 02-27-2013 at 10:19 PM.

  6. #6
    Join Date
    Oct 2012
    Location
    Italy
    Posts
    145
    Mentioned
    0 Post(s)
    Quoted
    44 Post(s)

    Default

    Quote Originally Posted by Nuclaer View Post
    Oh I was not aware SMART was open source, thanks Neodymium. I have found where the magic happens,
    Code:
    String jsInfoPage = downloadHTML(root + params);
    jsInfoPage = jsInfoPage.substring(Math.max(jsInfoPage.indexOf("<applet"), jsInfoPage.indexOf("write('<app")), jsInfoPage.indexOf("</applet>"));
    root = Param[0]
    params = Param[1]
    (I think)

    So I guess it is just combining the strings, even still, if I set the second param to blank it causes an error from SmartSpawnScript. If I set it to something non-url destructive like a # or a ' ' it still cannot load the page.

    I cant believe that this code grabs the HTML generated after the JavaScript is ran. Quite remarkable IMO, must it be emulating an entire browser?

    Anyways I am quite stuck. Thanks for your guys help so far.

    EDIT: I am a complete noob. The answer was right in front of me the entire time... I figured it out thanks so much guys. I tend to over think things a lot...
    Hey please.. If you managed to solve this problem, I'm very interested to use the same process to load RuneScape 2007 with SMART.
    If you can help me I would really appreciate. Please pm me for that.

    Thanks,
    Zorgatone

  7. #7
    Join Date
    Feb 2013
    Posts
    18
    Mentioned
    0 Post(s)
    Quoted
    7 Post(s)

    Default

    I've almost got this to work. If anyone could PM me some help, I'd pay them paypal.
    Thanks

  8. #8
    Join Date
    Jun 2012
    Location
    Howell, Michigan
    Posts
    1,585
    Mentioned
    34 Post(s)
    Quoted
    553 Post(s)

    Default

    Quote Originally Posted by obsessive View Post
    I've almost got this to work. If anyone could PM me some help, I'd pay them paypal.
    Thanks
    We don't allow buyin or selling of scripts, I'm not sure if this is under that category..but I'm also sure that the people who do know, myself included, will not sell the way to fix it as that would just quicken the bots building in 07Scape, especially since gold farming is a major money maker due to EOC->07Scape GP exchange rate..All the info is here, just search.

  9. #9
    Join Date
    Feb 2013
    Posts
    52
    Mentioned
    1 Post(s)
    Quoted
    14 Post(s)

    Default

    Anyone willing to help us? I'm still confused on the parameters

  10. #10
    Join Date
    Nov 2012
    Posts
    8
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default

    Quote Originally Posted by Frito View Post
    Anyone willing to help us? I'm still confused on the parameters
    Screw you, you ask for help but don't help anyone anyways.

  11. #11
    Join Date
    Feb 2013
    Posts
    52
    Mentioned
    1 Post(s)
    Quoted
    14 Post(s)

    Default

    I gave you the answer to your problem, yet you see it fit to flame me? I should have not replied at all to your PM. It's not difficult, you did not install the Include correctly because that error was not an anti-leech problem. I'm no expert, sorry I wasn't able to help further.

  12. #12
    Join Date
    Jan 2011
    Posts
    46
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    dam so u figured it out, but refused to share your answer publicly. nice one. lolz

  13. #13
    Join Date
    Nov 2011
    Posts
    171
    Mentioned
    1 Post(s)
    Quoted
    46 Post(s)

    Default

    Quote Originally Posted by Nuclaer View Post
    Oh I was not aware SMART was open source, thanks Neodymium. I have found where the magic happens,
    Code:
    String jsInfoPage = downloadHTML(root + params);
    jsInfoPage = jsInfoPage.substring(Math.max(jsInfoPage.indexOf("<applet"), jsInfoPage.indexOf("write('<app")), jsInfoPage.indexOf("</applet>"));
    root = Param[0]
    params = Param[1]
    (I think)

    So I guess it is just combining the strings, even still, if I set the second param to blank it causes an error from SmartSpawnScript. If I set it to something non-url destructive like a # or a ' ' it still cannot load the page.

    I cant believe that this code grabs the HTML generated after the JavaScript is ran. Quite remarkable IMO, must it be emulating an entire browser?

    Anyways I am quite stuck. Thanks for your guys help so far.

    EDIT: I am a complete noob. The answer was right in front of me the entire time... I figured it out thanks so much guys. I tend to over think things a lot...


    gratz on figuring it out ive been looking at the code trying to figure this out myself lol i hate how u say "the answer was staring u rite in the face"

    i think im just gna be patient and wait on the offial release playing legit seems more efficient than botting with all these lowzy scripts floating about but if any 1 can assist me on this further that wud be great if not thats cool


    and please dont flame me about being a leecher coz im not

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
  •