Results 1 to 8 of 8

Thread: World Population Grabber

  1. #1
    Join Date
    Sep 2007
    Location
    Michigan
    Posts
    3,862
    Mentioned
    2 Post(s)
    Quoted
    1 Post(s)

    Default World Population Grabber

    Does anyone know a way to get the population count of a world without actually looking at the page? Through a URL or something that grabs the info from the internet and returns the population.

    Its really needed in my Runite Miner I've been planning. I've figured out the formula for Runite re-spawn time by population.
    (Scripts outdated until I update for new SRL changes)
    AK Smelter & Crafter [SRL-Stats] - Fast Fighter [TUT] [SRL-Stats]
    If you PM me with a stupid question or one listed in FAQ I will NOT respond. -Narcle
    Summer = me busy, won't be around much.

  2. #2
    Join Date
    Apr 2007
    Location
    The Netherlands
    Posts
    5,553
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    so you want the world with less people? i could think of somthing w8 a sec

  3. #3
    Join Date
    May 2006
    Location
    Amsterdam
    Posts
    3,620
    Mentioned
    5 Post(s)
    Quoted
    0 Post(s)

    Default

    Returns a array of worlds in integers. Sorted on population . Less to high.
    SCAR Code:
    Function FindWorlds(Members : Boolean): TIntegerArray;
    var
      I,j,K,T: integer;
      WorldListArray : TStringArray;
      WorldList : String;
    begin;
      WorldList := Between('d.write("</tr>");'#10'}'#10#10' '#10' '#10' ','</script>',GetPage('http://www.runescape.com/slj.ws?lores.x=1&plugin=2&order=MPWLA'));
      WorldList := Replace(WorldList,#10#10' '#10' '#10' ','');
      J := pos(';', WorldList);
      repeat
        SetArrayLength(WorldListArray, i + 2);
        WorldListArray[i] := copy(WorldList, 1, J-1);
        delete(WorldList, 1, pos(WorldListArray[i], WorldList)+Length(WorldListArray[i]));
        i := i + 1;
        J := pos(';', WorldList);
      until(J = 0)
      SetLength(WorldListArray,I);
      SetLength(Result,100);
      For I := 0 to Length(WorldListArray) -1 do
      begin;
          J := LastPos(',',WorldListArray[I]);
          K := LastPosEx(',',WorldListArray[I],J);
          if GetNumbers(Copy(WorldListArray[i],K+1,J-K-1)) <> '0' then
          begin;
            if members then if WorldListArray[I][Pos(',',WorldListArray[I])+1] = '1' then
            begin;
              Result[T] := StrToInt(Copy(WorldListArray[i],3,Pos(',',WorldListArray[I])-3));
              inc(T);
            end;
            if not Members then if WorldListArray[I][Pos(',',WorldListArray[I])+1] = '0' then
            begin;
              Result[T] := StrToInt(Copy(WorldListArray[i],3,Pos(',',WorldListArray[I])-3));
              inc(T);
            end;
          end;
      end;
      SetLength(Result,T);
    end;
    Verrekte Koekwous

  4. #4
    Join Date
    Sep 2007
    Location
    Michigan
    Posts
    3,862
    Mentioned
    2 Post(s)
    Quoted
    1 Post(s)

    Default

    No, I need a return population count.

    I want the Number, not which one has the least/most amount on.

    Formula example:
    (x-4800)/-200=y
    X= population
    y= time in minutes

    or

    (x-4800)/-3.333=y
    X= population
    y= time in seconds

    See?
    (Scripts outdated until I update for new SRL changes)
    AK Smelter & Crafter [SRL-Stats] - Fast Fighter [TUT] [SRL-Stats]
    If you PM me with a stupid question or one listed in FAQ I will NOT respond. -Narcle
    Summer = me busy, won't be around much.

  5. #5
    Join Date
    Apr 2007
    Location
    The Netherlands
    Posts
    5,553
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    but you could say:
    looks nice but that not wat i need, i mean this..

    much nicer

  6. #6
    Join Date
    Sep 2007
    Location
    Michigan
    Posts
    3,862
    Mentioned
    2 Post(s)
    Quoted
    1 Post(s)

    Default

    Gah well I didn't mean for it to sound like that. sorry

    I thought I made myself clear on first post, but I didn't I guess. >.>
    (Scripts outdated until I update for new SRL changes)
    AK Smelter & Crafter [SRL-Stats] - Fast Fighter [TUT] [SRL-Stats]
    If you PM me with a stupid question or one listed in FAQ I will NOT respond. -Narcle
    Summer = me busy, won't be around much.

  7. #7
    Join Date
    May 2006
    Location
    Amsterdam
    Posts
    3,620
    Mentioned
    5 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Narcle View Post
    Gah well I didn't mean for it to sound like that. sorry

    I thought I made myself clear on first post, but I didn't I guess. >.>
    Oh, i was making one that returned the population but then somehow closed scar and didn't pay attention any more XD
    Verrekte Koekwous

  8. #8
    Join Date
    Sep 2007
    Location
    Michigan
    Posts
    3,862
    Mentioned
    2 Post(s)
    Quoted
    1 Post(s)

    Default

    Did it sorta work? Could you pm me the code see if i can get one working?

    I need to dig into the manual and maybe Delphi help and see if scar can grab info from Runescape's world page like that. *ponders* (without actually looking at it)
    (Scripts outdated until I update for new SRL changes)
    AK Smelter & Crafter [SRL-Stats] - Fast Fighter [TUT] [SRL-Stats]
    If you PM me with a stupid question or one listed in FAQ I will NOT respond. -Narcle
    Summer = me busy, won't be around much.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Item ID Grabber.
    By Sandstorm in forum Research & Development Lounge
    Replies: 27
    Last Post: 09-25-2009, 05:04 AM
  2. Nat Grabber
    By insanomano in forum RS3 Outdated / Broken Scripts
    Replies: 3
    Last Post: 05-26-2008, 09:41 AM
  3. Stats grabber
    By jhildy in forum Research & Development Lounge
    Replies: 10
    Last Post: 08-24-2007, 04:19 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •