Adblock breaks this site

my worldlist .net

Discussion in 'Programming General' started by dodge, Apr 2, 2007.

  1. dodge

    dodge Active Member
    Banned

    Joined:
    Mar 26, 2007
    Posts:
    125
    Referrals:
    1
    Sythe Gold:
    5
    my worldlist .net

    in case you did not see my post before about my .net lib to get the world list on runescape here it is

    i made some changes to the original lib so you may want to get this one

    once i get the list i put it on a collectionbase for easier use after

    example (this will get the full world list)

    Code:
    Dim WorldListResponse As New RSCore.HTTP_Response
            Dim WorldList As RSCore.WorldInfo = WorldListResponse.WorldList
            Dim WorldListItem As New RSCore.WorldInfoStructure
    
            WorldList.Sort(RSCore.WorldListSortType.WorldNumber, RSCore.SortOrder.Ascending)
    
            For Each WorldListItem In WorldList
                Console.Write(WorldListItem.WorldNumber & vbCrLf)
                Console.Write(WorldListItem.PlayerCount & vbCrLf)
                Console.Write(WorldListItem.MembersWord & vbCrLf)
                Console.Write(WorldListItem.ServerStatus & vbCrLf)
                Console.Write(WorldListItem.ServerRegion & vbCrLf)
            Next
    
    notice how i can sort the list using any criteria i want

    also if you wanted to get an individual value from the list, lets say playerscount from world 2 here is an example

    Code:
    Dim PC As Integer = WorldList.Items(WorldList.IndexOfWorldByNumber(2)).PlayerCount
    
    this will return the number of players in that world

    i'll continue to work on this lib i'll also post the new client i'm working on, it is till a simple client but a good baseline for anyone to start creating one

    PS ty speljohan for making my original code better!
     
  2. speljohan

    speljohan Guru
    Visual Basic Programmers

    Joined:
    Apr 24, 2005
    Posts:
    1,450
    Referrals:
    3
    Sythe Gold:
    0
    my worldlist .net

    damn, this is really awesome! one of the best and innovative things i've seen this far. Keep up the good work!
     
  3. Xenifiks

    Xenifiks Guest

    Referrals:
    0
    my worldlist .net

    Elite boy :eek:

    That looks amazin, especially that when you make the webrequest
    Introduce as mozilla, cookies, referrers and those. WOW!
     
  4. dodge

    dodge Active Member
    Banned

    Joined:
    Mar 26, 2007
    Posts:
    125
    Referrals:
    1
    Sythe Gold:
    5
    my worldlist .net

    ya you canb also use as the code from speljohan where is one line to get the response, i just like to fake the response like is comming from a user browser in case they ever check for that, also check the the referer is also their page so it looks like the request was made from their page
     
  5. dodge

    dodge Active Member
    Banned

    Joined:
    Mar 26, 2007
    Posts:
    125
    Referrals:
    1
    Sythe Gold:
    5
    my worldlist .net

    Nmv wrong post
     
< WorldList.net update | Crystal Report >


 
 
Adblock breaks this site