- Joined
- Mar 26, 2007
- Sythe Gold
- 5
- Messages
- 125
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)
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
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!
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!



