Sythe.Org Forums     Register     FAQ     Members List     Calendar     Mark Forums Read    
 
Sythe.Org Forums  
   Runescape Gold

Sythe.org — A Virtual Goods Trading Hub

Make real cash! buying and selling in-game items.

We have a no-scam policy.

You can make thousands playing your favourite games here at Sythe.org.

Just sign up an account and follow the rules!


Take me to

Runescape Markets

Other Game Markets

Support Center

Register an Account

Close
[TUT]Highscores Grabber[TUT]
Reply
 
LinkBack Thread Tools Display Modes
  #1  
Old 07-04-2010, 12:49 AM
master447's Avatar
Active Member
 
Join Date: Nov 2007
Posts: 122
Default [TUT]Highscores Grabber[TUT]

this is for vb express 2010,

well ive seen a lot of people requesting on how to get a high-scores grabber. this is done through praising, most people do not know what that is so im just gonna skip to the chase.

This is a brief tutorial and will only cover 1 stat dont want to make it to easy for people


1)Add 2 labels and a button to your program,


2)double click the button so that you have the code brought up.


3)anywhere add this chuck of code,

Code:
    Public Function parseHtml(ByVal Name As String) As String()
        Dim Html As String
        Dim word As Integer = 0
        Html = GetPageHTML("http://hiscore.runescape.com/index_lite.ws?player=" + TextBoxX1.Text)
        Dim result(Html.Length) As String
        Dim length As Integer = Html.Length
        If (Html = "") Then
            Dim nil(1) As String
            Return nil
        End If
        For i As Integer = 0 To length - 1
            If (IsNumeric(Html.Chars(i)) = False) Then
                If (Html.Chars(i) = "-") Then
                    result(word) = "N/a"
                    word = word + 1
                    i = i + 2
                Else
                    word = word + 1
                End If
            Else
                result(word) = result(word) & Html.Chars(i)
            End If
        Next
        Return result
    End Function
then for your button code use this,

Code:
    Private Sub ButtonX1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ButtonX1.Click
        scores = parseHtml(TextBoxX1.Text)
        Try
            Label1.Text = "Level:" + scores(4)
            Label2.Text = "Xp:" + scores(5)
        Catch ex As Exception
            Label1.Text = "Xp:N\A"
            Label2.Text = "Level:N\A"
            ProgressBar1.Value = 0
        End Try
ok so the part that is like
Code:
            Label1.Text = "Level:" + scores(4)
            Label2.Text = "Xp:" + scores(5)
the scores(4) is attack level 5 is the xp i think im doing this from my head. so mess around with it till u get it right, so just add more labels and code to your program to get all the stats,
Reply With Quote
  #2  
Old 07-05-2010, 08:41 AM
Active Member
 
Join Date: Jul 2005
Location: Belgium
Posts: 149
Send a message via AIM to freddy1990 Send a message via MSN to freddy1990
Default Re: [TUT]Highscores Grabber[TUT]

Heh, I think normally a tutorial would explain how the code works :P
Also, is GetPageHTML even a default VB function?
__________________
Reply With Quote
  #3  
Old 07-05-2010, 02:45 PM
Blupig's Avatar
i am a guy ok?? -.-
Ex-Moderator Zombie Visual Basic Programmers
 
Join Date: Nov 2006
Location: Canada
Posts: 5,241
Send a message via MSN to Blupig Send a message via Skype™ to Blupig
MushyMuncher
Default Re: [TUT]Highscores Grabber[TUT]

Quote:
Originally Posted by freddy1990 View Post
Heh, I think normally a tutorial would explain how the code works :P
Also, is GetPageHTML even a default VB function?
Code:
Dim WC as New WebClient
Dim STR as String = WC.DownloadString("website")
EDIT: Before I forget OP, please post in the right section next time.
__________________
if your parts of the 70% of the site
put this in your sig

Last edited by Blupig : 07-05-2010 at 02:46 PM.
Reply With Quote
  #4  
Old 07-18-2010, 02:00 PM
TheHacker's Avatar
Guru
 
Join Date: Apr 2009
Posts: 1,088
Default Re: [TUT]Highscores Grabber[TUT]

Hmmm interesting, nice
__________________

TheHacker
Reply With Quote
  #5  
Old 08-24-2010, 01:18 AM
Newcomer
BANNED
 
Join Date: Aug 2010
Posts: 23
Default Re: [TUT]Highscores Grabber[TUT]

Confused on what it does
Reply With Quote
  #6  
Old 08-24-2010, 03:51 PM
Itz_you202's Avatar
Active Member
 
Join Date: Aug 2010
Posts: 176
Default Re: [TUT]Highscores Grabber[TUT]

I don't get it :s.
__________________
Vouches:8
Vouch Thread


^^ Msn me for Prices!
Reply With Quote
  #7  
Old 08-24-2010, 03:55 PM
Guru
 
Join Date: Jun 2005
Location: Canada
Posts: 1,844
Default Re: [TUT]Highscores Grabber[TUT]

Quote:
Originally Posted by Burn Notice View Post
Confused on what it does
Quote:
Originally Posted by Itz_you202 View Post
I don't get it :s.
It's a highscores grabber (as the OP clearly states), but I'm sure you guys were just posting to get your post count up.
__________________

Reply With Quote
Reply



Cheap RS Gold Store  Runescape Gold

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

All times are GMT +1. The time now is 01:33 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.6.1