Results 1 to 5 of 5

Thread: Explain this code?

  1. #1
    Join Date
    Jan 2012
    Posts
    50
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default Explain this code?

    Page := Between('<iframe id="game" src="', '"', GetPage('http://www.runescape.com/game.ws?j=1'));

    what does:<iframe id="game" src="' do??

    I know between is the string inbetween the first 2 strings, right? then that string is stored in page?

    Just need some explanation here

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

    Default

    07 Scape does not load using iframe, if you are trying to load another URL in SMART.

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

    Default

    That normally searches the page source for the iframe it contains, which is something like "http://world1.runescape.com/,123deadbeef768".
    It then splits the string into arrays using the comma as the delimiter.
    The end parameters end up to be:
    Code:
    [0]: http://world1.runescape.com/
    [1]: 123deadbeef789
    Go to an old school world and look at the url. Try to make it the same. Keep in mind you need to remove the "," it adds back in later in the chain.
    Last edited by Neodymium; 02-28-2013 at 09:11 PM. Reason: Removed link for possible Jagex referral tracking

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

    Default

    I can't seem to figure it out still.

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

    Default

    Quote Originally Posted by Neodymium
    Change the GetSmartParams (or whatever it is) function to set the values yourself.
    Code:
    SetLength(Params, 2);
    Params[0] := 'http://__________.runescape.com/';
    Params[1] := '';  // what is after the last "/" in the url
    Go to "http://oldschool.runescape.com/slu" and just find a world (choose the best world would work).
    Look at the url and separate it into each parameter, as shown above.

    The EOC url looks something like "http://world1.runescape.com/,123abcd463", but as you can tell, there is no comma in the url for old school.
    Make sure you remove the "," that is concatenated to the Params[1] when SMART is being spawned, or else it will not work.
    Also, reduce the height (the second integer) by 50 pixels, should be 503 I think.
    three word limit

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
  •